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: 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 | # ]