Just a few months in the past, Home windows 10 Insider Preview Build 19603 added assist for full “Linux file integration” within the File Explorer app, which lets you entry the recordsdata associated to the Linux distros you’ve gotten put in on Windows Subsystem for Linux 2 (WSL2).
In contrast to Linux file integration, Microsoft has now introduced one other new function that allows you to mount and entry bodily disks formatted in Linux filesystem like EXT4 in WSL 2. The function is now accessible within the newest release of Home windows Insider Preview Construct 20211.
Utilizing a brand new parameter
wsl --mount, you possibly can connect a Linux format disk and entry its content material which is obtainable in WSL 2. Right here, WSL 2 mounts the system as ext4 filesystem by default, which you will know that Home windows doesn’t assist natively.
Nevertheless, you may as well specify different filesystems to mount disks by operating the command:
wsl --mount <DiskPath> -t <FileSystem>
In the event you’re not well-versed with the command line, you may as well entry the Linux recordsdata on the Linux disk from Home windows 10 (inside WSL 2) graphically by means of File Explorer (beforehand referred to as Home windows Explorer) app. You may navigate to wsl$ path after which to the mount folder.
The function could seem thrilling, nevertheless it additionally comes with limitations. For example, as of now, it’s not doable to connect a single partition or mount ext4 partitions which can be on the identical bodily disk as Home windows OS.
It’s because the brand new enchancment is just restricted to separate bodily disks. Additionally, you can’t connect USB flash drives although it helps USB disks.
Now, if you wish to get began with mounting a Linux filesystem in WSL 2, first replace your Home windows to the most recent Construct 20211 after which take a look at the official docs.
The publish Linux Filesystem Like EXT4 Now Accessible In Windows WSL 2 appeared first on Fossbytes.