Skip to content

windows subsystem for linux

list your installed distros

wsl -l

backup a distro

wsl --export DISTRO_NAME FILENAME.tar

restore a distro


mount and access other linux filesystems

to mount a disk, open a powershell window with administrator privileges

wsl --mount <DiskPath>

the mounted path will be available on wsl inside /mnt/wsl directory.

to list the available disks in Windows

wmic diskdrive list brief

the disks paths are available under the DeviceID columns, usually under the \\.\PHYSICALDRIVE0 format.

to unmount and detach the disk

wsl --unmount <Diskpath>