赞
踩
当mount挂载了文件系统之后,卸载的时候
umount遇到 device is busy
[root@linusfay ~]# umount /mnt/share
umount: /mnt/share: device is busy
umount: /mnt/share: device is busy
原因:当任何目录有 mount, 然后有程序使用/挂在那个目录上的话, 就没有办法 umount 掉, 於 umount 时会出现 Device is busy 的错误。
类似的解决办法:
1、找哪个进程在使用该挂载目录,然后杀掉该进程,卸载目录。
[root@linusfay share]# fuser -m /mnt/share
/mnt/share: 5161c
[root@linusfay share]# ps aux |grep 5161 |grep -v grep
root 5161 0.0 0.0 66076 1520 pts/3 Ss 04:53 0:00 bash
[root@linusfay share]#kill -9 5161
[root@linusfay ~]# umount share1
2、mount -l /mnt/share 当需卸载文件系统的引用不繁忙时直接卸载。
[root@linusfay share]# umount share1[root@linusfay share]# umount -l share1
查看是否完成卸载:
--没有看到 share1目录,umount -l share1已经完成卸载
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。