![]() |
using parted to erase whole disk
I wanted to use parted to automatically partition my harddrive. As far as I can tell, their is no option to erase the drive in one step. I can do it using a bash or python script that gets output from the command
Code:
parted /dev/hda -s printCode:
parted /dev/hda -s rm $NUMBERCode:
parted /dev/hda -s rm all |
You might like to take a look at this link (describing Partition Tables):
http://www.win.tue.nl/~aeb/partition..._tables-2.html It seems to me that if you just use dd to zero out the partition table, then all the partitions are "Deleted". Then you can start reconstructing them. Or maybe it isn't that simple? HTH |
thanks for the suggestion, that sounds like that might be a good solution :-)
|
| All times are GMT -5. The time now is 06:09 PM. |