question

FARESPascal-1899 avatar image
0 Votes"
FARESPascal-1899 asked TimofeevNicolai-8482 published

WSL install dir

Hello,

How we can install a Linux distro on a disk other than boot disk (C)?

I have a small SSD for booting.

Best regards

windows-10-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeonLaude avatar image
0 Votes"
LeonLaude answered SorooshKeivanfard-8951 commented

Hi @FARESPascal-1899,

You can follow the two step-by-step guides below to achieve what you want:

Install Windows Subsystem for Linux on a Non-System Drive

Installing WSL Distro to a different/custom location


(If the reply was helpful please don't forget to upvote or accept as answer, thank you)


Best regards,
Leon


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi
I have the same issue. My windows is installed on a 128gb SSD and I have another 1tb HDD. My PC is currently running on Windows 11 and I have specified that new applications should be installed on drive E (the 1tb HDD) but after installing Ubuntu, I realize it's installed on drive C and when I try to move it to drive E, I get the following error:
"We couldn't move Ubuntu
The operation did not complete successfully. Try again in a bit.
The error code is 0x80073d0d, in case you need it."
I tried the steps provided in these 2 links and the problem was after extracting the archive, there was no .exe file instead there are several .appx files. After installing the correct .appx the same thing happens. I also searched the error code and tried the steps provided by https://www.thewindowsclub.com/fix-microsoft-store-error-code-0x80073d0d-in-windows but they didn't help either.
I'm currently using a dual-boot Ubuntu and I'd really much like to delete the Ubuntu OS and the dual boot system and fully migrate to Windows and using WSL for my Linux usages so I'd really appreciate any help from anyone.
Thanks

0 Votes 0 ·
JennyFeng-MSFT avatar image
0 Votes"
JennyFeng-MSFT answered

@FARESPascal-1899
Hi,

It is Microsoft operating systems that use letters to distinguish partitions. This doesn’t exist in Linux.
Unofficially, it is possible to install WSL on a non system drive.

You may refer to the following steps to complete the installation:
https://damsteen.nl/blog/2018/08/29/installing-wsl-manually-on-non-system-drive
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

Hope above information can help you.

============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TimofeevNicolai-8482 avatar image
0 Votes"
TimofeevNicolai-8482 answered TimofeevNicolai-8482 published

Can simply move installed distro to other location
stop wsl first: wsl --shutdown
Path to distro stored in registry: Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss{some guid}\BasePath
move distro to another location and update path in registry.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.