LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-01-2002, 12:15 AM   #1
josedsilva
LQ Newbie
 
Registered: Apr 2002
Location: Goa, India.
Posts: 23

Rep: Reputation: 15
Question Can I recover a deleted file in Linux ?




Hi,

is it possible to recover an erased file in Linux ?
Can you please tell me how Linux O.S. removes a file. Does it release the inode when the reference count becomes zero. Are there any softwares available for Linux which help recover erased files in Linux ?

Thanks,
jose.



Quote:
Ask and you will receive, seek and you will find, knock and it shall be opened unto you, ...

 
Old 06-01-2002, 12:37 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
How did you erase it? Did you use the 'rm' command or are you in X and chose delete? In X it sometimes (if you are lucky) will put it in the trashbin. Check that place first.
 
Old 06-01-2002, 12:52 AM   #3
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
what filesystem is it. ext2 or ext3
 
Old 06-01-2002, 12:53 AM   #4
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
or u can use 'mc' (midnightcommander)
 
Old 06-01-2002, 01:01 AM   #5
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
i am using ext2 (also ext3 in another system) and i would like to know how an earased file can be recovered in linux.

is midnight commander a free software?
 
Old 06-01-2002, 01:03 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
mc is/should come with most distros. It sort of a GUI terminal. It will allow you to scroll around your system easier. Not too bad for not being X.
 
Old 06-01-2002, 04:13 AM   #7
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
yes but I don't think you can recover files if deleted with rm -f
--just yesterday I did brilant thing (rm -f /var/spool/mail/* instead of rm -f /var/spool/mqueue/* ) trying to be fast.
 
Old 06-01-2002, 04:42 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
The more you've used the system in the time between deletion and recovery the lower the chances are you're gonna get something back. You could try recover (mc is easier IMO). There's also a link to the undelete-HOWTO.
 
Old 06-01-2002, 11:16 AM   #9
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
I didn't know there is an option to undelete in mc, that's very cool. But I don't think it works on ext3.
and I tried to delete some files but didn't really got anything back. I need to do some reading first I guess
 
Old 01-05-2010, 07:49 AM   #10
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I know that using rm deletes the file, but "deleting" the file in most GUI file managers actually just moves it to a "trash" folder (I don't know where it is, though).
 
  


Reply



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
How can I recover deleted emails? abefroman Linux - Security 4 08-20-2005 10:55 PM
recover deleted windows files from linux(help) rkrishna Linux - General 2 06-22-2005 11:32 AM
Recover deleted files from a Win partition in Linux? PenguinPwrdBox Linux - General 3 08-03-2004 04:05 AM
Recover deleted files? subaruwrx Linux - Newbie 8 06-04-2004 08:47 AM
Recover My Deleted File & Folder rajaniyer123 Linux - General 0 03-12-2004 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration