简体   繁体   中英

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

I must unmount drvfs and remount it with the 'metadata' flag to use a new file system features to WSL that allows making changes in permissions in WSL. But when I do this:

sudo umount /mnt/c

It returns

umount: /mnt/c: target is busy

How can I force the process to stop without lose data? Which process could be running that should not?

Try umount -l /mnt/c . According to the man page it does the following

 -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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM