MAC CF Utilities

 

Google
Mac CF Utilities are two command line programs to backup or restore a CF card to a .dat file which is compatible with Mac ADFS Explorer and BeebEm.

The utilities were written to support the Model B or Master 128 Internal Compact Flash Hard Drive Kit available from Mark Haysman of RetroClinic.

To back up a CF card to disc, you use :

./cfbackup /dev/disk2 cf.dat

where /dev/disk2 is the device name of the CF Card and cf.dat is the file to store the backup.

To backup partition 1 off a two partition CF card, use :

./cfbackup /dev/disk2 cf.dat 1

You can then load cf.dat into Mac ADFS Explorer to manipulate files or use it with BeebEm to emulate the hard disc.

To restore a .dat file to your CF card, you use :

./cfrestore /dev/disk2 cf.dat

where the parameters are the same as above.

To restore to partition 1 off a two partition CF card, use :

./cfrestore /dev/disk2 cf.dat 1

You need to be careful with the restore since if you cfrestore to an incorrect /dev device (by mistake), you could trash your hard drive.

Full syntax :

cfbackup <device> <file> (-Sxx) (0 or 1)
   where <device> is device name of CF device
   <file> is filename for backup file
   (-Sxx) is optional image size in MB
   (0 or 1) is optional partition number to access
   e.g. cfbackup /dev/disk2 cfback.dat 1

cfrestore <device> <file> (-F) (0 or 1)
   where <device> is device name of CF device
   <file> is filename for restore file
   (-F) is optional to restore full image
   (0 or 1) is optional partition number to access
   e.g. cfrestore /dev/disk2 cfrestore.dat 1

If the program crashes with strange errors etc, please let me know so I can fix the problems !

You can download the latest version of the program below :

I don't have access to a Mac running the latest Mountain Lion OS X 10.8.x but I have been informed that the software fails with an access denied error when trying to read /dev/disk...

It turns out that the /dev/disk.... devices need root privileges to access them so you will need to prefix the above commands with sudo, eg

sudo ./cfbackup /dev/disk2 cf.dat

If prompted, enter your normal account password and everything should work as normal.

Revision History
Date Version Changes
10/01/10 1.01 Initial Release

Date Downloads
Nov 2010 5
Oct 2010 4
Sep 2010 6
Aug 2010 2
Jul 2010 4
Jun 2010 0
May 2010 1
Apr 2010 4
Mar 2010 3
Feb 2010 3
Jan 2010 5
Total 37

Home ] Up ]

Send mail to jon@g7jjf.com with questions or comments about this web site.
Copyright © 2006 Jon Welch
Last modified: 17-08-2010