δΈ­

Move WSL distros to another drive

Published on June 03, 2024
4 MINS READ
In Windows, WSL is installed on the system drive by default, but the system drive has limited space, and WSL will be lost after the system is reinstalled. We may need to move WSL to another drive.

WSL migration

  1. list the WSL distros to move
  2. Shut down WSL
  3. Export the backup of WSL distro
  4. Unregister WSL distro
  5. Import WSL distro, and specify the new installation location
  6. Set the default user for WSL distro

Reference

Tags:
#WSL
#WSL2