Home » Questions » Computers [ Ask a new question ]

How to read ext4 partitions on Windows?

How to read ext4 partitions on Windows?

Is there a way to read ext4 partitions from Windows? If so, what can I do?

Asked by: Guest | Views: 531
Total answers/comments: 4
bert [Entry]

"WARNING
According to multiple reports, it does not work on Windows 10 version 1909 and later

EXT2FSD works for reading ext4 filesystems, though not all of ext4's capabilities are supported.
After installing set a letter to each Linux drive (see screen-shot) and then restart the application. After that Windows Explorer will show the Linux partitions as any other partition."
bert [Entry]

"WSL2 on Windows 10 Build 20211

Windows allows now to mount physical disks using the Windows Subsystem for Linux 2 (WSL).

For people who are not familiar with WSL2:

... Windows Subsystem for Linux is a compatibility layer for running Linux binary executables natively on Windows 10 and Windows Server 2019. In May 2019, WSL 2 was announced, introducing important changes such as a real Linux kernel, through a subset of Hyper-V features. ...

find more on Wikipedia

The Windows 10 WSL2 now supports a mount command for linux filesystems called wsl.

First of all you have to install WSL2 on your windows10+ release. I recommend to simply follow the microsoft installation guide (note the minimum version required).

The following steps are taken from the microsoft's homepage docu wls2-mount-disk :

Identify the disk

Open a powershell (or something else) and type

wmic diskdrive list brief

The disks paths are available under the 'DeviceID' columns. Usually under the \.\PHYSICALDRIVE* format.

List and select the partitions to mount in WSL2

Note your disk to mount and enter:

wsl --mount <DiskPath> --bare

Now the disk is available to the layer and you can use the common linux command

lsblk

as you know well from linux systems.

Mount the selected partitions

Identify your partitons and mount it using the following command

wsl --mount <DiskPath> --partition <PartitionNumber> --type <Filesystem>

If you ommit the --partition flag an ext4 filesystem will be choosen. Commands like help wsl or cat /proc/filesystems will give you more information about the options.

Access the disk content

Once mounted, the disk can be accessed under the path pointed to by the config value: automount.root. The default value is /mnt/wsl .

From Windows, the disk can be accessed from File Explorer by navigating to: \\wsl$\\<Distro>\\<Mountpoint> (pick any Linux distribution).

Unmount the disk

To unmount and detach the disk run:

wsl --unmount <DiskPath>"
"WSL2 on Windows 10 Build 20211

Windows allows now to mount physical disks using the Windows Subsystem for Linux 2 (WSL).

For people who are not familiar with WSL2:

... Windows Subsystem for Linux is a compatibility layer for running Linux binary executables natively on Windows 10 and Windows Server 2019. In May 2019, WSL 2 was announced, introducing important changes such as a real Linux kernel, through a subset of Hyper-V features. ...

find more on Wikipedia

The Windows 10 WSL2 now supports a mount command for linux filesystems called wsl.

First of all you have to install WSL2 on your windows10+ release. I recommend to simply follow the microsoft installation guide (note the minimum version required).

The following steps are taken from the microsoft's homepage docu wls2-mount-disk :

Identify the disk

Open a powershell (or something else) and type

wmic diskdrive list brief

The disks paths are available under the 'DeviceID' columns. Usually under the \.\PHYSICALDRIVE* format.

List and select the partitions to mount in WSL2

Note your disk to mount and enter:

wsl --mount <DiskPath> --bare

Now the disk is available to the layer and you can use the common linux command

lsblk

as you know well from linux systems.

Mount the selected partitions

Identify your partitons and mount it using the following command

wsl --mount <DiskPath> --partition <PartitionNumber> --type <Filesystem>

If you ommit the --partition flag an ext4 filesystem will be choosen. Commands like help wsl or cat /proc/filesystems will give you more information about the options.

Access the disk content

Once mounted, the disk can be accessed under the path pointed to by the config value: automount.root. The default value is /mnt/wsl .

From Windows, the disk can be accessed from File Explorer by navigating to: \\wsl$\\<Distro>\\<Mountpoint> (pick any Linux distribution).

Unmount the disk

To unmount and detach the disk run:

wsl --unmount <DiskPath>"
bert [Entry]

"ext4explorer

Ext4Explore is a program that allows Linux partitions to be browsed
from Microsoft Windows. It has a GUI which will be familiar to users
of Windows Explorer.

Ext4Explore Web Site
Features

Displays Windows Icons
Symbolic Links Displayed with 'Shortcut' Overlay
Follows Symbolic Links and Displays Correct File Information
Copy Files and Directories
Configurable Edit Context Menu Option"
bert [Entry]

"Ext2Fsd was common in the past, but it's usually outdated and constantly broken in newer Windows in my experience. You can also see that in many comments. There's a fork of it called Ext4Fsd

This is a branch of the Ext2Fsd project by Matt Wu where I try to implement support for metadata checksums and jbd2. I have also updated the project so it can be compiled with Visual Studio 2017 and Visual Studio 2019. This is work in progress. If you need a stable driver you should get the latest official release from http://www.ext2fsd.com.

You can try it at your own risk

Ext4Fsd is an ext2/3/4 file system driver for Windows (XP/Vista/7/8/10).
It's a free and open-source software, everyone can modify or distribute under GNU GPLv2."