Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
win10:wsl [2025/11/07 15:50] – [Files] Bernard Condrauwin10: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, Cassandra, Hera, Vulcan, Hercules, Poseidon, Iapetus ===== 
 +This guide has been tested under Windows 10 / Debian 10 and Windows 11 / Debian 13.
 ===== Installation ===== ===== Installation =====
   - Enable "Developer mode" in //Settings --> System --> Advanced// (Win 11) or //Settings --> Update & Security --> For developers// (Win 10)   - Enable "Developer mode" in //Settings --> System --> Advanced// (Win 11) or //Settings --> Update & Security --> For developers// (Win 10)
Line 12: Line 13:
 pause</file> pause</file>
   - Restart your computer   - Restart your computer
-  - Open the Microsoft Store and search for "Linux". Choose and get Debian, as per 2020-03-10 this is Debian 10 Buster.+  - Open the Microsoft Store and search for "Linux". Choose and get Debian, as per 2020-03-10Debian 10 Buster, 2025-11-7: Debian 13.0 Trixie.
   - Open //Debian// from the start menu and complete installation.   - Open //Debian// from the start menu and complete installation.
   - Upgrade all packages:<code>sudo apt update   - Upgrade all packages:<code>sudo apt update
Line 35: Line 36:
     attach vdisk</file>     attach vdisk</file>
   * 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 <diskPath> with the actual disk path (e.g., /dev/sdb) and <mountPoint> with your desired mount point within WSL (e.g., /mnt/ext4). +  * Mount the Disk in WSL: Open your WSL distribution (e.g., Ubuntu) and mount the disk path identified in the previous step. Replace <diskPath> with the actual disk path (e.g., /dev/sdb) and <mountPoint> with your desired mount point within WSL (e.g., /mnt/ext4).<file>sudo wsl --mount <diskPath> --bare 
-Code +sudo mkdir -p <mountPoint> 
- +sudo mount <diskPath> <mountPoint></file
-    sudo wsl --mount <diskPath> --bare +  Access Files within WSL: Once mounted, you can navigate to the <mountPoint> within your WSL environment and access the files stored on the ext4.vhdx.<file>cd <mountPoint> 
-    sudo mkdir -p <mountPoint> +ls -l</file> 
-    sudo mount <diskPath> <mountPoint> +  Unmount and Detach (after use): When you are finished, unmount the disk within WSL and detach the VHDX from Windows.<file>sudo umount <mountPoint> 
-Access Files within WSL: Once mounted, you can navigate to the <mountPoint> within your WSL environment and access the files stored on the ext4.vhdx. +wsl --unmount <diskPath></file
-Code +  If you used Mount-VHD:<file>Dismount-VHD -Path "<pathToVHD>"</file> 
- +  If you used diskpart:<file>diskpart 
-    cd <mountPoint> +select vdisk file="<pathToVHD>" 
-    ls -l +detach vdisk</file> 
-Unmount and Detach (after use): When you are finished, unmount the disk within WSL and detach the VHDX from Windows. +  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.
-Code +
- +
-    sudo umount <mountPoint> +
-    wsl --unmount <diskPath> +
-If you used Mount-VHD: +
-Code +
- +
-    Dismount-VHD -Path "<pathToVHD>" +
-If you used diskpart: +
-Code +
- +
-    diskpart +
-    select vdisk file="<pathToVHD>" +
-    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 =====