LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-24-2007, 12:28 PM   #1
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Rep: Reputation: 30
How to recover deleted files?


I have Debian on a FeiserFS file system.

I downloaded some documents via FireFox but I accidentally deleted them and emptied the trash bin. Is there a way I can recover these files? There were about 40 different files.
 
Old 01-24-2007, 12:36 PM   #2
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Rep: Reputation: 51
In UNIX or Linux, once it is deleted, it is gone. KDE and GNOME have "trash bins," which act as a storage area for "deleted" files until you confirm that you really want to delete them. Once they are deleted from there (or when any file is deleted using the command line), that is the end.
 
Old 01-24-2007, 01:07 PM   #3
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
Oh no...Aw man! Maybe FireFox has like some backup file where stuff that is downloaded is made copies of? Or maybe these files have backups in some hidden system file of Debian?
 
Old 01-24-2007, 02:51 PM   #4
ssarasin
Member
 
Registered: Jan 2007
Location: South Bend, Indiana
Distribution: Kubuntu 8.04 64bit, 32bit & PPC
Posts: 30

Rep: Reputation: 15
Quote:
Originally Posted by SentralOrigin
Oh no...Aw man! Maybe FireFox has like some backup file where stuff that is downloaded is made copies of? Or maybe these files have backups in some hidden system file of Debian?
Unfortunately, as stated above, deleting a file in Linux is not the same as in Windows. When the file is deleted, it really is gone... I'm not sure if the cache in Firefox would help or not. I think that is just for storing temp files and information from web pages that you have visited... Not for actual downloaded files...
 
Old 01-24-2007, 03:02 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
In the GUI, the behavior is similar to Windows---you have the trash can (which you said you emptied).

At the command line, there is no trash can, etc. But, with a command like rm, it will still prompt you--unless you use the -f flag.

If you do not write to the disk, files a re still potentially recoverabe with low-level utilities. In this case, however, just downoading again is surely be best approach.
 
Old 01-24-2007, 03:42 PM   #6
cybertaz
Member
 
Registered: Oct 2006
Distribution: SuSE 11.0
Posts: 118

Rep: Reputation: 15
You can pull up the download manager(TOOLS-->DOWNLOADS) in firefox and see if they are still there. There will be a link to redo or something similar next to the entry in the download manager.

If you clean your history each time firefox closes, your outta luck AFAIK.
 
Old 01-24-2007, 04:32 PM   #7
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
I remember there was a unix command, but I cannot recall what it was. I don't think it's as reliable and simple as "undelete" in MS-DOS
 
Old 01-24-2007, 04:59 PM   #8
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
If you're feeling ambitious, have a look at The Coroner's Toolkit. Your distro may even have a binary for it.

Good luck.
 
Old 01-24-2007, 05:10 PM   #9
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 30
Quote:
I remember there was a unix command, but I cannot recall what it was. I don't think it's as reliable and simple as "undelete" in MS-DOS
Theres a program called foremost, its pretty reliable at finding files of a certain type by looking for their headers. Things like jpg,avi,doc etc. It might be worth a look.
 
Old 01-25-2007, 12:20 PM   #10
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
Someone suggested Foremost to me before. I don't know how to use it though. Is there any guide I can follow to recover these files? The extensions on all of them are "Plain Text Documents" (I use Kwrite).
 
Old 01-25-2007, 02:27 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Well, there is a man page on the Foremost site......

If you hope to recover anything, be sure not to write to that disk. If the data is really critical, also consider cloning the drive (or partition) before proceeding)
 
Old 01-25-2007, 06:31 PM   #12
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
If I were you, I hope you are accessing and posting on another computer. I wouldn't want to be working on the computer that I am trying to recover files from. Might accidentally make it harder to recover. Oh yes, and don't shut off the affected computer, either! GOod luck and let us know if you retrieve the file or not.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover Deleted Files thammerlund Linux - Newbie 4 07-13-2006 10:40 PM
How do I recover deleted files? Hector404 Linux - General 5 12-27-2005 01:35 AM
how to recover deleted files sibtay Linux - Software 13 01-22-2005 08:09 PM
Recover deleted files? subaruwrx Linux - Newbie 8 06-04-2004 08:47 AM
Recover deleted files markdw Linux - General 1 12-07-2001 04:08 PM


All times are GMT -5. The time now is 02:38 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