Note: You are currently viewing my old web site. There is a new version with most of this content at OJB.NZ. The new site is being updated, uses modern techniques, has higher quality media, and has a mobile-friendly version. This old site will stay on-line for a while, but maybe not indefinitely. Please update your bookmarks. Thanks.
Get disk identifier, use: diskutil info "DISKNAME" | grep "Device Node"
Then erase disk using: diskutil eraseDisk FILESYSTEM DISKNAME DISKIDENTIFIER
Where FILESYSTEM is JHFS+ (Journalled), HFS+, FAT32
DISKNAME is the name to be given to the disk
DISKIDENTIFIER is the ID returned above (eg /dev/disk6s2)