Access Ubuntu partition from Windows sub-system
Solution 1:
is it possible to access the EXT4 partition from it?
It does not appear that WSL can access any partition that Windows itself cannot access. It additionally appears to be limited to only NTFS partitions mounted by the system itself. This means network shares wouldn't be accessible even if they were using the NTFS file system.
This is supported by the following statements:
WSL queries system-wide drives for DriveFS; letter mounts that are per-user (like some network maps, or Paragon's ext4fs driver for Windows) aren't picked up.
One of the WSL developers confirmed this was the case.
You are mostly correct. Currently we only support fixed NTFS volumes.
How to enter the ext4 partition
It appears that while this information is correct for Windows 10 1703 and below starting with Windows 10 1709 it should be possible.
In the latest Windows Insider build, 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.
File System Improvements to the Windows Subsystem for Linux
Since the partition already exists on the drive, you should be able to mount it, like you would any other partition in Linux. However, based on the information and examples I found, it might not be possible because Windows itself wouldn't know how to handle the EXT4 partition.
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
The following question is related to this topic Windows 10 Ubuntu Bash Shell: How Do I Mount Other Windows Drives?, and while I have not pulled anything directly from it, it still is related to the subject of mounting volumes from within WSL.
Solution 2:
Yes, you can. I regularly use ext2fsd to access ext4 volumes from Windows. Mostly my requirement is for read access, which is how I configure it, and it has worked flawlessly.
I have occasionally tested write access without noticing problems, but I have not used it enough to vouch for its reliability.
The SourceForge link describes it as A Linux ext2/ext3 file system driver for Windows, and it certainly reads ext4 volumes with no problems whatever, but I won't rely on using it for write access until I have either tested it a lot more or seen some reassurances that ext4 is supported.