Skip to content

Instantly share code, notes, and snippets.

View jamescasia's full-sized avatar
:octocat:
moving forward

James Casia jamescasia

:octocat:
moving forward
View GitHub Profile
@mzaglia
mzaglia / wsl_vhdx.md
Last active August 16, 2021 04:45
WSL Change vhdx
  1. Backup current vhdx file from %LOCALAPPDATA%\Packages\<PackageFamilyName>\LocalState\ext4.vhdx to D:\ext4.vhdx (Most important step. If you can't find correct vhdx file, you shouldn't go ahead)
  2. Remove current distro, like wsl --unregister Ubuntu-20.04
  3. Reinstall distro from Microsoft Store
  4. Export and import wsl --export Ubuntu-20.04 D:\wsl.tar