Jump to content
  • 0

Access denied after moving my Ubuntu distribution to another drive


MOoD90s

Question

After a
Code:
wsl --manage Ubuntu --move D:\WSL2Distros\
when trying to start Ubuntu under Windows Terminal I get:

Code:
Failed to attach disk 'D:\WSL2Distros\ext4.vhdx' to WSL2: Access is denied.
Error code: Wsl/Service/CreateInstance/MountDisk/HCS/E_ACCESSDENIED

The vdhx file moved correctly to the new location.


Also when starting Docker Desktop I get a similar:

Code:
configuring docker in Ubuntu: docker cli config: failed to write file: running wslexec: An error occurred while running the command. Wsl/Service/CreateInstance/MountDisk/HCS/E_ACCESSDENIED: c:\windows\system32\wsl.exe -d ubuntu -e sh -c cat - > ~/.docker/config.json: exit status 0xffffffff (stderr: , wslErrorCode: Wsl/Service/CreateInstance/MountDisk/HCS/E_ACCESSDENIED)

I tried to assign all permissions to my standard user. I also tried to change owner from my user to Administrator, and finally back again. Nothing helped.
 
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • AD
  • Recent Status Updates

    No Recent Status Updates
  • Most Solved

    Nothing has been solved this week.

×
×
  • Create New...