【问题标题】:Not able to unmount a Nas folder, target busy [closed]无法卸载 Nas 文件夹,目标繁忙 [关闭]
【发布时间】:2021-07-12 03:47:39
【问题描述】:

我有一些问题要卸载我的 Nas 文件夹。当我尝试使用 sudo umount /media/Nas6To 卸载它时,我收到一条消息,告诉我设备正忙,我无法卸载它:

thomas@NZXT:~$ sudo umount /media/Nas6To 
umount: /media/Nas6To: the target is active.

我在不同的帖子中发现使用fuserlsof 来识别保持忙碌的进程。不幸的是,这些命令什么也没返回。

thomas@NZXT:~$ fuser -m /media/Nas6To
thomas@NZXT:~$

thomas@NZXT:~$ lsof | grep Nas6To
thomas@NZXT:~$

我想不明白是什么让它忙碌。我能做的就是用sudo umount /media/Nas6To卸载它

我的配置:

Fstab 配置:

//10.0.0.110/6To     /media/Nas6To cifs username=xxxx,password=xxxx,uid=1000,vers=2.0,iocharset=utf8,file_mode=0775,dir_mode=0770,noauto 0 0

目录权限(挂载时):

thomas@NZXT:~$ ls -la /media
total 28
drwxr-xr-x   8 root    root 4096 feb.  28 14:40 .
drwxr-xr-x  20 root    root 4096 jan.  30 15:25 ..
drwxrwx---   2 thomas  root    0 mars  13 13:59 Nas6To

操作系统(Xubuntu):

thomas@NZXT:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:    20.04
Codename:   focal

【问题讨论】:

    标签: ubuntu samba shared-directory unmount umount


    【解决方案1】:

    您好,一段时间后我使用wireshark找到了解决方法。

    我无法卸载,因为我的计算机正在发送大量与后台垃圾相关的 SMB 数据包。

    注意:以下命令将清空您的垃圾箱。在继续之前,请检查它是否包含您想要保留的任何内容。

    修复它:

    • 使用rm -r /PathToYourNAS/.Trash-1000/ 删除您的 Nas 垃圾箱
    • 使用rm -r ~/.local/share/Trash/* 刷新您的计算机垃圾箱

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-17
      • 2020-06-11
      • 1970-01-01
      • 2023-03-15
      相关资源
      最近更新 更多