分类:
2007-12-28 16:26:28
Solaris 9 recover
from /usr/lib/ld.so.1 missing or damaged
Regarding the function
of lib file ld.so.1, please refer to
This article
focuses on how to recover /usr/lib/ld.so.1 missing system which basis on
software raid 1 setting.
Once ld.so.1
missed or damaged, all command is unavailable system can’t login display error
code.
If you have
logined terminal try below command to restore it
#/usr/sbin/static/cp /etc/lib/ld.so.1 /usr/lib/
Else you should
boot CDROM to recover it from /etc/lib/ld.so.1 or backup.
Below is an
example shows how to recover the system miss ld.so.1 but have its backup in
/usr/lib/ld.so.1.old. The system have software raid 1 confiugred.
1.
insert
the installation CD to CDROM;
2.
press
stop+A, it appears OK> prompt;
3.
type
"boot cdrom -s", and boot to CDROM then drop you a shell;
4.
use “format”
command to see which device /usr mounting to (assume it is c1t0d0s3), then “#mount
/dev/disk/c1t0d0s3 /mnt”;
5.
use
command “#cp /mnt/lib/ld.so.1.old /mnt/lib/ld.so
6.
remove
all lines related with mirror in /etc/system;
7.
change
all partitions of /etc/vfstab using single slice disk rather than md raid;
8.
use “sync,
reboot” to restart server;
9.
wait
system boot up.
10. re-mirror the system disk