1753774 Members
7141 Online
108799 Solutions
New Discussion юеВ

/usr/lib problem

 
SOLVED
Go to solution
Scott D. Allen
Regular Advisor

/usr/lib problem

I inadvertently (oops) moved /usr/lib to /usr/oldlib. Now my box is hosed. I can boot to S but I can't mv /usr/oldlib /usr/lib or anything. Suggestions?

--Scott
"Sometimes the devil you know is better than the devil you don't know."
8 REPLIES 8
Kofi ARTHIABAH
Honored Contributor

Re: /usr/lib problem

Are you able to mount /usr ? - you would have to mount /usr before you can move /usr/oldlib to /usr/oldlib

PS. I take it you do not have an Ignite boot image for the box eh?
nothing wrong with me that a few lines of code cannot fix!
Rick Garland
Honored Contributor

Re: /usr/lib problem

If you can boot to S, mount available filesystems.
This should make the commands available so you can copy or move back to /usr/lib
Scott D. Allen
Regular Advisor

Re: /usr/lib problem

I tried booting into Single user mode and mounted /usr manually. However, every command I tried issued an error about not being able to access /usr/lib/dld.so or something. So, I couldn't move oldlib to lib.

I don't have any Ignite or bootable media. I'm open to suggestions at this point.

--Scott
"Sometimes the devil you know is better than the devil you don't know."
Alan Riggs
Honored Contributor

Re: /usr/lib problem

Try going to lvm maintenance mode. Mount the lvol for /usr on a different mountpoint (/dir for instance). Then mv /dir/oldlib /dir/lib.
Alan Riggs
Honored Contributor

Re: /usr/lib problem

Gorgot to specify -- always reboot out of lvm maintenance mode. Do not use init to climb run levels.
Patrick Wessel
Honored Contributor
Solution

Re: /usr/lib problem

Have you tried to use the commands under /sbin instead of /usr/bin? (use absolute path names) They don't need the dld.sl
Or try to boot the support CD and mount your original file system. At this point you can work with commands loaded into main memory and you don't need the libs on the disk
There is no good troubleshooting with bad data
Scott D. Allen
Regular Advisor

Re: /usr/lib problem

Sounds good. How do I get into LVM maintenance mode?

--Scott
"Sometimes the devil you know is better than the devil you don't know."
Scott D. Allen
Regular Advisor

Re: /usr/lib problem

Thanks! /sbin/mv oldlib lib worked!

--Scott
"Sometimes the devil you know is better than the devil you don't know."