Skip to content
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

WSL mount failing on Windows 11 - This operation is only supported by WSL2 #7527

Closed
1 of 2 tasks
jinucompute opened this issue Oct 12, 2021 · 14 comments
Closed
1 of 2 tasks
Assignees

Comments

@jinucompute
Copy link

jinucompute commented Oct 12, 2021

Version

Microsoft Windows [Version 10.0.22000.194]

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

5.10.60.1

Distro Version

Ubuntu-20.04

Other Software

When i try to run the command

wsl --mount \.\PHYSICALDRIVE5 --bare

I get the following error

This operation is only supported by WSL2.

Repro Steps

Run the command

wsl --mount \.\PHYSICALDRIVE5 --bare

Expected Behavior

Attach the disk to WSL2

Actual Behavior

I get the error
This operation is only supported by WSL2.

Now the default version is set to 2 and the Distro is also version 2

wsl.exe --status
Default Distribution: Ubuntu-20.04
Default Version: 2
Windows Subsystem for Linux was last updated on 12-10-2021
WSL automatic updates are on.
Kernel version: 5.10.60.1

wsl -l -v
NAME STATE VERSION

  • Ubuntu-20.04 Running 2

Diagnostic Logs

No response

@benhillis
Copy link
Member

Could you provide the output of wsl.exe -l -v?

@suxpert
Copy link

suxpert commented Oct 13, 2021

Could you provide the output of wsl.exe -l -v?

If I'm not missing something, @jinucompute had included the output at the last part:

\> wsl -l -v
NAME STATE VERSION
Ubuntu-20.04 Running 2

BTW, I also have a bare mounted physical drive under wsl2 (ext4 filesystem), which is working correctly, the only inconvenience is that I need to mount it with administrator privileges.

@jinucompute
Copy link
Author

Could you provide the output of wsl.exe -l -v?

wsl -l -v
NAME STATE VERSION

  • Ubuntu-20.04 Running 2

@ghost ghost removed the needs-author-feedback label Oct 13, 2021
@OneBlue
Copy link
Collaborator

OneBlue commented Oct 14, 2021

/logs

@ghost
Copy link

ghost commented Oct 14, 2021

Hello! Could you please provide more logs to help us better diagnose your issue? You can find instructions on how to attach logs here, please make sure to post the link to the Feedback Hub item in this chat so we can see it.

Thank you!

@jinucompute
Copy link
Author

Apologies folks. This problem is no longer there. Today when i checked in order to generate the logs. I am not sure how the problem resolved, but as of now mounting is working fine for.

Once again apologies for this

@jpeeler
Copy link

jpeeler commented Jan 8, 2022

I referenced this in another issue, which led me to #7829. After adding myself Administrators group, the mount command completed successfully. Obviously, this is an unfortunate limitation, but at least the issue is somewhat understood now.

@OMIDBIDBID
Copy link

This operation is only supported by WSL2.

@OMIDBIDBID
Copy link

i want to replace wsl2 but i cant!

@pjschinske
Copy link

pjschinske commented Aug 14, 2022

I am having the exact problem the original author had. Does not matter whether I'm using an admin account or an admin prompt on a standard account. Using an admin prompt, I get this:

C:\Users\pjsch>wsl --mount \.\PHYSICALDRIVE2
This operation is only supported by WSL2.

C:\Users\pjsch>wsl --status
Default Distribution: Ubuntu-20.04
Default Version: 2

Windows Subsystem for Linux was last updated on 7/25/2022
WSL automatic updates are on.

Kernel version: 5.10.102.1

@Philipp91
Copy link

Philipp91 commented Jan 4, 2023

Same here. I have a hunch that we all have Windows 10 and that the correct error message should be "only supported by WSL2 on Windows 11 or higher".

Actually, after installing the latest WSL version from the Microsoft Store (as hinted here) and some distribution (wsl --install Ubuntu), the --mount command now works for me.

@ClaudioFriederich
Copy link

Same problem as original author and you guys. I have Windows 11 mind you, not Windows 10, build 22621.1105, well above the minimum version per https://learn.microsoft.com/en-us/windows/wsl/wsl2-mount-disk and I have WSL 2 (wsl --status reports default version 2).

@reidprichard
Copy link

reidprichard commented Jan 30, 2023

Same issue on Windows 11, exactly as described by the OP. Updated WSL kernel, rebooted, and issue still persists. I'll update back if I have any luck.

WSL version: 1.0.3.0
Kernel version: 5.15.79.1
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.1105

Edit: I tried installing Debian and got error 0x80370102. Guess I'll poke around in my BIOS for virtualization features, though I'd think Ubuntu wouldn't work either if they were off.

Okay, enabling virtualization in my BIOS seems to have done the trick as far as the original error goes.

PS C:\WINDOWS\system32> wsl --mount \\.\PHYSICALDRIVE1
The system cannot find the drive specified.
Error code: Wsl/Service/AttachDisk/0x8007000f

@JulienDesurmont
Copy link

JulienDesurmont commented Jan 23, 2024

I had the same issue and solved it by removing completely wsl from windows (https://pureinfotech.com/uninstall-wsl-windows-11/) and re installed it in administator cmd windows : wsl --install -d debian (ubuntu would do it too)
After that the mount command worked. Hope it will help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests