RE: i just did a rm -rf /*r as root!!!
From: bruce (bedouglas_at_earthlink.net)
Date: 04/22/05
- Previous message: Brian Whitehead: "RE: i just did a rm -rf /*r as root!!!"
- In reply to: Brian Whitehead: "RE: i just did a rm -rf /*r as root!!!"
- Next in thread: Brian Whitehead: "RE: i just did a rm -rf /*r as root!!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "'Brian Whitehead'" <Brian.Whitehead@LABONE.com>, "'General Red Hat Linux discussion list'" <redhat-list@redhat.com>, "'General Red Hat Linux discussion list'" <redhat-list@redhat.com> Date: Thu, 21 Apr 2005 17:58:07 -0700
brian...
the only thing that appears to be missing is the '/usr/bin' dir... i still
have the rest of the '/usr' dirs.. i also still have the '/var' dir...
-----Original Message-----
From: Brian Whitehead [mailto:Brian.Whitehead@LABONE.com]
Sent: Thursday, April 21, 2005 5:44 PM
To: bedouglas@earthlink.net; General Red Hat Linux discussion list; General
Red Hat Linux discussion list
Subject: RE: i just did a rm -rf /*r as root!!!
Well, there are a couple of things that you could do. As far as getting
back any files that are not part of the OS installation you're probably out
of luck unless you have a tape backup.
First, boot from your redhat disk 1 in rescue mode.
Second, mount your hard drive partitions to another directory like
/mnt/root, /mnt/var, etc or something.
Unfortunately /var and /usr are probably gone, so you might be able to use
rpm to reinstall the rpm by redirecting to install with the '--relocate'
switch. if you can get rpm working again you should be able to chroot to
your mounted partitions and run 'rpm --rebuilddb' and get the rpm database
back. Once rpm is working you can run 'rpm -Va' to see what files are
missing. With this list of files you can force reinstallation of the
packages that have missing files.
This can be messy and if you're not that experienced, it may be difficult.
In this case you may be better of rebuilding.
-- Brian _____ From: redhat-list-bounces@redhat.com on behalf of bruce Sent: Thu 4/21/2005 6:14 PM To: 'General Red Hat Linux discussion list' Subject: i just did a rm -rf /*r as root!!! hi... i stupidly just did a 'rm -rf /*r' and i understand that there's no way to redo/undo this command.. it seems to have blown away my /usr/bin dir.. although, for all i know, i may have screwed up a lot more... my question, is there someway that i can reinstall the '/usr/bin' dir.. or am i pretty much f*ed up. i have fedora core 2. (i've asked th question on the FC2 list, and they leep telling me that i need to do a complete reinstall) i thought there was a way to more or less recreate the indoe, or that there was some way that you can recover if you haven't done anything with the drive since the 'rm -rf'... i've seen some postings/information on google that kind of discuss this. but i need more understanding... this is a critical system that i was putting alot of things on.. i haven't done anything else to the box after my mistake.. -bruce bedouglas@earthlink.net -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe <mailto:redhat-list-request@redhat.com?subject=unsubscribe> https://www.redhat.com/mailman/listinfo/redhat-list <https://www.redhat.com/mailman/listinfo/redhat-list>
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: Brian Whitehead: "RE: i just did a rm -rf /*r as root!!!"
- In reply to: Brian Whitehead: "RE: i just did a rm -rf /*r as root!!!"
- Next in thread: Brian Whitehead: "RE: i just did a rm -rf /*r as root!!!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|