Linux - GeneralThis 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
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
OMG i feel like an idiot, I ran rm / when was trying to delete content from another directory. I noticed what i was doing and Ctrl-C after a few secs. This is on FC5, will the recovery disk fix my problem. So far, all i notice gone is the /bin/ directory. Are there logs for files and directories deleted?? any ideas??
I ran rm / when was trying to delete content from another directory. I noticed what i was doing and Ctrl-C after a few secs. This is on FC5, will the recovery disk fix my problem. So far, all i notice gone is the /bin/ directory.
Is your rm aliased to rm -rf ?
Otherwise you shouldn't have deleted any of the directories
under root, you should just have gotten errors telling you that
those are directories.
no, i actually did a sudo rm -rf / . The file system is ext3 so i dont think there is anyway to recover it. Is there a log that tells what has been deleted?? And if i do reinstall, how do i make sure it overwrites the current copy?
no, i actually did a sudo rm -rf / . The file system is ext3 so i dont think there is anyway to recover it. Is there a log that tells what has been deleted?? And if i do reinstall, how do i make sure it overwrites the current copy?
Thx
When you re-install, just delete the partition and make a new one. If you want to be sure all the old is gone, then you can "wipe" the disk with something like DBAN http://dban.sourceforge.net/
Probably not what you want to hear, but this is the sort of thing that root and sudo safeguards are there to prevent.
As mentioned above aliasing rm is a great way. I alias all my cp/mv/rm commands to give verbose interactive output (i'm a bit of a cluts ).
i would personally just reinstall if the whole bin directory is gone, and you may find out a bit later on something else was hosed, may as well do it now and get it over with.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.