Have you ever given or sold a PC to somebody else, but really wanted to completely wipe the hard drive first? Today we’ll show you how to use an Ubuntu Live CD to get your personal information off your PC.

sshot-1

When you delete a file in Windows, Ubuntu, or any other operating system, it doesn’t actually destroy the data stored on your hard drive, it just marks that data as “deleted.” If you overwrite it later, then that data is generally unrecoverable, but if the operating system don’t happen to overwrite it, then your data is still stored on your hard drive, recoverable by anyone who has the right software.

By securely deleting files or entire hard drives, your data will be gone for good.

Note: Modern hard drives are extremely sophisticated, as are the experts who recover data for a living. There is no guarantee that the methods covered in this article will make your data completely unrecoverable; however, they will make your data unrecoverable to the majority of recovery methods, and all methods that are readily available to the general public.

Shred individual files

Most of the data stored on your hard drive is harmless, and doesn’t reveal anything about you. If there are just a few files that you know you don’t want someone else to see, then the easiest way to get rid of them is a built-in Linux utility called shred.

Open a terminal window by clicking on Applications at the top-left of the screen, then expanding the Accessories menu and clicking on Terminal.

sshot-11

Navigate to the file that you want to delete using cd to change directories and ls to list the files and folders in the current directory.

As an example, we’ve got a file called BankInfo.txt on a Windows NTFS-formatted hard drive.

sshot-15

We want to delete it securely, so we’ll call shred by entering the following in the terminal window:

shred <file>

which is, in our example:

shred BankInfo.txt

sshot-16

Notice that our BankInfo.txt file still exists, even though we’ve shredded it. A quick look at the contents of BankInfo.txt make it obvious that the file has indeed been securely overwritten.

sshot-14

We can use some command-line arguments to make shred delete the file from the hard drive as well. We can also be extra-careful about the shredding process by upping the number of times shred overwrites the original file.

To do this, in the terminal, type in:

shred –remove –iterations=<num> <file>

By default, shred overwrites the file 25 times. We’ll double this, giving us the following command:

shred –remove –iterations=50 BankInfo.txt

sshot-18

BankInfo.txt has now been securely wiped on the physical disk, and also no longer shows up in the directory listing.

Repeat this process for any sensitive files on your hard drive!

Pages: 1 2

Tags: