- 論壇徽章:
- 0
|
外掛光驅(qū),插入Solaris安裝光盤(pán),利用CDROM引導(dǎo)系統(tǒng)進(jìn)入單用戶(hù)狀態(tài)。
1. 按STOP-A,出現(xiàn)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
掛接適當(dāng)?shù)奈募到y(tǒng)和整理配置文件。
3. 如系統(tǒng)為SPARC
# mount /dev/dsk/c0t3d0s0 /mnt
如為ULTRA
# mount /dev/dsk/c0t0d0s0 /mnt
注:假如屏幕出現(xiàn)以下提示,請(qǐng)繼續(xù)執(zhí)行第4步。若無(wú),說(shuō)明根區(qū)已經(jīng)掛接到/mnt下,請(qǐng)?zhí)降?步進(jìn)行。
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. # 重復(fù)第三步
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行中第以‘:’分隔的第二個(gè)域內(nèi)容刪除(保留‘:’)
重新引導(dǎo)系統(tǒng)。
12. # reboot |
|