• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

/usr/lib/ erased - how to recover?

Being the naturally intelligent guy I am, I erased the contents of /usr/lib in a fit of command line passion. I had just finished adding the finishing touches to my RH8 upgrade and suddenly nothing worked.

Before I resign myself to re-installing the entire OS, setting up 50 odd users, DNS, Mail servers... what words of wisdom could help me out? Basically, I've gotten everything back in working order. All but the Apache server. I cannot get it to compile OR start from an RPM install.

Help please?

Cheers,
Anthony Homer
anthonydhomer@yahoo.com
0
anthonyhomer
Asked:
anthonyhomer
2 Solutions
 
mbarbosCommented:
rpm verify maybe ? It should complain about the missing files and then you can reinstall those packages. But since rpm probably doesn't work, You should boot from the CD in rescue mode and reinstall rpm (and maybe a few others) with --root=<the directory where you mounted your nice /usr/libless system> :)
0
 
naccadCommented:
and of course no backup :)

the best solution is to get a small harddisk, install rh8
on it and then copy the contents of /usr/lib to the original
disk.

or if u have a running rh8 somewhere else, boot the dead
system with something like tomsrtbt (http://www.toms.net)
and ftp all the stuff from the live rh8 system.

good luck
-nick

p.s. have u ever tried userdel -r root? works even better
than deleting /usr/lib.

KIDS DONT TRY THIS AT HOME
0
 
samriCommented:
how about a reinstall/upgrade.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
CleanupPingCommented:
anthonyhomer:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
samriCommented:
I would still belive it would be "less" painful to go for a reinstallation as it will most likely will preserve.

nice trick.

>> have u ever tried userdel -r root? works even better

:)
0
 
paullamhkgCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: mbarbos {http:#8082920} & naccad {http:#8084098}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

paullamhkg
EE Cleanup Volunteer
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now