Closed HadiSDev closed 6 months ago
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!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
/logs
Thank you @HadiSDev. Looks like you're trying to mount a vhd file.
Does this work for you ?
wsl --mount I:\WSLDistro.vhdx --vhd
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
Does your user account have permission to edit this file ? You can also try as administrator.
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!
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?
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