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

VHDX cannot be detached with full path #10771

Closed
1 of 2 tasks
dantmnf opened this issue Nov 16, 2023 · 2 comments
Closed
1 of 2 tasks

VHDX cannot be detached with full path #10771

dantmnf opened this issue Nov 16, 2023 · 2 comments
Assignees

Comments

@dantmnf
Copy link

dantmnf commented Nov 16, 2023

Windows Version

Microsoft Windows [Version 10.0.22621.2428]

WSL Version

2.0.9.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.133

Distro Version

N/A

Other Software

No response

Repro Steps

C:\>wsl --mount --vhd --bare E:\test\a.vhdx
The operation completed successfully.

C:\>wsl --unmount E:\test\a.vhdx
The system cannot find the file specified.
Error code: Wsl/Service/DetachDisk/ERROR_FILE_NOT_FOUND

C:\>cd /d E:\test

E:\test>wsl --unmount a.vhdx
The operation completed successfully.

Expected Behavior

The VHDX can be detached with either full path or relative path.

Actual Behavior

VHDX cannot be detached with full path.

Diagnostic Logs

No response

@OneBlue OneBlue self-assigned this Nov 21, 2023
@benhillis
Copy link
Member

@conioh
Copy link

conioh commented Jan 7, 2024

A workaround in case somebody can't get the update is to use \\?\path, e.g. wsl.exe --unmount \\?\E:\test\a.vhdx. For some reason this works.

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

4 participants