MakeTechEasier
  • Home
  •  
  • About
  •  
  • Archives
  •  
  • Jobs
  •  
  • Advertise
  •  
  • Contact Us
  • Windows
  • Linux
  • Mac
  • Internet
  • WordPress
  • iPhone
  • Android
  • All Categories
    • Android RSS
    • Firefox RSS
    • Gaming RSS
    • Google RSS
    • google chrome RSS
    • Internet RSS
    • iPhone/iPod Touch RSS
    • Linux RSS
    • Mac RSS
    • Mobile RSS
    • OpenOffice RSS
    • PC Hardware RSS
    • Review RSS
    • Roundup RSS
    • Windows RSS
    • Windows Mobile RSS
    • WordPress RSS
    • WordPress Plugins RSS
  • rss icon
  • email icon
  • facebook icon
  • twitter icon

Ubuntu: How To Delete Your Files (Or Wipe Your Hard Drive) Beyond Recovery

Posted by: Damien on February 14th, 2008
  • 9 Comments
  • Share


How confident are you that when you ‘delete’ a file, it really get deleted/removed/erased/wiped from your hard disk?

The fact is, the ‘delete’ command does not remove your file(s). It simply tells your system to free up the space for other data. Until the space been filled with new data, your file(s) will still remain on the disk itself. That is to say, with some simple recovery tools, the files can be easily recovered. Now, if you want to completely eradicate porns files that contain sensitive information, you have to do more than just ‘delete’ and ‘empty trash’

Shred is a shell command that allows you to securely erase any files. It overwrites the specified file(s) repeatedly, in order to make it harder for even very expensive hardware probing to recover the data.

Shred is included in many Linux distributions, thus you can use it immediately, without any further installation.

To shred a file,

shred -f -v -z -u file.txt

where

-f: change permissions to allow writing if necessary
-v: verbose, to display the progress
-z: add a final overwrite with zeros to hide shredding
-u: truncate and remove file after overwriting

ubuntu shred screenshot1

ubuntu shred screenshot2

You can type shred –help (with two ‘-’ in front of the help) to display a list of options.

Adding shred to Nautilus menu

You can also add shred to your nautilus menu for convenience sake.

1. Install nautilus-actions from your Synaptic Package Manager, or in the terminal, type

sudo apt-get install nautilus-actions

2. Open up Nautilus Actions Configuration (System->Preference->Nautilus Actions Configuration)

3. Click Add

ubuntu shred screenshot3

4. Fill in the following details:

Label: Shred
Tooltip: Use the shred utility to securely erase files
Icon: gtk-dialog-warning
Path: shred
Parameters: -f -u -v -z %M

5. Click on the Conditions tab

ubuntu shred screenshot4

6. Under the “Appears if selection contains“, check “both”

7. Check the box “Appears if selection has multiple files or folders“. Click OK

8. Open up a terminal, type

nautilus -q

nautilus

Now right click on any files, you should be able to see the shred command in the menu.

PS: While this is a useful tool to erase files, it is not guaranteed to be effective in the following conditions:

  • log-structured or journaled file systems, such as XFS and Ext3
  • file systems that write redundant data and carry on even if some writes
  • fail, such as RAID-based file systems
  • file systems that make snapshots, such as Network Appliance’s NFS server
  • file systems that cache in temporary locations, such as NFS version 3 clients
  • compressed file systems


Damien Oh is the owner and chief editor of Make Tech Easier

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Share and Enjoy!

  • Rss feed
  • StumbleUpon It!
  • Del.icio.us
  • reddit

Related Posts

  • Ubuntu: Easy (And Quick) Ways To Open Any Files As Root
  • Ubuntu Howto: How To Bypass The Trash And Delete A File Completely
  • Ubuntu: How to Mount iso, Bin And Cue Files Directly From Nautilus
  • Ubuntu: Two Ways to Keep A Clean Desktop Without Affecting Your Efficiency
  • How To Install Dreamweaver CS3 In Ubuntu Hardy

Popular Posts

  • Turn Your Ubuntu Hardy to Mac OSX Leopard 498 comment(s)
  • Turn Your Ubuntu Intrepid Into Mac OSX Leopard 311 comment(s)
  • Download EASEUS Partition Master For Free – 24 Hours Only 174 comment(s)
  • 28 Coolest Firefox About:Config Tricks 122 comment(s)
  • How To Boot And Install Windows 7 From USB Flash Drive 122 comment(s)

Enjoyed the article? Subscribe to Make Tech Easier today to get your daily updates of technology tutorials, tips and tricks.

Enter your email:

3 pingbacks/trackbacks (Click to open)

  • Linux: 6 Useful Extensions to Improve Nautilus Functionality | MakeUseOf.com
  • Linux: 6 Useful Extensions to Improve Nautilus Functionality | Evilpig's Domain
  • Borrado seguro de archivos con Nautilus « Gnometips
[Click to close]

9 Responses

  • neil watson says:
    December 7, 2008 at 11:56 pm

    as a poor old duffer i would like to know how to delete compress files in a language i understand

    Reply
    • Damien says:
      December 8, 2008 at 7:54 am

      When you say compress files, do you mean those zipped or tar files? If you just want to delete them, you can easily do so by selecting them, right click and select Move to Trash

      Reply
  • Charles says:
    December 13, 2008 at 1:38 am

    Seems to work well enough.

    Reply
  • jemdaddy says:
    December 18, 2008 at 12:03 pm

    hey guys, i got a new asus pro50gl lappy and it had vista on it, i want to put XP on there but it wont let me when i go into BIOS ect, change to first boot bla bla when it loads blue screen and says ” stating windows set up ” it comes to a blue screen saying ” we have detected a problem bl bla” how do i completely wipe the drive so i can start fresh

    Reply
    • Damien says:
      December 19, 2008 at 1:37 am

      There are several software out there that allow you to wipe your hard drive, but the one that I recommend is Gparted – http://gparted.sourceforge.net/.

      Alternatively, you can download a Ubuntu LiveCD, boot it and fix your hard drive from there.

      Reply
  • nellli says:
    February 6, 2009 at 8:06 pm

    It works just perfectly!
    Thanks

    Reply
Cancel reply

Leave a Comment




Comment

Please Note: Comments maybe under moderation after you submit your comments so there is no need to resubmit your comment again

write for MTE

Latest Posts

  • OfficeMedium – A Social Collaboration Platform For The Small Business + Free Promotions
  • MakeTechEasier Is Now Hosted On KnownHost
  • KTorrent: KDE’s BitTorrent client
  • How to Create a Customized Toolbar for Your Browser
  • 13 Ways To Customize Ubuntu Netbook Remix For Better Usability

Our Writers

  • Damien Oh - Chief Editor
  • Sharninder - Geeky Ninja
  • Joshua Price
  • Tavis J. Hampton - Lantern Torch
  • Shevonne Polastre - FreeAgentWriter
  • Trevor Dobrygoski
  • Soumen Halder - Ampercent
  • Tanmay Ahmed - Tech-Tips-Geek
Make Tech Easier on Facebook
Jobs by SimplyHired
Job Widgets

Copyright

All the articles (including the text, images and tutorials) are properties of MakeTechEasier.

You cannot copy whole tutorials, either in English or translate to another language without our permission.

Write for us

Writing a tutorial or article for MakeTechEasier is a great way to get exposure and give back to the community.

Read More Details

Suggestions

We need your help to help us serve you better! This is YOUR site, so if you have suggestions/feedbacks on how we can improve it for you, please let us know! We do our best to make this place better!

Make a Suggestion

Navigation

  • Home
  • About Us
  • Advertise
  • Archives
  • Contact Us

Copyright © 2007-2010 Make Tech Easier | All Right Reserved.