Skip to content

Instantly share code, notes, and snippets.

View nevmerzhitsky's full-sized avatar
🪀

Sergey Nevmerzhitsky nevmerzhitsky

🪀
  • 07:39 (UTC +05:00)
View GitHub Profile
@nevmerzhitsky
nevmerzhitsky / vhdx.txt
Last active May 10, 2021 09:43 — forked from onomatopellan/vhdx.md
How to automount an external vhdx file in WSL2
1. Ubuntu WSL2 must be already installed in C: system drive and user should be able to call windows binaries like wsl.exe from bash.
2. We will install Alpine WSL2 distro in an external partition/disk:
Download an Alpine ZIP file from here:
https://github.com/yuk7/AlpineWSL/releases/
Extract the files in an external partition/disk. (for example D:\Alpine)
Make sure WSL2 is enabled by default (wsl.exe --set-default-version 2)
Inside the Alpine folder run `winpty Alpine.exe` to install the Distro. An ext4.vhdx file will be created in that same folder.