I deleted / HELP!!!!
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??
Thx |
The FC5 recovery disk might work. Alternatively, you may just want to reinstall depending on how much you blew away.
Be careful as root. :) |
Quote:
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?
Thx |
Too bad you weren't using Solaris, which prevents such a mistake:
http://blogs.sun.com/roller/page/jbeck/20041001 As POSIX agreed on the feature, let's hope Gnu rm will follow one day. |
Quote:
http://dban.sourceforge.net/ |
Quote:
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. |
Quote:
If you want a safe rm for you or your users, then create a new command/function/alias, say "rmi" or something like that, and stick to it. Changing the rm semantics will just make you used to the interactive prompt, and feeling rm default behaviour is to prompt you. After a while you'll do "rm *" to clean some files on a directory, and interactively select the one you want. One day, you'll run that "rm *" command on a regular Unix system, and bingo ! If you want a metaphor, it's just like having fun playing russian roulette with unloaded guns, one day or another, you'll use someone else's gun ... |
Quote:
I'm getting lazy in my old age, and i use exactly the same .bash* files, but one day i might not.. :S |
Quote:
22 years ago, I was writing my first helloworld C program on a Unix version 7 machine ... |
Quote:
So there!!! |
All times are GMT -5. The time now is 01:09 AM. |