2

I like to use the Ubuntu Bash that has been added to windows 10 since the Anniversary Update. It generally works fine and allows me to continue working when I switch between my Linux workstation and my Windows laptop. I usually share/sync my files via Dropbox, which (on my laptop) I can access from my Windows filesystem from the windows bash via /mnt/c/Users/Me/Dropbox.

However, I want to be able to do the same from my tablet/netbook hybrid (Windows 10). Here, the original disk space is limited, so I added an NTFS formatted 128GB SD card (as drive "D:"), and set the Dropbox folder in Windows to sync there. This is not being recognized by Bash on Windows (I only see drive "c" in /mnt), even though I read this should be possible as long as the card is NTFS-formatted.

I also tried to create soft links (junctions) from the SD card to C: in Windows (as I read these are supported by Bash on Windows now too), but they do not show up in /mnt/c when searching for them from Bash.

Can this be fixed without relocating the Dropbox folder to C:?

3
  • In order to acomplish what you want. You will have to wait until your system is upgraded to the 1703 feature update. One of the changes to Windows Subsystem for Linux is the ability mount Windows locations within Ubuntu. What you want CANNOT be done with on the 1607 feature update.
    – Ramhound
    Commented Apr 4, 2017 at 15:22
  • Thanks. So this update will allow mounting NTFS file-formats? Or will it even allow accessing Fat32-formatted USB-drives? Any Idea on when this update may come? It seems it was scheduled for March.
    – jov14
    Commented Apr 4, 2017 at 15:25
  • The new feature is the ability to mount locations within Windows within the updated version of Ubuntu (Windows Subsystem for Linux). April 11 is the official date, April 5 is the manual update, current *.11 ISO(s) TBD
    – Ramhound
    Commented Apr 4, 2017 at 16:23

1 Answer 1

8

Summary

In the latest Windows Insider build [16176], the Windows Subsystem for Linux (WSL) now allows you to manually mount Windows drives using the DrvFs file system. Previously, WSL would automatically mount all fixed NTFS drives when you launch Bash, but there was no support for mounting additional storage like removable drives or network locations.

Now, not only can you manually mount any drives on your system, we’ve also added support for other file systems such as FAT, as well as mounting network locations. This enables you to access any drive, including removable USB sticks or CDs, and any network location you can reach in Windows all from within WSL.

Mounting DrvFs

In order to mount a Windows drive using DrvFs, you can use the regular Linux mount command. For example, to mount a removable drive D: as /mnt/d directory, run the following commands:

$ sudo mkdir /mnt/d
$ sudo mount -t drvfs D: /mnt/d

Now, you will be able to access the files of your D: drive under /mnt/d. When you wish to unmount the drive, for example so you can safely remove it, run the following command:

$ sudo umount /mnt/d

Source: File System Improvements to the Windows Subsystem for Linux

2
  • In theory this should work, but I'm getting: wrong fs type, bad option, bad superblock on F:, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program)
    – Balkyto
    Commented Feb 14, 2018 at 23:05
  • I'm afraid NFS and similar filesystems are not directly supported now as they're not a Windows Network Location. Commented Feb 16, 2018 at 13:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .