对vfstab 文件修改错误后怎么样修改
/etc/vfstab原先bash-3.00# vi /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /usr ufs 1 no
-
/dev/dsk/c0t0d0s4 /dev/rdsk/c0t0d0s4 /var ufs 1 no
-
/dev/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /data ufs 2 yes
-
/dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3 /opt ufs 2 yes
-
/devices - /devices devfs - no -
sharefs - /etc/dfs/sharetab sharefs - no -
ctfs - /system/contract ctfs - no -
objfs - /system/object objfs - no -
swap - /tmp tmpfs - yes -
~
然后做了镜像修改了/etc/vfstab
/dev/md/dsk/c0t0d0s1 - - swap - no -
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/md/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /usr ufs 1 no
-
/dev/md/dsk/c0t0d0s4 /dev/rdsk/c0t0d0s4 /var ufs 1 no
-
/dev/md/dsk/c0t0d0s6 /dev/rdsk/c0t0d0s6 /data ufs 2 yes
-
/dev/md/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /usr ufs 1 no
-
重启后出现了如下的提示
Rebooting with command: boot
Boot device: /pci@0,600000/pci@0/pci@8/pci@0/scsi@1/disk@0,0:a File and args:
sorry, variable 'pcie_expected_ce_mask' is not defined in the 'kernel'
SunOS Release 5.10 Version Generic_137137-09 64-bit
Copyright 1983-2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Hostname: dsmdb2
ERROR: svc:/system/filesystem/root:default failed to mount /usr (see 'svcs -x' for details)
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run
Root password for system maintenance (control-d to bypass): root
Login incorrect
Root password for system maintenance (control-d to bypass): Login incorrect
Root password for system maintenance (control-d to bypass):
single-user privilege assigned to /dev/console.
Entering System Maintenance Mode
Jan 27 10:22:09 su: 'su root' succeeded for root on /dev/console
-sh: /bin/i386: not found
-sh: /usr/sbin/quota: not found
-sh: /bin/cat: not found
-sh: /bin/mail: not found
# bash
bash: not found
# bash
bash: not found
现在是目录也找不到 也挂不上去
不想做操作系统
各位能不能帮出个主意???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
光盘引导进到单用户
先光盘进入,会挂载在/a下面,修改正确后就能正常启动了,以后要注意一下,修改任何文件之前,一定要先备份,呵呵,这也是一位老鸟教我的,你的问题,我前不久就碰到过!
用光盘引导到单用户模式下修改好了
Boot from CDROM, or from Jumpstart....
对,是这样的,但是目前,/opt /var /等目录都挂不上,命令也用不了,我修改之前把/etc/vfstab这个文件备份,怎么样给他恢复呢?
/dev/md/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /usr ufs 1 no
-
要改成:
/dev/md/dsk/d5 /dev/md/rdsk/d5 /usr ufs 1 no
-
这个样子