【问题标题】:How to umount a busy windows file using Ubuntu in WSL?如何在 WSL 中使用 Ubuntu 卸载繁忙的 Windows 文件?
【发布时间】:2020-04-21 07:33:26
【问题描述】:

我必须卸载 drvfs 并使用“元数据”标志重新安装它,以使用 WSL 的新文件系统功能,允许在 WSL 中更改权限。 但是当我这样做时:

sudo umount /mnt/c

返回

umount: /mnt/c: target is busy

如何强制停止进程而不丢失数据? 哪个进程不应该运行?

【问题讨论】:

  • 如何在不执行卸载/装载周期的情况下自动装载带有元数据的驱动器?请参阅此blog post。挂载选项可以添加到/etc/wsl.conf文件中。

标签: linux windows-subsystem-for-linux umount


【解决方案1】:

试试umount -l /mnt/c。 根据手册页,它执行以下操作

   -l, --lazy
          Lazy unmount.  Detach the filesystem from the file hierarchy now, and clean up all references to this filesystem as soon as it is not busy anymore.

【讨论】:

    猜你喜欢
    • 2021-07-12
    • 2023-03-24
    • 1970-01-01
    • 2023-01-13
    • 1970-01-01
    • 1970-01-01
    • 2021-03-24
    • 1970-01-01
    • 2016-12-19
    相关资源
    最近更新 更多