Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Maybe shell script?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Maybe shell script?
Authored by: Anonymous on Nov 06, '01 11:17:18AM

I am unable to test/verify my statements, but given MacOS X has the full underpinnings of a BSD Unix system, it seems plausible that there is a way to erase any disk from the command-line, meaning a simple shell script can be written to automate the task of erasing a CD-RW disk as well. Just my two cents.



[ Reply to This | # ]
Maybe shell script?
Authored by: robh on Nov 07, '01 06:55:00AM

The command to erase a disk is..

/sbin/newfs_hfs -w -v untitled /dev/diskXX

Use 'df' to find out what 'diskXX' is for your CD. Note that 'XX' can vary depending on what other disks are mounted, so you can't hardcode this info into a script.

I reckon it's safer to use Disk Utility to erase the disk.

type "/sbin/newfs_hfs -h" to see some brief help on the flags the command accepts.



[ Reply to This | # ]