- 论坛徽章:
- 7
|
How to rebuild a device tree booted from a Solaris[TM] 8, 9 or 10 Operating Environment cdrom
This article explains how to rebuild a device tree while booted from a Solaris[TM] 8, 9, or 10 Operating Environment cdrom. The following steps demonstrate how to rebuild the device tree if any of the device files have been deleted.
1. Insert a Solaris 8, 9 or 10 cd into the hosts cdrom
2. From the ok prompt, enter boot cdrom -s
ex: ok> boot cdrom -s
3. fsck the boot disk
ex: # fsck -y /dev/rdsk/c0t0d0s0
Note that your boot disk may differ than the above example.
4. Mount the root slice on /a
ex: # mount /dev/dsk/c0t0d0s0 /a
Note that your root slice may differ than the above example.
5. Move path_to_inst
ex: # mv /a/etc/path_to_inst /a/etc/ORIGINAL_PATH_TO_INST
6. Remove all old device links
ex: # rm /a/dev/rdsk/c* ; rm /a/dev/dsk/c* ; rm /a/dev/rmt/* ; rm /a/dev/cfg/c*
7. Rebuild path_to_inst and devices
ex: # devfsadm -r /a -p /a/etc/path_to_inst
8. Unmount the root slice and reboot
ex: # umount /a ; init 6
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/43/showart_96826.html |
|