Windows 10 Ubuntu Bash Shell: How Do I Mount Other Windows Drives?
I'm using Windows 10's Ubuntu Bash shell. It maps the C drive fine as /mnt/c.
I have other local physical hard drives, mounted in Windows as E: and F:
How do I tell Bash to mount these drives too (ideally automatically at /mnt/e and /mnt/f, but manual mounting is fine)? "sudo fdisk -l" doesn't seem to work (cannot open /proc/partitions), so I'm not sure how to find their names, otherwise I'd just use a regular mount command.
35 Answers
Good news, it is now possible to mount USB media (including formatted as FAT) and network shares with drvfs on Windows 10:
Mount removable media: (e.g. D:)
$ sudo mkdir /mnt/d
$ sudo mount -t drvfs D: /mnt/dTo safely unmount
$ sudo umount /mnt/dYou can also mount network shares without smbfs:
$ sudo mount -t drvfs '\\server\share' /mnt/shareYou need at least Build 16176 so you might have to opt-in to the Windows Insider programm and then update Windows. Source:
5To facilitate interoperability with Windows, WSL uses the DrvFs file system. WSL automatically mounts all fixed drives with supported file systems under /mnt, such as /mnt/c, /mnt/d, etc. Currently, only NTFS and ReFS volumes are supported.
From:
If e: and f: have other filesystems like FAT, exFAT, they will not be automatically mounted.
Those other drives should be there as well, in /mnt/e etc. You can check with ls /mnt. If they aren't, I'd try one of several things-
-Reboot your computer, make sure that the drives are plugged in, and then launch bash
-Reinstall Ubuntu by running lxrun/uninstall/full/y and then lxrun/install/y in cmd
-If nothing works, you can try making a symlink from the mount point of the usb drive to some folder on your C drive. I believe this article explains how to make them in Windows.
If none of this works, I would recommend reporting this as a bug to Microsoft. WSL is still under heavy development, and not nearly all of the features are working properly.
Very late to this party but here's the official issue:
In short, it's on their radar but it's not implemented yet. :(
1Try this only If you are using WSL Linux (downloaded from Microsoft Store)
1.cd /mnt2.cd D/
First part is something like start mounting and then you can simply add any drives.
1