LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-31-2003, 12:10 PM   #1
Superdude
Member
 
Registered: Oct 2003
Distribution: Slackware 9.0
Posts: 47

Rep: Reputation: 15
Question about deleting files


You know how when in Dos/Windows when you delete a file, it's not really deleted, just marked as deleted in the FAT, but can still be recovered with an "undelete" utility? In order to delete a file so that it cannot be undeleted, you have to use some special program which rewrites that part of the disk with random 1's and 0's.

How about with Linux? When I type rm filename, can that file be recovered, if so, how?
 
Old 12-31-2003, 12:40 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
When you delete a file in Linux, the inode that marks the file is marked as clear. As long as that inode is not reused, the you could probably recover the file with the appropiate tools. A quick check on Freshmeat would probably turn up a few tools to do this.
 
Old 12-31-2003, 02:17 PM   #3
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 58
and like stated above, you will get approx. 5 results by doing a search for "undelete", and when i did it, this one caught my eye... also this one here i found on sourceforge which may be of some interest..
 
Old 12-31-2003, 02:26 PM   #4
Superdude
Member
 
Registered: Oct 2003
Distribution: Slackware 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
Is there a program that can be used instead of rm which will securely delete a file?
 
Old 12-31-2003, 03:10 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
The program is called shred. You may have it already. Type 'which shred' to find out. 'info shred' for instructions.
 
Old 12-31-2003, 03:11 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
I found srm listed on my site.
 
Old 12-31-2003, 06:34 PM   #7
Superdude
Member
 
Registered: Oct 2003
Distribution: Slackware 9.0
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks a lot!
 
Old 12-31-2003, 06:57 PM   #8
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
I found this little software on SourceForge.
Recover
http://recover.sourceforge.net/linux/

Or you can always recover manually. Take a look at these HowTOs.
http://www.tldp.org/HOWTO/Ext2fs-Undeletion.html
http://www.tldp.org/HOWTO/Ext2fs-Und...uct/index.html
 
Old 12-31-2003, 09:02 PM   #9
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 65
If you use Konqueror, you can highlight the file and then go to edit and select shred. It will be gone then. Most likely forever.

Later

 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting files in C monil Programming 4 03-13-2005 10:33 AM
Uber-noob question about deleting install files R00ts Linux - Newbie 8 04-01-2004 09:41 AM
Deleting files ShakyJake Linux - Newbie 12 05-08-2003 03:07 PM
Deleting files Tingle Linux - Newbie 4 01-16-2003 04:19 PM
Question About deleting Source Files jbhoo Linux From Scratch 2 04-26-2002 07:36 PM


All times are GMT -5. The time now is 06:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration