On Windows 10 Pro and 11 Pro I have installed and activated Ubuntu-20.04 and Debian. Using the documentation from MS on switching those distros to a secondary drive, everything seemed to work fine. Until the WSL import command. It outputs "Access is denied". I've tried Windows Terminal, PowerShell, and even WebStorm; I get the same output.
I am running with elevated privileges but to no avail. The export works fine, I use a different name as the source file to ensure I restore the name to its original name. The wsl.conf editing looks good, everything lines up... until the import command.
I am at a loss. I've exhausted all research. Can anyone help me resolve this so I can run these from my F: drive?
Cheers,
RN
cd /etc/ # sudo nano wsl.conf [or vim]--add file commits
- open powershell # wsl --shutdown # wsl -l -v
# wsl --export Debian C:\temp\Dibian.tar
# wsl unregister Debian
# wsl -l -v to verify deregistration
# wsl --import Dibian.tar F:\wsl C:\temp\Dibian
!output --> Access is denied.
I follow the same process with Ubuntu-20.04, but export to Ubintu.tar, then export to original name Ubuntu-20.04. – Hellish