My 1TB hard disk contains two drive, C:\ and D:\
, each 490GB. Windows 10 is installed in C:. How can I install WSL2 and Ubuntu distro on D:?
-Thanks
My 1TB hard disk contains two drive, C:\ and D:\
, each 490GB. Windows 10 is installed in C:. How can I install WSL2 and Ubuntu distro on D:?
-Thanks
The Distro needs to be stored on your subsystem. You can create a new user.
Troubleshooting [ The Windows Subsystem for Linux only runs on your system drive (usually this is your C: drive). Make sure that distributions are stored on your system drive: Open Settings -> **System --> Storage -> More Storage Settings: Change where new content is saved
These options may work. If not you can always install and set D: as the working directory.
1.Custom configuration of distro
Sample/reference launcher app for WSL distro Microsoft Store packages.
Download WSL Distro from Microsoft server to a folder on the D: drive and execute the exe from the command line with config options
Set-Location D:
New-Item WSL -Type Directory
Set-Location .\WSL
Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1604 -OutFile Ubuntu.appx -UseBasicParsing
Add-AppxPackage .\app_name.appx