| Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
| 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. |
|
 |
09-17-2006, 06:11 PM
|
#1
|
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Rep:
|
How do I recover a rm deleted folder?
I accidently deleted my /usr/share/icons folder. As far as I know a rm deleted folder is recoverable. How do I do this?
|
|
|
|
09-17-2006, 06:34 PM
|
#2
|
|
Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Rep:
|
It depends on filesystem that the partition is using. If ext2 then it can be possible. If using ext3 then it becomes worst. The longer the partition is mounted the more likely it becomes unrecoverable. Lots of software here. http://www.surfpack.com/software/lin...itionrecovery/
Brian1
|
|
|
|
09-17-2006, 07:50 PM
|
#3
|
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Original Poster
Rep:
|
Quote:
|
Originally Posted by Brian1
It depends on filesystem that the partition is using. If ext2 then it can be possible. If using ext3 then it becomes worst. The longer the partition is mounted the more likely it becomes unrecoverable. Lots of software here. http://www.surfpack.com/software/lin...itionrecovery/
Brian1
|
Is it possible to just make the folder manually and download icon packages into it?
|
|
|
|
09-18-2006, 04:17 PM
|
#4
|
|
Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697
Rep:
|
Yes that should work fine. Just need to be root to do most of the work so permissions get set that way when coping.
Brian1
|
|
|
|
09-18-2006, 06:19 PM
|
#5
|
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Original Poster
Rep:
|
Ok. How do I copy a file to the folder. I guess it must be a command. I tried cp but it doesn't copy it.
Thanks.
|
|
|
|
09-18-2006, 07:02 PM
|
#6
|
|
Member
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374
Original Poster
Rep:
|
It's ok. I figured it out. Thanks for the help. It is working.
|
|
|
|
01-11-2009, 08:13 PM
|
#7
|
|
LQ Newbie
Registered: May 2007
Posts: 3
Rep:
|
Thanks for sharing
I'm glad you were able to figure it out. By now, mayybe you've succeeded in recovering your deleted files.
Most of all. I wanted to especially thank you for sharing the information so the next poor bastard that has the same problem will have a possible solution. Very considerate, indeed.
|
|
|
|
01-11-2009, 09:14 PM
|
#8
|
|
Member
Registered: Nov 2008
Posts: 180
Rep:
|
Quote:
Originally Posted by 1fastbullet
Most of all. I wanted to especially thank you for sharing the information so the next poor bastard that has the same problem will have a possible solution. Very considerate, indeed.
|
I could be mis-reading the post, but I think that the lost files were not recovered, simply replaced with new files that were downloaded.
|
|
|
|
01-11-2009, 10:25 PM
|
#9
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
Quote:
Originally Posted by CrownAmbassador
I accidently deleted my /usr/share/icons folder. As far as I know a rm deleted folder is recoverable. How do I do this?
|
Restore the files from backup.
--------------------
Steve Stites
|
|
|
|
01-12-2009, 12:05 PM
|
#10
|
|
Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Rep: 
|
2 year old post revived, to say thanks for a solution to an issue, the person thanking the OP for didn't have,.. yikes..
no it doesn't make much sense..
|
|
|
|
01-12-2009, 01:12 PM
|
#11
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,965
|
Quote:
Originally Posted by CrownAmbassador
I accidently deleted my /usr/share/icons folder. As far as I know a rm deleted folder is recoverable. How do I do this?
|
No. By definition, it isn't. When you use rm the files are unlinked from your filesystem, and the blocks are freed. Hence, they become available to any application that needs to use them. On a multitask system like linux where there might 40 daemons running at a given time that means that the contents might be partially overwritten since long ago. Maybe not, but there's no guarantee.
That's why there's a root account. You need to be root to delete system files and you are supposed to double check everything that you do as root before hitting Enter.
In this cases there might be ways to recover some things using specific tools, but the longer the drive remains mounted with write permissions, the less chance you get to recover anything. So, the first thing to do is to umount the involved volume.
However, since these are system files just reinstall the involved packages. That's the easier and less risky thing to do.
|
|
|
|
01-12-2009, 04:05 PM
|
#12
|
|
Registered User
Registered: Dec 2006
Posts: 1,454
Rep:
|
Quote:
Originally Posted by farslayer
2 year old post revived, to say thanks for a solution to an issue, the person thanking the OP for didn't have,.. yikes..
no it doesn't make much sense..
|
LOL
Guess this is one of those "it should have been closed by now" threads...
Cheers
Last edited by DragonSlayer48DX; 01-12-2009 at 04:08 PM.
|
|
|
|
02-16-2009, 01:04 AM
|
#13
|
|
LQ Newbie
Registered: Feb 2009
Posts: 3
Rep:
|
where is ansers of question
|
|
|
|
02-16-2009, 03:54 AM
|
#14
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,965
|
Quote:
Originally Posted by iijt
where is ansers of question
|
I can't be bothered to re-read the whole thread, but at least my post above has the answer. Probably some other posts do also have useful info. So, read yourself.
|
|
|
|
| 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 04:18 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
|
|