LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-16-2005, 10:30 PM   #1
90-60-90
LQ Newbie
 
Registered: Feb 2005
Posts: 8

Rep: Reputation: 0
best way to get rid of files? (for good)


I have recently tried a data recovery on a formatted HD.
while reading on the topic, I found interesting that, one one side, people say it's very hard to recover the files and, on the other, people affirm that there is no such thing as a secure delete.
I found that many "experts" say that overwrting files due to lack of space makes the recovery harder than a full format.
I would like to hear opinions about what would make recoverying files harder in the case we want to get rid of them.
what tools and techiniques are employed in data recovery?
also i would appreciate suggestion of further reading and howto's.
 
Old 02-16-2005, 10:57 PM   #2
mastahnke
Member
 
Registered: Feb 2002
Location: IL
Distribution: Ubuntu currently, also Fedora, RHEL, CentOS
Posts: 111

Rep: Reputation: 15
Scrubbing disks with a magnet is always good, but if you want to keep a filesystem or parts of the disk you can use dd.

I sometimes will do a

$ dd if=/dev/zero of=/path/to/file/I/want/deleted

that zeros it out, then delete it.

You could also use /dev/random.


Most security experts say you need to format/overwrite data 7 times for it to be non recoverable. You can write zeros all day long pretty easily.

MIKE
 
Old 02-16-2005, 10:58 PM   #3
cadj
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374

Rep: Reputation: 32
I have done a few experiments with this using a single floppy disk.

I wrote a simple text document and saved it on the disk, then i formated it.

using grep, i was able to recover some information off the fdd.

to wipe the disk completely, i perfomed a dd if=/dev/zero of=/dev/fd0
this overwrote the entire disk with zero's.

I could not rcover any information after this, and i would think hardly anyone could
 
Old 02-16-2005, 11:00 PM   #4
jlangelier
Member
 
Registered: Jun 2003
Location: Denver, CO
Distribution: Debian
Posts: 95

Rep: Reputation: 15
The Free Software Foundations 'shred' (man shred) is on my slackware box by default, but you can get it for free if it's not on yours. That'll delete anything well enough that only the NSA or some entity with similar resources could get it back. And I personally doubt even they could. I think this stuff about 'no such thing as a secure delete' is FUD.

Of course, I'm ignoring temp files, caches, tempest attacks, and other operating system issues.

Last edited by jlangelier; 02-16-2005 at 11:01 PM.
 
Old 02-16-2005, 11:41 PM   #5
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
There is also a program called dban that I use from time to time before selling a hard drive. But if you truely want it gone then Thermite comes to mind, or maybe an acetylene torch.
 
Old 02-18-2005, 12:39 PM   #6
90-60-90
LQ Newbie
 
Registered: Feb 2005
Posts: 8

Original Poster
Rep: Reputation: 0
thanks everyone for the feedback.
it seems it's easier to make a secure delete zeroing the entire HD, although this is less useful for the normal user who want to just erase some information and keep using his PC.
I read that file fragmentation is also a factor in a succeful recovery.
especially on windows systems, a frequent defrag will make recovery easier.
I think I'll head for a flee market, get myself a used HD and hack the hell out of it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please suggest a good program for cataloging files Mike Goodwin Linux - Software 4 08-31-2004 09:46 PM
howto get rid of files with ~ appended random234 Linux - Software 3 06-16-2004 09:45 AM
anyone know good cd burning software to burn cdi files Devboy Linux - Software 7 08-29-2003 11:59 AM
Anyone know where I could get some good examples of sendmail files? WorldBuilder Linux - Networking 1 05-14-2003 04:12 AM
Ok Here a good question about download iso files maximalred Linux - Distributions 7 04-15-2003 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration