i92guboj |
01-12-2009 01:12 PM |
Quote:
Originally Posted by CrownAmbassador
(Post 2426936)
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.
|