Patrick’s development blog

Delete data from hard drive securely

Posted in Computer Science, Security by Patrick on May 10, 2011

It’s common for people to say that it’s necessary to overwrite the hard drive many times before the data becomes unrecoverable. This is however just a myth. The probability of recovering only a single byte is less than 1%, so it’s very unlikely that someone can restore something much bigger like 100 MB.

In other words, overwriting the hard drive many times is just a waste of time. Writing 0:s on the whole hard drive is sufficient and can be done with tools like dd.

More information:

Mount ntfs drive on Linux

Posted in Linux/GNU by Patrick on April 28, 2009

1. Install ntfs-3g.
2. Create a folder in /media or /mnt (mkdir /media/windows)
3. Use fdisk -l to get the name of the NTFS drive (example: dev/sda1)
4. Add the drive into /etc/fstab so it mounts automatically.

/dev/sda1 /media/windows ntfs-3g defaults 0 0