Jump to content

Formatting hard drive for OS X using Terminal.app


MyghKaR5b
 Share

3 posts in this topic

Recommended Posts

Run Terminal from the install DVD.

 

diskutil list

In the list produced, find the identifier of the drive you want to erase. It'll be something like disk0, disk1, etc. Then...

diskutil eraseDisk HFS+ "Macintosh HD" disk0

 

Replace 'disk0' with the disk identifier you figured out earlier, and you can replace "Macintosh HD" with whatever you want your volume to be named. If it has spaces, you MUST keep it in quotes. Otherwise the command will error out.

 

If you're not running it from the install DVD... run it from the install DVD. You can't erase your OS X disk from within OS X.

Link to comment
Share on other sites

 Share

×
×
  • Create New...