Mount drive in Windows Subsystem for Linux

Posted by Joe Enos on March 27, 2021 · 1 min read

To mount a drive with a letter, including a network drive:

sudo mkdir /mnt/g

sudo mount -t drvfs G: /mnt/g

To mount a network share:

sudo mkdir /mnt/folder

sudo mount -t '\\server\folder' /mnt/folder

With specific credentials:

net.exe use f: \\server\folder /user:Bob LetMeIn


sudo umount /mnt/folder

Source: Chris Hoffman on HowToGeek