Did you try Disk Utility?
Also, Google is your friend.
and/or, man diskutil
Be careful to reformat the correct drive!
I could be mistaken, but disk0sX (where "X" is however many partitions there are on the drive) is the internal hard drive.
disk1sX is the optical drive..
Theoretically, disk2sX would be the iPod, or another optical drive.