81 字
1 分钟
Correclty move WSL2 distro from default drive to another drive

DO NOT USE THE MOVE FUNCTION IN SETTINGS>APPLICATION

it will move into encrypted WindowsApps folder and cause a lot of WSL2 failure. exmpale

the correct way to do it is export then import.

  • check your distro name
wsl -l
适用于 Linux 的 Windows 子系统分发:
Ubuntu (默认)
docker-desktop
  • export your distro
wsl --export Ubuntu X:\wslbackup.tar
  • import your distro
wsl --import Ubuntu X:\WSL2\ X:\wslbackup.tar --version 2

get into your wsl distro and validate see if everything is working fine. then delete the backup tar.

Correclty move WSL2 distro from default drive to another drive
https://notes.ezworker.cc/posts/correclty-move-wsl2-distro-from-default-drive-to-another-drive/
作者
jayzhu
发布于
2025-04-12
许可协议
CC BY-NC-SA 4.0