or Connect
AppleInsider › Forums › Software › Mac OS X › Terminal command to reformat a drive in X?
New Posts  All Forums:Forum Nav:

Terminal command to reformat a drive in X?

post #1 of 9
Thread Starter 
Is there a set of terminal shell commands that will allow me to erase/reformat a drive in OS X?

What about low-level formatting?
A friend will help you move, but a REAL FRIEND will help you move a body.
Reply
A friend will help you move, but a REAL FRIEND will help you move a body.
Reply
post #2 of 9
I'd be interested in knowing this too. Ahh this brings back memories, when I was a kid during the MS-DOS days, I used to go to all the computer stores and type:

FORMAT C:

on every PC
post #3 of 9
As far as I know, you cannot low-level format a drive from within an operating system. I have to use a utility provided by IBM to low-level format my drives on my PC, which requires restarting from a set of floppies.

If you want to get rid of everything on a drive, simply read the man pages for rm. Goto the console and type 'man rm' and hit enter (without the quotes, of course).

--bradd
post #4 of 9
kestral you little rascal you

You can format in HFS/+ with the terminal, you can even format in FAT32, using the command:


sudo newfs_hfs -F 32 /dev/disk1s2

where /dev/disk1s2 is the UNIX name of your drive, which you can determine in various ways (df is one).

use newfs_msdos to format to FAT32

Be very careful with the device name, as you can format the wrong drive/partition because of juste one number...
Soyons réalistes, Demandons l'impossible.
Reply
Soyons réalistes, Demandons l'impossible.
Reply
post #5 of 9
What about pdisk?

man pdisk
I can change my sig again!
Reply
I can change my sig again!
Reply
post #6 of 9
Hahah me too! Or send the C64s into an endless profane loop, while disabling the break mechanism. The clerk had to come power cycle it.

[quote]Originally posted by Kestral:
<strong>I'd be interested in knowing this too. Ahh this brings back memories, when I was a kid during the MS-DOS days, I used to go to all the computer stores and type:

FORMAT C:

on every PC </strong><hr></blockquote>
Got no time fo' the jibba jabba.
Reply
Got no time fo' the jibba jabba.
Reply
post #7 of 9
Hahah me too! Or send the C64s into an endless profane loop, while disabling the break mechanism. The clerk had to come power cycle it.

heh... brings back memories...

Still when I see a win9x box I execute c:/con/con, bluescreen garanteed...
Soyons réalistes, Demandons l'impossible.
Reply
Soyons réalistes, Demandons l'impossible.
Reply
post #8 of 9
[quote]Originally posted by Eugene:
<strong>What about pdisk?

man pdisk</strong><hr></blockquote>
pdisk is for repartitioning, which is not the same as formatting/creating a file system.
post #9 of 9
wow, BlueGecko, glad to see you here!

what've you been up to?
Soyons réalistes, Demandons l'impossible.
Reply
Soyons réalistes, Demandons l'impossible.
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Mac OS X
AppleInsider › Forums › Software › Mac OS X › Terminal command to reformat a drive in X?