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

Error code: Wsl/Service/AttachDisk/E_INVALIDARG #11317

Closed
1 of 2 tasks
HadiSDev opened this issue Mar 17, 2024 · 7 comments
Closed
1 of 2 tasks

Error code: Wsl/Service/AttachDisk/E_INVALIDARG #11317

HadiSDev opened this issue Mar 17, 2024 · 7 comments

Comments

@HadiSDev
Copy link

Windows Version

Microsoft Windows [Version 10.0.23620.1000]

WSL Version

WSL version: 2.1.4.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.146.1-2

Distro Version

No response

Other Software

No response

Repro Steps

Try to attach a vhdx file with mount command:
wsl --mount I:\WSLDistro.vhdx

Expected Behavior

Should just attach the disk file with no issue

Actual Behavior

The parameter is incorrect.
Error code: Wsl/Service/AttachDisk/E_INVALIDARG

Diagnostic Logs

No response

Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 18, 2024

/logs

@HadiSDev
Copy link
Author

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 22, 2024

Thank you @HadiSDev. Looks like you're trying to mount a vhd file.

Does this work for you ?

wsl --mount I:\WSLDistro.vhdx --vhd

@HadiSDev
Copy link
Author

Thank you @HadiSDev. Looks like you're trying to mount a vhd file.

Does this work for you ?

wsl --mount I:\WSLDistro.vhdx --vhd

I get this now:
Failed to attach disk '\?\I:\WSLDistro.vhdx' to WSL2: Access is denied.
Error code: Wsl/Service/AttachDisk/MountVhd/HCS/E_ACCESSDENIED

@OneBlue
Copy link
Collaborator

OneBlue commented Mar 22, 2024

Does your user account have permission to edit this file ? You can also try as administrator.

Copy link
Contributor

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.

Thank you!

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

No branches or pull requests

2 participants