Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Installation - Getting started with Red Hat Linux
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
i just did a rm -rf /*r as root!!!

i just did a rm -rf /*r as root!!!

2005-04-21       - By Brian Whitehead

 Back
Reply:     <<     11     12     13     14     15     16     17     18     19     20     >>  

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@(protected) 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@(protected)


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@(protected)?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

Earn $52 per hosting referral at Lunarpages.