pxlrbt / move-wsl

Easily move your WSL distros VHDX file to a new location.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Batch util doesn't consider resized vdisk

DANgerous25 opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.
Batch util results in default vdisk size when importing. (not tested: bash/PowerShell versions)
Please add terminal output if possible:
I had resized my vdisk using the guide here. However after running the batch utility my vdisk had resized to its default of 256M.

Script version:

  • Bash
  • Powershell
  • Batch

Under the hood the wsl --export and wsl --import functionality is used. I am not sure, why this increases the vdisk size again, but I think there's nothing I can do against it. I guess the only way would be to rewrite the tool, to edit the registry directly