Jan 01

How to wipe a hard disk before you sell it

Category: Linux   — Published by tengo on January 1, 2012 at 8:01 am

In case you want to auction or sell your Laptop or an old hard disk, make sure people have a hard time retrieving your data.

  1. Download SystemRescueCD, for example.
  2. Boot into Linux (could be you have to change the boot order in BIOS)
  3. Use # fdisk -l to list installed drives on the machine.
  4. Use
     # shred -vfz -n 100 /dev/sda 

Here /dev/sda (sda1, sda2 might indicate partitions only) /sda is the whole hard disk. Make (-n) 100 passes by overwriting the entire hard disk with (-z) zeros. And (-f) forces the write by changing the permissions wherever necessary. (via)