I have Windows installed on my C: drive, and I have Ubuntu/Bash in Windows.  I have a second partition with Linux Mint.  On Windows bash I tried to use fdisk -l to see what partitions there are, because I wanted to mount my Windows bash to my Linux Mint so I could browse files without having to reboot the system.

Is this possible? and if yes, can someone please tell me how I could do this this? Because when I typed fdisk -l it said

fdisk: cannot open /proc/partitions: No such file or directory
  • I don't think Ubuntu in Windows has access to the hardware. I use ext2fsd to browse Linux partitions from Windows by mounting with a drive letter. I've not used write mode much, but it works very well when a partition is mounted as read-only. – AFH Nov 9 '18 at 21:12
  • Not sure about Bash on Windows not being able to use fdisk, but I know WSL's file system is a virtual one built inside Windows' filesystem. So I doubt mounting it in real linux would be easy, and it may not be possible (yet?), but if you're looking to see the files in there, be careful not to edit/create things (yet?) as it breaks things, but you can view thing as described in answers to this question on Ask Ubuntu: Where is the Ubuntu file system root directory in Windows Subsystem for Linux and vice versa? – 3D1T0R Nov 9 '18 at 21:44
  • I'd suggest not to change/edit WSL files from any Linux distribution. – Biswapriyo Nov 13 '18 at 17:22

The virtualized filesystem of Windows Subsystem for Linux is inside a .VHD file which can't be found by fdisk, but it can be connected to from within Linux Mint, as illustrated for multiple differing approaches, within the answers at https://askubuntu.com/questions/295155/how-do-i-mount-vhd-file. The more direct method requires Virtualbox and its Fuse subsystem:

sudo apt-get install virtualbox
sudo mkdir /mnt/vhd-disk/
sudo vdfuse -f disk.vhd /mnt/vhd-disk/
sudo mount -o loop  /mnt/vhd-disk/Partition1 /mnt/partition1
  • Why do you mention VHD file? OP installed Linux Mint as a dual boot. – Biswapriyo Nov 10 '18 at 9:26
  • He wants to access the files of Windows Subsystem for Linux. – K7AAY Nov 11 '18 at 4:56
  • And WSL isn't also installed in VHD. – Biswapriyo Nov 11 '18 at 5:02

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.