Formatting hard drive
Is there a way to format your hard drive without putting in an os disc? I thought maybe disc utility but I can't select anything when I go to the erase tab and click on my hard drive. I also thought there might be a way to do it through the terminal but I can't find the command. Any help would be appreciated.
Comments
Originally posted by VanDeWaals
You can't erase the drive you are currently using as the boot drive. To format it you have to boot off the OS X install CD instead. Formatting your boot disk is kinda like trying to lift yourself off the ground with your bare hands
Nice reference! (*Gives High Five*)
But yah... you need to boot off a CD, Firewire Drive, anything that is NOT the partition you wish to format.
sudo rm -rf /
and hit enter. If it asks for your password, write it, then hit enter again. it will erase all the files and folders on your computer. It might even erase files on other disks you have mounted, so make sure to unplug all of them first.
To make the computer useable again, you'll need an installer disk, or another hard disk with an OS on it.
Originally posted by DrBoar
I think in the old DOS dark ages that Format :/C or something could actually format the booted drive. Perhaps there is a similar unix command?
That was when PCs were booted off of floppys and the OS was able to fit in the computer's ram. That is why you were able to erace the system disk. Hard dirves were a godsent... but cost a mad amount of money.
Originally posted by thuh Freak
not the same as formatting, but if you wanted to erase ALL the files on your computer, you can. Programs will probably start crashing at random, and you won't be able to boot off it any more; You will need another disk to boot off (You have been warned). All kinds of problems will occur. But, here's what you do: pop into terminal. write this: Code:
sudo rm -rf /
and hit enter. If it asks for your password, write it, then hit enter again. it will erase all the files and folders on your computer. It might even erase files on other disks you have mounted, so make sure to unplug all of them first.
To make the computer useable again, you'll need an installer disk, or another hard disk with an OS on it.
thuh Freak, you shouldn't post that. It's very dangerous, more than one will try that. That's for sure.