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

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s