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 print
with this output I could manulally have the script run this command on each of the found partitions
Code:
parted /dev/hda -s rm $NUMBER
before I write this script, I am wondering if ther is a way to just erase the whole drive with one parted command. for example, if this command was available
Code:
parted /dev/hda -s rm all