umount卸载

Posted Novicelong

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了umount卸载相关的知识,希望对你有一定的参考价值。

[[email protected] /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 50G 2.2G 45G 5% /
/dev/vdb1 95G 3.9G 87G 5% /data
/dev/vdb3 796G 17G 739G 3% /opt

正常卸载:

  umount /opt

报错:

[[email protected] sftp]# umount /opt/
umount: /opt: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))

强制卸载

[[email protected] ~]# fuser -cu /opt
/opt: 12954cm(root)

[[email protected] ~]# fuser -ck /opt
/opt: 12954cm
[[email protected] ~]# fuser -c /opt
[[email protected] ~]# umount /opt/
[[email protected] ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 50G 2.2G 45G 5% /
/dev/vdb1 95G 3.8G 87G 5% /data

 

以上是关于umount卸载的主要内容,如果未能解决你的问题,请参考以下文章

umount 卸载

umount卸载

umount 卸载失败

umount 强制卸载

umount强制卸载不起作用,卸载光驱终极办法---fuser

怎样强制卸载一个磁盘卷