Team OS : Your Only Destination To Custom OS !!

Welcome to TeamOS Community, Register or Login to the Community to Download Torrents, Get Access to Shoutbox, Post Replies, Use Search Engine and many more features. Register Today!

Tech News Access Linux filesystems in Windows and WSL 2

Starting with Windows Insiders preview build 20211, WSL 2 will be offering a new feature: wsl --mount. This new parameter allows a physical disk to be attached and mounted inside WSL 2, which enables you to access filesystems that aren’t natively supported by Windows (such as ext4).

So, if you’re dual booting with Windows & Linux using different disks, you can now access your Linux files from Windows!

Getting started
To mount a disk, open a PowerShell window with administrator privileges and run:

wsl --mount <DiskPath>
To list the available disks in Windows, run:

wmic diskdrive list brief
To unmount and detach the disk from WSL 2, run

wsl --unmount <Diskpath>
The disks paths are available under the ‘DeviceID’ columns. Usually under the \\.\\\.\PHYSICALDRIVE* format. Below is an example of mounting a specific partition of a given hard disk into WSL and browsing its files.




terminal with wsl text

Accessing these files with File Explorer
Once mounted, it’s also possible to access these disks through the Windows explorer by navigating to \wsl$ and then to the mount folder.



Accessing an EXT4 partition with file explorer

Limitations
By default, wsl --mount attempts to mount the disk as ext4. To specify a filesystem, or for more advanced scenarios, check out Mount a disk in WSL 2.

Also please note that this feature comes with the limitation that only physical disks can be attached to WSL 2. At this time, it’s not possible to attach a single partition.
 

papasmurf879

Member
Downloaded
9.3 GB
Uploaded
6.3 GB
Ratio
0.68
Seedbonus
0
Upload Count
0 (0)
Member for 5 years
how do we find an iso?
 

SynkOptik

Member
Downloaded
143.3 GB
Uploaded
5.2 TB
Ratio
37.38
Seedbonus
641,089
Upload Count
0 (0)
Member for 6 years
how do we find an iso?
Not sure. I found this however:
 
Top