How to wipe up all partitions on disk and do a clean install of Ubuntu [duplicate]

Sorry if it's an obvious question, but here's the deal: I have a notebook with dual boot (Ubuntu 12.04 + Win7) and an extra NTFS partition for general storage.

I want to wipe out all of it and do a clean installation of only Ubuntu 16.04. How should I proceed? Just booting up Ubuntu Live DVD and choosing "Erase disk and install Ubuntu" will delete/format all my partitions and install a fresh Ubuntu?

TL;DR: I want to start from fresh and wipe all my partitions table (format and delete them) to install Ubuntu 16.04.


Solution 1:

Yes, if you select "Erase disk and install Ubuntu", this will delete all partitions on the entire disk and create and format new ones for Ubuntu.


This is good enough for personal use if you have no need to irrecoverably wipe all data for security/privacy reasons.

If you feel the need to securely wipe your disk, the simplest way would be to boot from a live Ubuntu DVD or USB drive, select "Try Ubuntu without installing", open a terminal (Ctrl+Alt+T), check which device name your HDD to wipe has using the lsblk command (should be something like /dev/sda) and then overwrite the complete drive with zeroes using the command below (replacing /dev/sdX with the name of the disk you want to wipe!):

sudo dd if=/dev/zero of=/dev/sdX bs=4M status=progress

This will take a while, depending on your disk size and speed. After that, the disk looks like factory-new, no data, partitions or even partition tables left.

After that you can go on installing Ubuntu normally.