We want to ensure all data stored in every donated computer is properly erased before installing the new operating system. Therefore learning how to properly erase the hard drive is the first step in the laptop sanitation process.
You have 2 options to completely wipe out all previously stored information in the computer (user information as well as all the previously installed softwares and operating system)
Method1: Using Lubuntu disk
apt-get install coreutils
(you need to have your laptop connected to the Internet for the above command to succeed)
sudo shred /dev/sda -f -v --iterations=2
If this command does not work, you can try with 'hda' instead of 'sda', like this: sudo shred /dev/hda -f -v --iterations=2
.
Method 2: Using Parted Magic or Labtix.iso
Or you can boot your laptop with the Labtix disk (see Preparation for the Fast Installation Methods to learn how to create a Labtix disk)
Once booted, click on the bottom ROXT Terminal (xterm icon on the lower right) This will take you to a terminal console.
sudo shred /dev/sda -f -v --iterations=2
If this command does not work, you can try with 'hda' instead of 'sda', like this: sudo shred /dev/hda -f -v --iterations=2
.