umountall状态为busy的系统:
以下四种情况,文件系统都会显示:umount: file_system_name busy
1 A program is accessing a file or directory in the file system
2 A user is accessing a directory or file in the file system
3 A program has a file open in that file system
4 The file is being shared
有两种方法解决:
(1) 使用fuser命令来确认挂接点有那些进程在访问,然后杀掉
(2) 用umount -f 强制umount;
用fuser命令的四步:
1.确认挂接点有那些进程需要杀掉
#fuser -cu /mount_point
2.向进程发出SIGKILL信号:
#fuser -ck /mount_point
3.确认看是否还有进程在访问挂接点
#fuser -c /mount_point
4.umount挂接点
#umount /mount_point
umount -f 丢失数据,僵死进程,但比较适合远程共享时,远程没有响应.
在启动失败时,修复重要文件:
1.插入solaris 9 1 of 2 cd-rom
2.OBP下运行:
oK>boot cdrom -s
3.用fsck来检测修复/ 根目录:
# fsck /dev/rdsk/c0t0d0s0
4.如果检测成功,把根目录的挂接点挂到一个新建的目录上:
# mount /dev/dsk/c0t0d0s0 /a
5.设置TERM参数,使vi能正常工作:
# TERM=sun
# export TERM
6.编辑/a/etc/vfstab,
7.umount文件系统:
# cd /
# umount /a
8.重启系统init 6