How do I access an external hard drive through bash-on-Ubuntu-on-windows. It doesn't seem to appear in either /media
, /mnt
or /dev
, which seem the common places that people say to look for them in Ubuntu systems.
Note: the hard drive is HFS+ formatted: I use Paragon's HFS+ for windows and have already done an apt-get install hfsprogs
which I think should allow the Linux part to read the HFS+ format. I have also tried with normal USB sticks, no of which seemed to appear anywhere.
The drive does appear in /cygdrive
in cygwin, but when I navigate to cygdrive in bash it doesn't appear. Clearly it is not properly mounted there, but is some form of symbolical link that bash cannot see.
I'm not really sure if this is a Linux or a Windows issue, but there doesn't seem to be anything from Microsoft about it, though I realise it is early days for them.
To find out the label of an external hard drive, open up a terminal, and use the following command. The lsblk command (list block devices) shows all attached drives. When the list block command finishes, all of the drives connected will appear in this list. If any hard drives are in use, it'll be easy to see.
Super Moderator. Any external drive should work just fine with Linux - but you'll have to use a drive formatting that works with Windows - like FAT32 or NTFS. Windows can't (native) read the various Linux drive formats, like EXT3/4 Btrfs, etc, where Linux can manage FAT32 and NTFS with some bit wrangling.
The Ubuntu on Windows on the current build (Build 14393, a.k.a. anniversary update) doesn't support accessing external drive. This feature is on their backlog for future consideration.
Source: https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13355724-unable-to-access-usb-devices-from-bash
Edit: Mounting removable drives are supported since Build 16176. [1][2]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With