纠结的umount


今天在维护一台linux过程中,发现一个mount point不好用。原因是mount的USB-HDD被人拔掉,然后插到了其他USB接口。

这时,我想umount它,然后再mount回来。却遇到了错误。

[root@e /]# umount /mnt

umount: /mnt: device is busy
umount: /mnt: device is busy
于是想到使用fuser查看是哪个进程占用了/mnt

[root@e /]# fuser /mnt
Cannot stat /mnt: Transport endpoint is not connected
Cannot stat /mnt: Transport endpoint is not connected
没招了。。。无语中。。。GOOGLE中。。。

一神贴中提及lsof,抱着试试看的态度来了一下。呀,还真灵。

[root@e /]# lsof |grep /mnt
lsof: WARNING: can't stat() fuseblk file system /mnt
Output information may be incomplete.
su 25762 root cwd unknown /mnt//full_20101115/db/datafile (stat: Transport endpoint is not connected)
bash 25763 root cwd DIR 8,33 4096 5 /mnt2
bash 29572 oraadm cwd unknown /mnt//full_20101115/db/datafile (stat: Transport endpoint is not connected)
果断kill。remount成功。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值