How to move existing WSL installation to D: drive | Ext4.vhdx file default path change

Опубликовано: 07 Май 2026
на канале: TechySavvy
4,934
89

Registry Path for WSL2 installation.

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss\

We need to change basepath location to D: drive after moving the ext4.vhdx file
Default location of WSL2 installation is c:\ drive. Example path:-
C:\Users\username\AppData\Local\Packages\TheDebianProject.DebianGNULinux_76v4gfsz19hv4\LocalState

Error solution: 0x80070005



Move WSL to another computer

WSL2 disk location

WSL2 change install location

WSL2 VHD location

WSL2 storage location

Move WSL2 distro

WSL2 move vhdx