Mount is denied because the NTFS volume is already exclusively opened.The volume may be already ...

今天在操作移动硬盘挂载服务器时,执行完mount指令,直接报错“Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command
.”

root@dell-PowerEdge-T430:/home# mount -t ntfs-3g /dev/sdc1 /home/upan
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.

翻译下:“拒绝挂载,因为NTFS卷已经独占地打开了。卷可能已经挂载,或其他软件可能使用它

可以通过'fuser'命令的帮助来识别。”

原因:回想了下,应该是非正常umount操作,可能是直接拔出USB,或者服务器重启造成的。

根据报错提示,我们可以通过fuser指令,来查看打开文件的信息。那就查下fuser的如何使用,执行

fuser --hlep

root@dell-PowerEdge-T430:/home# fuser --help
fuser: Invalid option --help
Usage: fuser [-fMuvw] [-a|-s] [-4|-6] [-c|-m|-n SPACE] [-k [-i] [-SIGNAL]] NAME...
       fuser -l
       fuser -V
Show which processes use the named files, sockets, or filesystems.

  -a,--all              display unused files too
  -i,--interactive      ask before killing (ignored without -k)
  -k,--kill             kill processes accessing the named file
  -l,--list-signals     list available signal names
  -m,--mount            show all processes using the named filesystems or block device
  -M,--ismountpoint     fulfill request only if NAME is a mount point
  -n,--namespace SPACE  search in this name space (file, udp, or tcp)
  -s,--silent           silent operation
  -SIGNAL               send this signal instead of SIGKILL
  -u,--user             display user IDs
  -v,--verbose          verbose output
  -w,--writeonly        kill only processes with write access
  -V,--version          display version information
  -4,--ipv4             search IPv4 sockets only
  -6,--ipv6             search IPv6 sockets only
  -                     reset options

  udp/tcp names: [local_port][,[rmt_host][,[rmt_port]]]

查询全部信息

root@dell-PowerEdge-T430:/home# fuser -a /dev/sdc1
/dev/sdc1:            3774

有点少啊,就一个文件路径和进程号,直接执行kill,关闭当前打开的进程。

root@dell-PowerEdge-T430:/home# fuser -k /dev/sdc1
/dev/sdc1:            3774

再次查询

root@dell-PowerEdge-T430:/home# fuser -a /dev/sdc1
/dev/sdc1:

进程已经关闭了。

重新执行mount挂载指令即可。

  • 5
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

终码一生

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值