1832754 Members
3857 Online
110045 Solutions
New Discussion

libc.1 & reboot

 
SOLVED
Go to solution
wilson zhao
Occasional Contributor

libc.1 & reboot

hi,

I accidentally renamed /usr/lib/libc.1, and then can't su, can't even reboot the machine.
anyone knows how to recover from a case like
this? it is a D230, 10.20 Box.

thanks
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: libc.1 & reboot

You should be able to boot to single user by interrupting the boot process.

BOOT PRI
Interact with ISL? Y

At the ISL> prompt, enter hpux -is /stand/vmunix

You will then be root user using a statically linked shell. All the utilities you use MUST be statically linked so that you are only allowed to use those in /sbin.

You can use /sbin/mv to rename the file but you must first mount /usr using /sbin/mount.

If it ain't broke, I can fix that.
Srinivas_14
Occasional Contributor

Re: libc.1 & reboot

Hi,

You can also try to add the renamed file in the path and then do a cp libc.1.newname to libc.1.oldname. I was able to do it.
The steps are as follows:

export LIBPATH=$LIBPATH:/usr/lib/livc.1.newname
now you should be able to execute the commands and do a copy. Hope this will work.It did work for me.

Thanks