LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-17-2006, 06:11 PM   #1
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Rep: Reputation: 30
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?
 
Old 09-17-2006, 06:34 PM   #2
Brian1
LQ 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,700

Rep: Reputation: 65
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
 
Old 09-17-2006, 07:50 PM   #3
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
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?
 
Old 09-18-2006, 04:17 PM   #4
Brian1
LQ 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,700

Rep: Reputation: 65
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
 
Old 09-18-2006, 06:19 PM   #5
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
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.
 
Old 09-18-2006, 07:02 PM   #6
CrownAmbassador
Member
 
Registered: Mar 2005
Location: Cape Town, South Africa
Distribution: Ubuntu 8.10
Posts: 374

Original Poster
Rep: Reputation: 30
It's ok. I figured it out. Thanks for the help. It is working.
 
Old 01-11-2009, 08:13 PM   #7
1fastbullet
LQ Newbie
 
Registered: May 2007
Posts: 3

Rep: Reputation: 0
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.
 
Old 01-11-2009, 09:14 PM   #8
jiobo
Member
 
Registered: Nov 2008
Posts: 180

Rep: Reputation: 36
Quote:
Originally Posted by 1fastbullet View Post
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.
 
Old 01-11-2009, 10:25 PM   #9
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,333

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
Quote:
Originally Posted by CrownAmbassador View Post
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
 
Old 01-12-2009, 12:05 PM   #10
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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..
 
Old 01-12-2009, 01:12 PM   #11
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by CrownAmbassador View Post
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.
 
Old 01-12-2009, 04:05 PM   #12
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 75
Quote:
Originally Posted by farslayer View Post
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.
 
Old 02-16-2009, 01:04 AM   #13
iijt
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
where is ansers of question
 
Old 02-16-2009, 03:54 AM   #14
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by iijt View Post
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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
I have deleted a file thru rm can i recover it ricka343 Linux - General 2 06-27-2006 03:28 AM
how to recover deleted file & folder in linux(i m in huge trouble) mickyman Linux - General 1 04-17-2006 01:30 AM
how to recover deleted files sibtay Linux - Software 13 01-22-2005 08:09 PM
Recover My Deleted File & Folder rajaniyer123 Linux - General 0 03-12-2004 12:51 AM
Deleted Directory, how to Recover ?? GT I.N.C Linux - General 5 11-19-2002 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:34 PM.

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