docsrodrigo de avila's knowledge base
GitHubGitHub (opens in a new tab) (opens in a new tab)
  • bookmarks
    • consul
    • databases
      • postgresql
      • pub/sub
    • dev
      • general
      • golang
      • sql
    • docker
    • git
    • general
    • jamstack
    • kubernetes
    • linux
    • mac os
    • redis
    • sre
    • virtual machines
  • how-to
    • apache
    • css
    • docker
    • git
      • frequently used
      • essentials
      • statistics
    • gpg
    • linux
      • almalinux
      • bash
      • ubuntu
      • wsl
    • lvm
    • mysql
      • queries
    • mac os
    • network
    • nginx
    • postgresql
      • commands
      • queries
      • replication
      • tools
    • engineering practices
    • ssh
    • sql server
      • queries
  • bookmarks
    • consul
    • databases
      • postgresql
      • pub/sub
    • dev
      • general
      • golang
      • sql
    • docker
    • git
    • general
    • jamstack
    • kubernetes
    • linux
    • mac os
    • redis
    • sre
    • virtual machines
  • how-to
    • apache
    • css
    • docker
    • git
      • frequently used
      • essentials
      • statistics
    • gpg
    • linux
      • almalinux
      • bash
      • ubuntu
      • wsl
        • mount and access other linux filesystems
    • lvm
    • mysql
      • queries
    • mac os
    • network
    • nginx
    • postgresql
      • commands
      • queries
      • replication
      • tools
    • engineering practices
    • ssh
    • sql server
      • queries

On This Page

  • mount and access other linux filesystems
how-to
linux
wsl

windows subsystem for linux

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>

(c) 2020 - 2023 | rdeavila. licensed under the mit license.