Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wipe Disk Partitions

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
On a Solaris 8 system using the format command, what is the quickest way to remove all the partitions?

I want to redo all my partitions but ensure I start from scratch.

Thanks!

Michael
 
Just set their start and end cylinders to 0. Best to leave partition 2 (backup) as it is though.

If you need to do this for many disks look at the man pages for prtvtoc and fmthard. Annihilannic.
 
Actually, I've just seen in a colleague's notes a quicker way is fmthard -s /dev/null /dev/rdsk/c?t?d?s?. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top