/ notes / misc
⇒ This is just a collection of notes, not a structured or comprehensive document. ⇐

WSL2

Disks

Distributions:

c:>wsl --list --verbose
  NAME                      STATE           VERSION
* Ubuntu                    Running         2
  podman-machine-default    Stopped         2

Links in the Windows Start Menu:

"C:\Program Files\WSL\wsl.exe" --distribution-id {0cb77e94-...} --cd ~
"C:\Program Files\WSL\wsl.exe" --distribution-id {3aa6735e-...} --cd ~

List disks (the BasePath folder contains the VHDX disk file):

PS C:\>Get-ChildItem "HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss" -Recurse

Name              Property
----              --------
{0cb77e94-....... State               : 1
                  DistributionName    : Ubuntu
                  Version             : 2
                  BasePath            : C:\Users\XXXXXX\AppData\Local\wsl\{0cb77e94-...}
                  DefaultUid          : 1000
                  VhdFileName         : ext4.vhdx
                  Flavor              : ubuntu
                  OsVersion           : 24.04

{3aa6735e-....... State               : 1
                  DistributionName    : podman-machine-default
                  Version             : 2
                  BasePath            : \\?\C:\Users\XXXXXX\.local\share\containers\podman\machine\wsl\wsldist\podman-machine-default
                  Flags               : 15
                  DefaultUid          : 0
                  VhdFileName         : ext4.vhdx
                  Flavor              : fedora
                  OsVersion           : 42



tail -f _WorkerFoo.txt  ---disable-inotify