linux - 如何在 WSL 中使用 Ubuntu 卸载繁忙的 windows 文件?
问题描述
我必须卸载drvfs并使用“元数据”标志重新安装它,以使用 WSL 的新文件系统功能,允许在 WSL 中更改权限。但是当我这样做时:
sudo umount /mnt/c
它返回
umount: /mnt/c: target is busy
如何在不丢失数据的情况下强制停止进程?哪个进程可以运行而不应该运行?
解决方案
试试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.
推荐阅读
- angular - Angular 中的 e2e 测试:在 Firefox 中使用量角器无法上传和下载文件
- python - python创建的批处理文件没有运行,但记事本可以编辑
- imagemagick - How to use the -flatten and -page in imageMagick to overlap one image on another image with specific offset value
- angular - QueryParams/ParamMap Always Comes Back Empty
- c++ - 无论如何使用包含数组名称的字符串来访问/修改数组?
- swift - 如何快速获取 Firebase 数据作为模型?
- reactjs - Reactjs路由`onEnter`方法没有调用,scrolltoview不起作用
- javascript - 事件委托(检查 e.target 是否存在——为什么?)
- python - Gtk Warning Theme 解析错误,尝试做一些面部识别
- scala - 如何使用 scala slick jdbc 连接到雪花