This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| win10:wsl [2025/11/07 16:15] – [Installation] Bernard Condrau | win10:wsl [2025/11/08 13:33] (current) – [Osiris, Cassandra, Hera, Vulcan, Hercules, Poseidon, Iapetus] Bernard Condrau | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Windows Subsystem for Linux - Debian 10.3 ===== | ====== Windows Subsystem for Linux - Debian 10.3 ===== | ||
| - | ===== Cassandra, Hera, Vulcan, Hercules, Poseidon, Iapetus ===== | + | ===== Osiris, |
| + | This guide has been tested under Windows 10 / Debian 10 and Windows 11 / Debian 13. | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - Enable " | - Enable " | ||
| Line 35: | Line 36: | ||
| attach vdisk</ | attach vdisk</ | ||
| * Identify the Disk Path in Windows: After mounting, you need to find the disk path assigned by Windows. You can use Get-Disk in PowerShell or list disk in diskpart to identify the newly mounted disk. | * Identify the Disk Path in Windows: After mounting, you need to find the disk path assigned by Windows. You can use Get-Disk in PowerShell or list disk in diskpart to identify the newly mounted disk. | ||
| - | Mount the Disk in WSL: Open your WSL distribution (e.g., Ubuntu) and mount the disk path identified in the previous step. Replace < | + | * Mount the Disk in WSL: Open your WSL distribution (e.g., Ubuntu) and mount the disk path identified in the previous step. Replace < |
| - | Code | + | sudo mkdir -p < |
| - | + | sudo mount < | |
| - | | + | |
| - | sudo mkdir -p < | + | ls -l</ |
| - | sudo mount < | + | |
| - | Access Files within WSL: Once mounted, you can navigate to the < | + | wsl --unmount < |
| - | Code | + | |
| - | + | | |
| - | | + | select vdisk file="< |
| - | ls -l | + | detach vdisk</ |
| - | Unmount and Detach (after use): When you are finished, unmount the disk within WSL and detach the VHDX from Windows. | + | |
| - | Code | + | |
| - | + | ||
| - | | + | |
| - | wsl --unmount < | + | |
| - | If you used Mount-VHD: | + | |
| - | Code | + | |
| - | + | ||
| - | | + | |
| - | If you used diskpart: | + | |
| - | Code | + | |
| - | + | ||
| - | | + | |
| - | select vdisk file="< | + | |
| - | detach vdisk | + | |
| - | Alternative Method (for viewing only): | + | |
| - | For simply viewing the contents of an ext4.vhdx file without mounting, you can use tools like 7-Zip. 7-Zip can open and browse the contents of various disk image formats, including ext4.vhdx, allowing you to extract files without needing to mount the entire disk. | + | |
| ===== SSH Server ===== | ===== SSH Server ===== | ||