- 论坛徽章:
- 0
|
外挂光驱,插入Solaris安装光盘,利用CDROM引导系统进入单用户状态。
1. 按STOP-A,出现ok提示符
2. ok boot cdrom -rs
Rebooting with command: cdrom -s
Boot device: /iommu/sbus/espdma@4, 8400000/esp@4, 8800000/sd@6, 0:d File and args:
-s
SunOS Release 5.5 Version Generic[UNIX ( R ) System V Release 4.0]
Copyright ( c ) 1983-1996, Sun Micrcsystems, Inc.
Configuring the /devices directory
Configuring the /dev directory
|
INIT: SINGLE USER MODE
挂接适当的文件系统和整理配置文件。
3. 如系统为SPARC
# mount /dev/dsk/c0t3d0s0 /mnt
如为ULTRA
# mount /dev/dsk/c0t0d0s0 /mnt
注:假如屏幕出现以下提示,请继续执行第4步。若无,说明根区已经挂接到/mnt下,请跳到第6步进行。
mount: the state of /dev/dsk/c0t3d0s0 is not okay
and it was attempted to be mounted read/write
mount: Please run fsck and try again
4. # fsck -y /dev/dsk/c0t3d0s0
** /dev/dsk/c0t3d0s0
** Last Mounted on /
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FILE SYSTEM STATE IN SUPERBLOCK IS WRONG; FIX? Yes
files, 12409 used, 83622 free (110 frags, 10439 blocks,0.1% fragmentation)
5. # 重复第三步
6. # TERM=sun-cmd
7. # export TERM
8. # cd /mnt/etc
9. # cp shadow shadow.sav
10. # chmod 100 shadow.sav
11. # vi shadow
将root行中第以‘:’分隔的第二个域内容删除(保留‘:’)
重新引导系统。
12. # reboot |
|