-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't mount ext4 partition (error 0x80070020 - the file is being used by another process) #8954
Comments
Is
Emphasis is mine, see: https://learn.microsoft.com/en-us/windows/wsl/wsl2-mount-disk |
Thanks for your quick reply, |
For someone that found this thread through search, I found a possible solution at: https://stackoverflow.com/questions/45244306/mounting-a-windows-share-in-windows-subsystem-for-linux |
I want WSL to mount NTFS format disk directly, or provide an official .exe application to solve the situation of slow IO caused by NTFS, I don't want to have to do everything by myself. |
https://learn.microsoft.com/en-us/windows/wsl/wsl2-mount-disk#limitations
I've opened a new Feature Request - #9283 |
Try to go to the Windows Command Prompt and type:
Then Restart your computer. From #6415 (comment) It works. |
I run in the same issue. I have only one disk and I cannot mark it as Offline in Disk Management I have 3 partitions, 2 NTFS for windows (C:\ and D:) and 1 for Linux (btrfs) I want to mount the Linux partition Now what can I do?
|
Nothing. It is impossible to mount drive that is not marked offline. The only thing that can be done is to transfer btrfs partition to other drive and mark it offline or convert partition to disk image file using e.g. Disk2vhd utility from SysInternals. As I've said its pretty limiting but HyperV is proprietary closed source software fully controlled by Microsoft and only they can change behavior and allow mounting separate partitions (as e.g. VirtualBox did). |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Version
10.0.25211.1010
WSL Version
Kernel Version
5.15.62.1-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
Open CMD
Run
--mount \\.\PHYSICALDRIVE0 --partition 2
Expected Behavior
The external partition, which is ext4, should be mounted in /mnt/ inside the WSL root
Actual Behavior
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: