当前位置:   article > 正文

卸载分区时提示umount: /mnt: target is busy_umount: /mnt: target is busy.

umount: /mnt: target is busy.

问题描述: 

umount -v /dev/vdb1 卸载分区时提示umount: /mnt: target is busy

问题原因

该报错通常是由于待卸载磁盘正在使用,导致无法直接卸载。需要将当前使用数据盘的进程杀掉,才能卸载。

解决办法

通过lsof命令处理

yum install lsof

[root@s ~]# lsof /mnt/
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF     NODE NAME
bash    15415 root  cwd    DIR 253,17     4096 29999107 /mnt/

[root@s ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs           3.9G     0  3.9G   0% /dev/shm
tmpfs           3.9G  516K  3.9G   1% /run
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/vda1        40G  5.8G   32G  16% /
/dev/vdb1       493G  208M  467G   1% /mnt
tmpfs           783M     0  783M   0% /run/

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/459259
推荐阅读
相关标签
  

闽ICP备14008679号