How to Mount Windows Network Drives in WSL

Article ID: KB48568

Mount a Drive Until Logoff

  1. Note the letter of the network drive that you would like to map in WSL. We will use M: in this example.
  2. Create a new folder for that drive letter under /mnt if it does not already exist. (ex: mkdir /mnt/m)
  3. Mount the drive with sudo mount -t drvfs M: /mnt/m

Mount Drives in a Persistent Manner

  1. Ensure the folder exists for the mount target (e.g. /mnt/m)
  2. Open /etc/fstab and add a line such as the following:

    M: /mnt/m drvfs defaults 0 0


  3. Reload the fstab file with sudo mount -a