Skip to content

Instantly share code, notes, and snippets.

@dsmith73
Last active April 7, 2020 21:21
Show Gist options
  • Save dsmith73/a554311e4028a83895fa6c456222c2a4 to your computer and use it in GitHub Desktop.
Save dsmith73/a554311e4028a83895fa6c456222c2a4 to your computer and use it in GitHub Desktop.
WSL not mounting drives

WSL isn't mounting drives

In my scenario, my D:\ drive was missing from WSL
using Ubuntu-18.04

To fix it, I did the following in WSL -

sudo nano /etc/fstab

add the following to /etc/fstab
D: /mnt/d drvfs defaults 0 0

ctrl+o
enter
ctrl+w

Then create the mount point (if it doesn't exist)
sudo mkdir /mnt/d

Finally, mount it
sudo mount -a

FYI: It works even with non fixed drives


#dsmith73
github.com/dsmith73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment