WSL install dir

FARES Pascal 21 Reputation points


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
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,160 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 85,566 Reputation points

    Hi @FARES Pascal ,

    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,

2 additional answers

Sort by: Most helpful
  1. Jenny Feng 14,111 Reputation points

    @FARES Pascal

    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:
    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.

    0 comments No comments

  2. Timofeev Nicolai 1 Reputation point

    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.

    0 comments No comments