PDA

View Full Version : Linux equivalent of the DOS diskpart /clean command?



junk.here
November 17th, 2013, 12:00 PM
I've been switching OSes every few days these past 2 weeks, and every time I've first stuck a Windows 7 DVD in and ran diskpart /clean in order to make the next OS installation a bit smoother (at the very least I don't get asked if I'm sure I want to obliterate all existing data and at the very worst I don't have the OS installer freaking out on me because it can't delete the existing partitions for whatever reason). In light of that, I'm wondering if there's a Linux equivalent of the diskpart /clean command?

oldfred
November 17th, 2013, 05:48 PM
If you just want to delete partitions, use gparted from Ubuntu live installer or just about any Linux repairISO or download gparted or parted magic ISOs.

http://partedmagic.com/
http://gparted.sourceforge.net/faq.php


GParted partitioning software - Full tutorial
http://www.dedoimedo.com/computers/gparted.html
Screenshots of using gparted
http://www.howtoforge.com/partitioning_with_gparted

You can also use command line tools like fdisk for MBR, parted or gdisk for gpt partitioned drives.
Use man command for more info.
man parted

If you want secure erase.
The brute force method is dd, but I will not post example as any typo and you destroy data.

Powerful command, but often misused and then nicknamed "dd" Data Destroyer
http://www.linuxquestions.org/questions/linux-newbie-8/learn-the-dd-command-362506/

There are many applications for secure erase like wipe,secure-delete and others.

Bashing-om
November 17th, 2013, 05:50 PM
n/m, oldfred beat me too it ..
Better said than I had in mind !


ubuntu, all things are possible