Mount drive in Windows Subsystem for Linux

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

Leave a Reply

Your email address will not be published.