A clear box with a range of cards and readers should be kept in the shelving next to the toilet.
# CF Cards
Used for industrial PCs. Usually programmed using the proprietary disk creation software from the manufacturer (sometimes with strange partitions that would be hard to recreate with regular PC software). It is usually fairly easy to [clone](https://pbxbook.com/other/dd_clone.html) a cards information into a disk image that can then be programmed onto a new card (I have found instances where clone would only work if the new card was the same storage size as the old card). A summary of the instructions for using diskutil and dd from the Terminal.app on macOS.
1. Attach and identify the source disk ⇒
```
diskutil list
```
2. Unmount the source disk ⇒
```
diskutil unmountDisk /dev/disk2
```
3. Copy the source disk to the desktop ⇒
```
sudo dd if=/dev/disk2 of=/Users/mike/diskimage.img
```
4. Attach and identify the destination disk ⇒
```
diskutil list
```
5. Unmount the destination disk ⇒
```
diskutil unmountDisk /dev/disk2
```
6. Copy the image to the destination disk ⇒
```
sudo dd of=/dev/disk2 if=/Users/mike/diskimage.img
```
This will create a raw disk image that is the same size as the card itself. You can then convert it to a compressed disk image using Disk Utility.app. In the Menu bar click on Image>Convert. You can then select the disk image file that was created in step 6 above. It will then ask you where you would like to save the new disk image (will be a .dmg) and in the Image Format options you can select a compressed image format.
In order to use a disk image that has been compressed you first need to convert it back to a raw disk image. In the Terminal.app you use the following commands
```
hdiutil convert "/Users/mike/diskimage Converted.dmg" -format UDRW -o /Users/mike/diskimage.img
mv /Users/mike/diskimage.img.dmg /Users/mike/diskimage.img.img
```
# SD Cards
![[CF and SD Cards.jpg]]