LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-19-2003, 07:26 PM   #1
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Lost /usr/lib


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.

Any help would be welcome!
 
Old 02-17-2004, 07:02 PM   #2
ArmedGeek
Member
 
Registered: Jul 2003
Location: Houston Texas
Distribution: Mandrake
Posts: 38

Rep: Reputation: 15
That IS a real problem.

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.

--ArmedGeek
 
Old 02-17-2004, 11:47 PM   #3
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Original Poster
Rep: Reputation: 48
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Relocat /usr/lib and /usr/lib64 to a different path schokshi Fedora 3 08-30-2005 09:14 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM
Installing software, /usr/lib directory and /usr/local millertime Linux - Software 2 07-10-2004 09:21 AM
/usr/lib and /usr/local/lib doxxan Slackware 5 06-15-2004 12:58 AM
Relationship between /usr/bin and /usr/lib glume Linux - Newbie 4 04-16-2004 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration