Ubuntu Linux is an open-source operating system that can be downloaded for free. Operating systems don't wipe deleted files immediately; portions of deleted files remain on a computer's hard drive until the operating system overwrites them. Ensure your data remains private by wiping your computer's hard drives when selling, donating or otherwise disposing of them. Wipe hard drives using the "dd" command in Ubuntu and other Linux distributions. Write zeros to the hard drive with the "dd" command, replacing all data on the hard drive with zeros.
- Skill level:
Other People Are Reading
Insert a Ubuntu CD into your computer's disc drive and restart your computer by clicking the "Shut Down" icon at the upper-right corner of your Ubuntu desktop and clicking 'Restart" if you want to wipe your system drive. Ubuntu can't properly wipe the hard drive it's running on; wiping the hard drive Ubuntu is installed on requires booting into a live CD environment.
Open a Terminal by clicking "Applications," "Accessories" and "Terminal."
List attached hard drives by typing "sudo fdisk -l" into the "Terminal" window and pressing "Enter."
Authenticate yourself by typing your password and pressing "Enter" when prompted.
Look for the hard drive's device name in the output of the "fdisk -l" command in the "Terminal" window. If you have one hard drive, there will be one block of information starting with "Disk /dev/sda," if you have two, there will be a second block starting with "Disk /dev/sdb" and so on.
Wipe a hard drive by typing "sudo dd if=/dev/zero of=device bs=1M" into the "Terminal" window, replacing "device" with the device name of the hard drive and pressing "Enter." For example, wipe the first hard drive by typing "sudo dd if=/dev/zero of=/dev/sda bs=1M" into the "Terminal" window and pressing "Enter."
Tips and warnings
- Be careful when typing the device name of the hard drive. Wiping a hard drive erases all data on the drive, you cannot recover it.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for