簡體   English   中英

如何在 WSL 中使用 Ubuntu 卸載繁忙的 windows 文件?

[英]How to umount a busy windows file using Ubuntu in WSL?

我必須卸載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.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM