Greetings Mac OS-X Users... I have written a small BASH script that runs in the Mac OS-X terminal window and makes easy work of writing AstLinux ".img.gz" image files via a USB Compact Flash Card Writer. One feature is the destination CF card is first "erased" (zero's written), overcoming a common problem when previously formatted AstLinux CF cards are reused.
Tested with both OS-X 10.4 and 10.5. Mac OS-X Shell Script to write CF card: http://lonnie.abelbeck.com/astlinux/os-x-cf-write.zip The user should first type "os-x-cf-write" without arguments to determine the usage and which 'disk' is the CF card. $ os-x-cf-write Usage: os-x-cf-write diskN image_file.img.gz /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *232.9 Gi disk0 1: EFI 200.0 Mi disk0s1 2: Apple_HFS Macintosh HD 232.6 Gi disk0s2 /dev/disk1 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *232.9 Gi disk1 1: EFI 200.0 Mi disk1s1 2: Apple_HFS Backup 232.6 Gi disk1s2 /dev/disk2 #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *488.7 Mi disk2 1: DOS_FAT_16 RUNNIX 127.7 Mi disk2s1 --- From this output, the disk of interest is "disk2". Be very careful determining the correct disk to use. If you are unsure what is the correct disk, do not proceed. For this example, the complete command and output is as follows... $ os-x-cf-write disk2 astlinux-0.6.2-net5501.img.gz Unmount of all volumes on disk2 was successful Erasing /dev/disk2... Started erase on disk disk2 [ + 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%..100% ] Finished erase on disk disk2 Writing "astlinux-0.6.2-net5501.img.gz" to /dev/disk2 This may take a long time... 262080+0 records in 262080+0 records out 134184960 bytes transferred in 76.572937 secs (1752381 bytes/sec) Disk disk2 ejected You can safely remove your disk2. --- Enjoy, Lonnie ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.