WSL install dir

FARES Pascal 21 Reputation points
2020-10-21T04:05:49.773+00:00

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

Accepted answer
  1. Leon Laude 85,816 Reputation points
    2020-10-21T06:29:46.683+00:00

    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,
    Leon


2 additional answers

Sort by: Most helpful
  1. Jenny Feng 14,151 Reputation points
    2020-10-21T07:15:34.057+00:00

    @FARES Pascal
    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.

    0 comments No comments

  2. Timofeev Nicolai 1 Reputation point
    2022-08-14T23:38:32.993+00:00

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.