Chinaunix首页 | 论坛 | 博客
  • 博客访问: 150714
  • 博文数量: 52
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 490
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-05 12:05
文章分类

全部博文(52)

文章存档

2013年(1)

2010年(3)

2009年(6)

2008年(25)

2007年(17)

我的朋友

分类:

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.1” to replace this file there(assume you have a backup of file ld.so.1.old under /usr before system down)

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

阅读(904) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~