硬件sunv890, os solaris10
root@dxsun890 # df -k
Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d1 40348050 5432873 34511697 14% /
通過試驗mount /dev/md/dsk/d1 /mnt行不通
另外想辦法
root@dxsun890 # format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e012a27e41,0
1. c1t1d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e01298b801,0
2. c1t2d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e012a28151,0
3. c1t3d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e012991221,0
4. c1t4d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000014c317ac58,0
5. c1t5d0
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w21000014c317a0f5,0
6. c2t40d0
/pci@9,600000/SUNW,qlc@1/fp@0,0/ssd@w216000c0ff89c943,0
7. c2t40d1
/pci@9,600000/SUNW,qlc@1/fp@0,0/ssd@w216000c0ff89c943,1
Specify disk (enter its number):
確定c1t0d0s0和c1t1d0s0為/目錄,且為鏡像磁盤
Stop+a後進入ok狀態
Boot cdrom –s
進入單用戶模式
Cd /
Mount /dev/dsk/ c1t0d0s0 /mnt
Cd /mnt/etc
Cp shadow shadow1115
Vi shadow
去除掉root行的加密密碼
Umount /dev/dsk/ c1t0d0s0
Df –k
Mount /dev/dsk/ c1t1d0s0 /mnt
Cd /mnt/etc
Cp shadow shadow1115
Vi shadow
去除掉root行的加密密碼
Reboot 不用root密碼即可進入