Skip to content
Follow
Windows

Move Ubuntu WSL to Another Drive in Windows 11

Richard
Written by
Richard
Dec 2, 2024 Updated Aug 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 clear up space on your main C: drive without losing your files. Ubuntu WSL stands for Windows Subsystem for Linux, a built-in feature that runs Linux programs directly on your PC.

Your Linux setup can take up gigabytes of storage over time as you install apps and files. Windows version 10 and 11 include simple built-in commands to export your Linux system and move it to a faster or larger 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

Transferring WSL distros to another drive involves a few specific actions. WSL lets users move or transfer a Linux distro to a drive other than the one it initially occupied.

The process follows these steps.

Shut down WSL using the command below before starting. Running the Windows Terminal app as an administrator is required for this step.

💻Code
wsl --shutdown

Opening the Settings app and navigating to Apps Installed apps happens once WSL shuts down.

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

Selecting the "Install apps" tile inside the Apps window expands the view.

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

Scrolling down the installed apps list reveals Ubuntu or whichever Linux distro requires relocation.

Click the three-dot menu next to the distro and choose Move from the drop-down list.

WSL distro move drive
WSL distro move drive

Choosing the desired new drive and clicking 'Move' completes the graphical process.

WSL distro move drive complete
WSL distro move drive complete

The distro relocates to the selected drive after a brief moment.

Change the WSL drive using the Move command

Command-line relocation offers another path for moving a distro using Windows Terminal running with administrative privileges.

Launch the Windows Terminal app as an administrator first.

Displaying all distros currently on the machine requires running the command below.

💻Code
wsl --list --all

Shutting down WSL occurs by executing the command below.

💻Code
wsl --shutdown

Moving the distro to a new drive happens by running the command below.

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

The distro relocates to the specified new drive after a brief moment.

Use the Import command to change the WSL distro drive

Exporting and importing the distro to a new location serves as an alternative approach for changing drives.

A separate guide details how to export and import WSL distros.

Importing the distro to a new drive utilizes the command below after completing that guide.

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

The D: drive acts as the destination, while the C: drive points to the location of the exported tar file.

The distro imports to the specified location after a brief moment.

This concludes the process successfully.

Conclusion:

Moving Ubuntu WSL to another drive on Windows 11 manages storage efficiently and can boost performance on the main drive. Keep these main points in mind:

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

Implementing these steps helps maintain WSL installations and organizes the 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 *