MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
I have experienced a rather catastrophic problem. In the midst of solving a problem related to my CD-RW drive, I've been encountering lock-ups that require rebooting. I haven't yet nailed down the problem, because after about a dozen such hard reboots, I somehow have lost the contents of my entire /usr/lib directory. Needless to say, many important libraries resided in there; I am barely able to boot to a console. ls shows this:
p--------T 90 257 root 70656 Sep 19 15:47 lib|
and my shell highlights the name 'lib' in brown. I don't know what the p or T flags mean, or what the pipe after lib is; at any rate, I can't cd to the directory; I get "lib: Not a directory".
I have e2fscked the drive, so there are no apparent errors. What can I do to get my /usr/lib stuff back, aside from a complete reinstall? Is there an outside chance that I could just toy with chmod and stuff to make it recognize lib as a directory? I've tried the "upgrade" option from my installation discs, but it just fixes a couple packages and does not fix /usr/lib.
Can you try booting from a 'LiveCD' and mounting your /usr/lib into that tree, at least then you should be able to see an 'uncorrupted' view of the contents.
Thanks for the reply, but as you can see it was long time ago that this happened I don't even remember how I fixed it... I remember trying several things, one of which eventually recovered most of /usr/lib, but a lot of things were still broken, and I might have just reinstalled. I've since switched distros (to Gentoo) and no problems since then!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.