- 论坛徽章:
- 0
|
急救,在线等待高手指点
下面的*需要替换为你系统中实际的目录名(系统版本不同,名字也不同)
Boot the machine from a set of boot/root floppies.
Bring the system into System Maintenance mode.
Once at a shell prompt, mount the hard disk root filesystem:
/etc/mount /dev/hd0root /mnt
Examine the following items:
(1. Check that the following files exist; if one or both do not, proceed to step 2.
/mnt/usr/lib/libc.so.1
/mnt/etc/init
(2. Check that both of the following files exist:
/mnt/opt/K/SCO/Unix/*/usr/lib/libc.so.1
/mnt/opt/K/SCO/Unix/*/etc/init
If so, create the following symbolic links:
ln -s /opt/K/SCO/Unix/*/usr/lib/libc.so.1
/mnt/usr/lib/libc.so.1
ln -s /opt/K/SCO/Unix/*/etc/init /mnt/etc/init
(3. If one or both of the files listed in 2. above do not exist,
copy the file(s) from the root diskette and create the symbolic link(s) as above;
cd /mnt/opt/K/SCO/Unix/*/usr/lib
cp /usr/lib/libc.so.1 .
ln -s /opt/K/SCO/Unix/*/usr/lib/libc.so.1 /mnt/usr/lib/libc.so.1
cd /mnt/opt/K/SCO/Unix/*/etc
cp /etc/init .
ln -s /opt/K/SCO/Unix/*/etc/init /mnt/etc/init
(4. Check that the hard link of the files /mnt/usr/lib/libc.so.1 and
/mnt/usr/lib/ld.so.1 exists; if not, create the link:
cd /mnt/usr/lib
ln libc.so.1 ld.so.1
(5. Check that both /mnt/usr/lib/libc.so.1 and /mnt/etc/init are executable and
owned by bin; if not, make the necessary changes:
cd /mnt/usr/lib
chmod 555 libc.so.1
chown 2:2 libc.so.1
cd /mnt/etc
chmod 100 init
chown 2:2 init
(6. Unmount the hard disk and reboot.
If this does not resolve the issue, some other unforeseen corruption might be the cause,
and it is possible that running fsck(ADM) on the root filesystem will resolve the problem.
After rebooting into single user mode, run the fsck utility as follows:
fsck -ofull /dev/root
Reboot the system again to find out if the issue is finally resolved |
|