Skip to content
Follow
Windows

Move Ubuntu WSL to Another Drive in Windows 11

Richard
Written by
Richard
Dec 2, 2024 Updated Jul 13, 2026 3 min read
How to Move Ubuntu WSL to Another Drive in Windows 11
How to Move Ubuntu WSL to Another Drive in Windows 11

Moving Ubuntu WSL to another drive in Windows 11 lets you free up space on your main C: drive. Ubuntu WSL is a way to run Linux programs and tools directly inside Windows, without needing a separate virtual machine or dual-boot setup.

This is especially useful if your original WSL installation, like Ubuntu, is taking up a lot of room. As of WSL version 2, Windows provides simple commands to relocate these Linux systems.

You can use the WSL –move command to transfer an installed distribution from its current drive to a new location. Alternatively, you can export your distribution and then import it to a different drive.

⚡ Quick Answer

You can move Ubuntu WSL to another drive using Windows Settings or the command line. First, shut down WSL with `wsl –shutdown`. Then, use the “Move” option in the Apps settings or the `wsl –move` command.

Transfer WSL distros to another drive

Let’s now look at how to transfer WSL distros to another drive. As mentioned, WSL lets you move or transfer a Linux distro to a drive other than the one it was initially installed on.

Here’s how to do it.

First, shut down WSL using the command below. You’ll need to run the Windows Terminal app as an administrator.

💻Code
wsl --shutdown

Once WSL is shut down, open the Settings app and navigate to Apps Installed apps

Windows 11 Settings app showing installed apps for moving Ubuntu WSL.
Windows 11 Settings app showing installed apps for moving Ubuntu WSL.

In the Apps window, select the "Install apps" tile to expand it.

Windows 11 installed apps
Windows 11 Settings app showing the list of installed applications.

Scroll down the installed apps list and select Ubuntu, or whichever Linux distro you want to move.

Next, click the three-dot menu option and choose 'Move' from the drop-down.

WSL distro move drive
WSL distro move drive

Finally, select your desired new drive and click 'Move.'

WSL distro move drive complete
WSL distro move drive complete

After a brief moment, the distro will be relocated to the new drive you selected.

Change the WSL drive using the Move command

Another method to move a distro to another drive involves using the 'Move' command within Windows Terminal, run as an administrator.

First, launch the Windows Terminal app as an administrator.

Then, use the command below to list all the distros currently on your machine.

💻Code
wsl --list --all

Next, shut down WSL by running the command below.

💻Code
wsl --shutdown

Then, move the distro to a new drive by running the command below.

💻Code
wsl --manage Ubuntu --move D:WSLUbuntu

After a brief moment, the distro will be relocated to the new drive specified in the command.

Use the Import command to change the WSL distro drive

An alternative approach to change the WSL distro's drive involves exporting and then importing the distro to a new location.

This guide explains how to export and import WSL distros.

After following the guide above, you can use the command below to import the distro to a new drive.

💻Code
wsl --import Ubuntu D:WSLUbuntu C:Ubuntu-export.tar

The D: drive serves as the destination, and the C: drive indicates the location of the exported tar file.

After a brief moment, the distro will be imported to the location specified.

That should complete the process!

Conclusion:

Moving Ubuntu WSL to another drive on Windows 11 is a manageable process that can boost performance or free up space on your main drive. Here are the key takeaways:

  • Multiple Methods: You can move your WSL distribution using the graphical interface in Settings or via the command line with the --move command.
  • Shut Down WSL: Always shut down your WSL instance before making any moves to avoid data corruption.
  • Use Windows Terminal: For advanced users, executing commands in the Windows Terminal is efficient and provides more control over the process.
  • Export and Import: For a more manual approach, utilize the export and import commands to relocate your distribution as needed.
  • Efficiency: Moving your WSL installation can optimize performance, especially if transitioning to faster storage solutions.

Following these steps helps you manage your WSL installations and organize your development environment effectively.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Install Windows Subsystem for Linux (WSL) on Windows 11
Ubuntu Linux How to Install Windows Subsystem for Linux (WSL) on Windows 11
How to Mount Linux File System on Windows 11 via WSL
Ubuntu Linux How to Mount Linux File System on Windows 11 via WSL
How to List Installed WSL Distros on Windows 11
Windows How to List Installed WSL Distros on Windows 11
How to Uninstall Windows Subsystem for Linux (WSL) in Windows 11
Ubuntu Linux How to Uninstall Windows Subsystem for Linux (WSL) in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *