Safely Destroy Hard Drive Data With Ubuntu Live Cds
Deleting files or quickly formatting a drive isn’t enough for sensitive personal information. We’ll show you how to get rid of it for good using a Ubuntu Live CD.

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 delete 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.

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.

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

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.

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

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!
Wipe entire hard drives
If you’re disposing of an old hard drive, or giving it to someone else, then you might instead want to wipe your entire hard drive. shred can be invoked on hard drives, but on modern file systems, the shred process may be reversible. We’ll use the program wipe to securely delete all of the data on a hard drive.
Unlike shred, wipe is not included in Ubuntu by default, so we have to install it. Open up the Synaptic Package Manager by clicking on System in the top-left corner of the screen, then expanding the Administration folder and clicking on Synaptic Package Manager.
wipe is part of the Universe repository, which is not enabled by default. We’ll enable it by clicking on Settings > Repositories in the Synaptic Package Manager window.

Check the checkbox next to “Community-maintained Open Source software (universe)”. Click Close.

You’ll need to reload Synaptic’s package list. Click on the Reload button in the main Synaptic Package Manager window.

Once the package list has been reloaded, the text over the search field will change to “Rebuilding search index”.

Wait until it reads “Quick search,” and then type “wipe” into the search field. The wipe package should come up, along with some other packages that perform similar functions.
Click on the checkbox to the left of the label “wipe” and select “Mark for Installation”.

Click on the Apply button to start the installation process. Click the Apply button on the Summary window that pops up.

Once the installation is done, click the Close button and close the Synaptic Package Manager window.

Open a terminal window by clicking on Applications in the top-left of the screen, then Accessories > Terminal.

You need to figure our the correct hard drive to wipe. If you wipe the wrong hard drive, that data will not be recoverable, so exercise caution!
In the terminal window, type in:
sudo fdisk -l
A list of your hard drives will show up. A few factors will help you identify the right hard drive. One is the file system, found in the System column of the list – Windows hard drives are usually formatted as NTFS (which shows up as HPFS/NTFS). Another good identifier is the size of the hard drive, which appears after its identifier (highlighted in the following screenshot).

In our case, the hard drive we want to wipe is only around 1 GB large, and is formatted as NTFS. We make a note of the label found under the the Device column heading. If you have multiple partitions on this hard drive, then there will be more than one device in this list.
The wipe developers recommend wiping each partition separately.
To start the wiping process, type the following into the terminal:
sudo wipe <device label>
In our case, this is:
sudo wipe /dev/sda1
Again, exercise caution – this is the point of no return!
Your hard drive will be completely wiped. It may take some time to complete, depending on the size of the drive you’re wiping.
Conclusion
If you have sensitive information on your hard drive – and chances are you probably do – then it’s a good idea to securely delete sensitive files before you give away or dispose of your hard drive. The most secure way to delete your data is with a few swings of a hammer, but shred and wipe from a Ubuntu Live CD is a good alternative!
About the author
Owner of an IT company called Data Defence IT Solutions. Living in the West of Ireland and married with a kid... I clearly love technology and gadgets. At the minute I have a Tranquil Windows Home Server to manage my websites, files and entertainment. I use an Android handset, the Hero as my personal phone and a Nokia n86 as my business phone.
| Print article | This entry was posted by Konrad Walsh-(admin) on April 19, 2010 at 14:14, and is filed under Security Software, tutorials. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No trackbacks yet.
The Easy Way To Change Windows 7 Network Name
about 4 months ago - No comments
How to Change the Network Name and Icon in Windows 7 Information This will show you how to change the network name and icon in the Network and Sharing Center. 1. Click or right click on the Network icon in the notification area, then click on Open Network and Sharing Center. (See screenshot below) OR
Which OS Should You Install On A Netbook? Xp vs 7
about 4 months ago - 1 comment
Positioned as companions to either desktop or laptop computers, netbooks are small, light, convenient devices that allow for most of the basic computing functions found in larger systems. One of the most important decisions you will have to make when buying a netbook is whether to buy Windows XP or Windows 7 Starter for your
Another Way To Save Your Windows Install Using Linux/Ubuntu On A Thumb Drive
about 4 months ago - No comments
When Windows goes wrong, it can go really wrong. Worse: Often it’s extremely difficult to save your system from Windows itself. Here’s how to use a simple USB drive to free space, remove viruses, rescue passwords, and more from crunked Windows setups. What You Can Fix with this Method If you or your in-need friends
Watch A Video On Making Your Own Home Email Server
about 5 months ago - 4 comments
Another video for you from the Tinkernut site. If you ever wanted to make your email server and host it yourself at home, now is the time to grab a can of beer and sit back. Tinkernut have done a video on Making Your Own Email Server. This can be a great feature to a
Get Your Laptop Touchpad Working Harder With Multi Finger Controls
about 5 months ago - 1 comment
Windows: We recently detailed two ways of getting Mac-like multi-finger scrolling on a Windows laptop, involving little open-source apps and hacked drivers. Touchpad giant Synaptics actually offers its own app, Scrybe, that provides multi-finger scrolling, along with gesture-style application launching. The big catch to Synaptics’ own Scrybe app is that it’s fickle. You need to
Use An Ubuntu Live Cd To Recover Windows Files Easily
about 5 months ago - 1 comment
Accidentally deleting a file is a terrible feeling. Not being able to boot into Windows and undelete that file makes that even worse. Fortunately, you can recover deleted files on NTFS hard drives from an Ubuntu Live CD. To show this process, we created four files on the desktop of a Windows XP machine, and
Use Windows XP Recovery Console To Restore Data And Fix Corrupted OS Install
about 5 months ago - 1 comment
Image via CrunchBase Corruption of Windows operating system is a very common issue, which often puts you in the desert of empty disk that is data loss. One of the main reasons for the corruption of Windows operating system is the damage of file system. Once the file system is damaged, Windows cannot boot and
Support Sunday: Use WM12 To Stream Your Media Over The Net
about 5 months ago - 1 comment
A new feature in Windows Media Player 12, which is included with Windows 7, is being able to stream media over the web to other Windows 7 computers. Today we will take a look at how to set it up and what you need to begin. Note: You will need to perform this process on
Support Sunday: Easy Method To Ripping A DVD To Your Hard Drive
about 5 months ago - 1 comment
DVDs allow content creators to include high quality content, mainly due to the large storage capacity that they offer compared to CDs. The bar has been raised even higher with the arrival of Blu Ray discs. DVDs however, continue to be a very popular media among users and content creators. The thing with DVDs, as
Some Safety Tips On Properly Erasing or Destroying A Hard Drive
about 5 months ago - No comments
Take a moment and think about all of the sensitive data kept on your computer. Account passwords, addresses, phone numbers, access to bank accounts and other financial services, and maybe even your social security number. Almost every aspect of your identity is kept on this little machine. Now imagine you want a new one. So,

![Safely Destroy Hard Drive Data With Ubuntu Live Cds Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_e.png?x-id=0dd40dda-73cb-4bab-abfa-443698d997a6)


about 1 month ago
This is a great tip, thanks!
about 1 month ago
I really like your works. you seems to be IT GEEK like me.. Who can spend hours in front of computer…
Good work man, keep it up