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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-13-2004, 11:53 PM
|
#1
|
|
Member
Registered: Aug 2004
Location: U.S
Distribution: Ubuntu
Posts: 145
Rep:
|
how to recover deleted files
hello
i ve accidently deleted a folder with
rm -rf <folder name>
can i recover it?
|
|
|
|
12-14-2004, 12:15 AM
|
#2
|
|
Member
Registered: Jan 2004
Location: Atlanta
Distribution: FreeBSD, Ubuntu, OSX, Fedora
Posts: 669
Rep:
|
From my knowledge, no.
But then I don't really know what linux is doing behind the scenes when files are removed with the rm command.
|
|
|
|
12-14-2004, 12:29 AM
|
#3
|
|
Member
Registered: Jul 2004
Location: Coeur d'Alene Idaho
Distribution: Slackware
Posts: 41
Rep:
|
Take a look at this:
unrm
[My understanding is that rm does an 'unlink' on the files .. effectively forgetting they exist. rm itself doesn't actually overwrite files.]
|
|
|
|
12-14-2004, 02:10 AM
|
#4
|
|
Member
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835
Rep:
|
You may also want to check out libtrash. I haven't tried it, and don't know how well it works. I will not help you with your present dilemma, though. It is supposed to create a recycle bin type of folder where things are moved to when they are deleted.
Thanks ogmoid for your post. What little I have seen on undeleting in Linux made me think that there was no easy way to do it. I think this project only applies to ext2 (and probably ext3) filesystems though.
|
|
|
|
12-14-2004, 04:44 AM
|
#5
|
|
Member
Registered: Jun 2003
Location: Front of PC
Distribution: Linux Mandrake
Posts: 212
Rep:
|
In theory, it is possible to recover the data, since when you delete the file, all you delete are the inodes and stuff at the filesystem level, not the data itself. It's still there. You can use unrm or access your hd on windows and use Acronis Data Recovery on the linux partition. If the data is buried very deep in the magnetic multilayers of the HD, then you will have to use scanning microscopy to recover the data, and there are professional data-recovery companies that do so.
|
|
|
|
01-19-2005, 11:04 AM
|
#6
|
|
Member
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827
Rep:
|
Quote:
Originally posted by gd2shoe
I think this project only applies to ext2 (and probably ext3) filesystems though.
|
Tried this with ext3 as an experiment, get just a complaint:
Checking device /dev/hdb2...is not an ext2 file system!
So I wouldnt bet on the ext3 compatibility.. (:
|
|
|
|
01-20-2005, 04:44 AM
|
#7
|
|
Member
Registered: Jun 2003
Location: Front of PC
Distribution: Linux Mandrake
Posts: 212
Rep:
|
Quote:
Originally posted by student04
From my knowledge, no.
But then I don't really know what linux is doing behind the scenes when files are removed with the rm command.
|
Doesn't it just move the file to /dev/null/ ?
|
|
|
|
01-21-2005, 02:42 AM
|
#8
|
|
Member
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835
Rep:
|
Quote:
Originally posted by hari_seldon99
Doesn't it just move the file to /dev/null/ ?
|
Arrrrrrrgh.
I just got half way through explaining what really happens when something gets deleted. I glanced down, and saw that you already have a sound understanding of where the file goes to.
That... must have... been... a, joke?
<smack head on keyboard> <think about it for a minute> <repeat>
|
|
|
|
01-21-2005, 03:48 PM
|
#9
|
|
Member
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161
Rep:
|
If you use ext2 then you're lucky.
If you're using ext3 then there's no easy (read: cheap) way of recovering data.
|
|
|
|
01-21-2005, 05:19 PM
|
#10
|
|
Member
Registered: Jan 2004
Location: Atlanta
Distribution: FreeBSD, Ubuntu, OSX, Fedora
Posts: 669
Rep:
|
Quote:
Originally posted by gd2shoe
I will not help you with your present dilemma, though.
|
That's a typo, I believe. "I" should be "It", or? One typo changed the entire meaning... *cries* gd2shoe doesn''t like helping people *runs away*
|
|
|
|
01-21-2005, 10:03 PM
|
#11
|
|
Member
Registered: Aug 2004
Location: /dev/null
Distribution: Slack 10, Debian
Posts: 99
Rep:
|
If you use ext3 you can mount it as ext2 and lose the journaling abilities, then you may be able to use that tool.
|
|
|
|
01-22-2005, 03:53 AM
|
#12
|
|
Member
Registered: Jul 2004
Distribution: LFS 5.1
Posts: 161
Rep:
|
Quote:
Originally posted by realjustin
If you use ext3 you can mount it as ext2 and lose the journaling abilities, then you may be able to use that tool.
|
No, it won't work. I tried that.
|
|
|
|
01-22-2005, 04:06 AM
|
#13
|
|
Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611
Rep:
|
What happens at that point? Is there an error?
Can you post the message?
Cool
|
|
|
|
01-22-2005, 08:09 PM
|
#14
|
|
Member
Registered: Jun 2004
Location: Northern CA
Distribution: Debian
Posts: 835
Rep:
|
Quote:
Originally posted by student04
That's a typo, I believe. "I" should be "It", or? One typo changed the entire meaning... *cries* gd2shoe doesn''t like helping people *runs away*
|
Yeah, you'd better run!
<sigh>
I almost always spell check my posts. The checker kinda misses that one though. You can feel free to have some lighthearted humor at my expense, just be aware that some others (even here at lq) are easier to offend.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:02 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|