358

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

4
  • 11
    Try Linux Reader by Diskinternals, it's the best tool I have found that really works well. Unlike Ext2Fsd, Ext2Read or Ext4Explorer which don't even give you basic information like how many files you have when you open up a folder.
    – Samir
    May 24, 2013 at 17:24
  • @Samir Linux Reader does not work at all under Windows 10. Cannot open by itself (inside list of drives) and when trying to mount under drive letter, throws a lot of nags about the need of purchasing pro version and mounts a drive that has only one file on it, called "Storage" in size of entire disk.
    – trejder
    Sep 4, 2020 at 18:15
  • 11
    In 2020, it is now possible to access Linux filesystems with WSL: devblogs.microsoft.com
    – hlg
    Dec 18, 2020 at 11:46
  • @trejder: yes, I can reproduce this when trying to mount an image. But simply accessing an ext4 partition on a local drive works fine for me in Diskinternals LinuxReader on Windows 10 (in the free version, and I don't get any nagging about pro).
    – summerrain
    Jan 26 at 20:08

11 Answers 11

101

Ext2Read works well. It can also open & read disk images ( eg: Wubi disk images)

Ext2Read is an explorer like utility to explore ext2/ext3/ext4 files. It now supports LVM2 and EXT4 extents. It can be used to view and copy files and folders. It can recursively copy entire folders. It can also be used to view and copy disk and file

alt text

16
  • 4
    There are several reviews on the site of users complaining about virus infection. Ad-Aware reported it as infected to me. I'll do some more testing on my side and report this to project's mailing list. As for the report, it seems that Anubis is down at the moment. The PDF version of the report is here. It clearly shows where the virus is poking.
    – AndrejaKo
    Sep 13, 2010 at 17:47
  • 2
    Here are results of VirusTotal and Anubis (from a clean system). To me it looks like it's poking around in registry where is shouldn't be poking around.
    – AndrejaKo
    Sep 13, 2010 at 18:11
  • 3
    On the other hand here are VirusTotal results for previous version and Anubis results for previous version. The poking around the registry could come form the crash. I'm still not sure what to make of it.
    – AndrejaKo
    Sep 13, 2010 at 22:47
  • 42
    It doesn't support removable devices. Try putting a SD card with an Ext4 partition on it inside a SD card reader and try reading it with this software. It won't work. It only supports internal HDD devices. For external and removable, get Linux Reader by Diskinternals.
    – Samir
    May 24, 2013 at 16:35
  • 7
    Newest release of ext2read/ext2explore is also infected so be careful while downloading this software. Take a look at this VirusTotal report
    – JNLK
    Dec 15, 2016 at 12:33
94

DiskInternals Linux Reader

This program plays the role of a bridge between your Windows and Ext2/Ext3/Ext4, HFS and ReiserFS file systems.

Linux Reader Website

Features

  1. Integrated with Windows Explorer
  2. Reader for Ext2/3/4, ReiserFS, Reiser4, HFS, HFS+, FAT, exFAT, NTFS, ReFS, UFS2
  3. Can create and open disk images
  4. Freeware

Screenshot showing example usage of DiskInternals Linux Reader

5
  • 5
    This does work to browse even large partitions of 500GB on an MBR partitioned disk, including ext4. However it's only a recovery (copy to another partition) tool, with preview of files but no way to open them.
    – RichVel
    Apr 30, 2015 at 6:13
  • 2
    Looks like we can only read files this way. We can not copy new files to ext4 drive thi way Mar 19, 2018 at 19:10
  • Didn't work for me for a SD-card, ext2read did though.
    – Lennart
    Apr 14, 2018 at 17:16
  • Does not work at all under Windows 10. Cannot open by itself (inside list of drives) and when trying to mount under drive letter, throws a lot of nags about the need of purchasing pro version and mounts a drive that has only one file on it, called "Storage" in size of entire disk.
    – trejder
    Sep 4, 2020 at 18:13
  • This works for me on Windows 11. But Ext2Read does not.
    – shmu
    Jul 20, 2022 at 18:28
56

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.

setting a letter to a Linux drive

26
  • 2
    I wanted to recommend the same app, but I was put off by the comments. If it worked for you, edit your response to let the OP know it works. Positive feedback on an app is important.
    – alex
    Sep 8, 2009 at 6:15
  • 3
    It apparently works if the ext4 was created without the extent option. See soluvas.com/…
    – harrymc
    Nov 15, 2009 at 8:37
  • 4
    In Windows 7: I see no features missing in ext4. All options available in the Windows Explorer. -- what ext4 capabilities are you referring to?
    – user162573
    Mar 8, 2016 at 20:17
  • 3
    This program doesn't work on Windows 10 Version 1607 Mar 17, 2017 at 0:45
  • 13
    As of Windows 10 version 1909, this doesn't appear to work. After I mount a ext4 partition and is assigned a drive letter, double-clicking the drive says that I have to Format it first (which, of course, I don't want to do). :(
    – NYCeyes
    Jan 12, 2020 at 3:05
47

WSL2 on Windows 10 Build 20211

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

However, there is a limitation with this approach as noted in the Microsoft documentation. For convenience, this limitation is noted here:

  • At this time, only entire disks can be attached to WSL 2, meaning that it's not possible to attach only a partition. Concretely, this means that it's not possible to use wsl --mount to read a partition on the boot device, because that device can't be detached from Windows.

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>
    
5
  • 7
    wsl --mount option is only available to those using Windows 10 Build 20211, which is in the Insiders update channel as of the time of the writing (according to docs.microsoft.com/pt-br/windows/wsl/wsl2-mount-disk)
    – Dinei
    Apr 18, 2021 at 4:29
  • you are right - it's the insider version, however it will be soon implemented in the standard option.
    – abu_bua
    Apr 18, 2021 at 18:28
  • 5
    Please specify this as one of the first points in your answer if you don't want users to go down the The disk is in use or locked by another process rabbit hole after spending an ungodly amount of time getting WSL2 running. Quote from the MS WSL doc, Limitations: At this time, only entire disks can be attached to WSL 2, meaning that it's not possible to attach only a partition. Concretely, this means that it's not possible to use wsl --mount to read a partition on the boot device, because that device can't be detached from Windows.
    – niraami
    Oct 20, 2021 at 11:39
  • 2
    @abu_bua define soon now its the end of year and there is still no non-insider version
    – aldr
    Nov 20, 2021 at 11:56
  • What is the underlying of wsl2 shared storage? CIFS? It's faster now? May 25, 2022 at 1:42
34

Well not really a solution, but I use VirtualBox, use it as a bridge.

6
  • 4
    In windows add a raw disk, install a linux guest OS, add a shared folder, then you can read/write ext4 in virtualBox.
    – Kaizoku
    Dec 24, 2009 at 14:10
  • 9
    how would one add a raw disk?
    – Babu
    May 17, 2010 at 5:33
  • 27
    elaboration of the answer would help
    – Anwar
    Dec 9, 2014 at 13:08
  • 2
    @Anwar Lifehacker has a tutorial on this, see lifehacker.com/how-to-dual-boot-and-virtualize-the-same-partition-on-y-493223329
    – Ragnar123
    Jul 21, 2015 at 11:49
  • 1
    VirtualBox's documentation on raw disks: virtualbox.org/manual/ch09.html#rawdisk
    – Warty
    Oct 13, 2015 at 7:53
33

There is now another solution: Paragon ExtFS for Windows, which acts as a file system driver and so you don't need to use a specialized program to access your files.

From the website:

  • Fast and easy read/write access to Ext2 / Ext3 / Ext4 under Windows
  • The only solution with Ext4 read - write support!
  • Easy-to-install and supports Windows 8 / 7 / Vista / XP

edit 2015-04-06 you might want to stick to read files off Linux - there have been anecdotal reports of file system corruptions when writing files to ext4 partitions using Paragon

7
  • I had never seen it before, but seems solid. I'm testing it now. Jun 12, 2014 at 13:53
  • 14
    Or so I thought before getting my partition corrupted. Apparently I'm not the only one. hecticgeek.com/2014/02/extfs-windows-corrupts-ext4-windows-8
    – Alicia
    Apr 1, 2015 at 18:32
  • 3
    Note that this software is for personal use only. Sep 24, 2015 at 18:46
  • 9
    Just used it, I did set to "read-only", but still got the disk corruption. Going back to ext2fs, take extreme care when using this.
    – Adversus
    Nov 4, 2016 at 8:50
  • 5
    @Adversus knows whats up. Do not use this. I too suffered disk corruption and trying to help them out by providing logs and such yielded one of the worst support conversations I have ever had. Mar 26, 2017 at 20:28
9

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

  1. Displays Windows Icons
  2. Symbolic Links Displayed with 'Shortcut' Overlay
  3. Follows Symbolic Links and Displays Correct File Information
  4. Copy Files and Directories
  5. Configurable Edit Context Menu Option

enter image description here

2
  • 1
    It doesn't support EFI partitions! Sep 9, 2014 at 20:38
  • I tried the latest version with Windows 10 and a USB with a ext4 formatted partition. The program only reported "No linux partitions found." I guess Windows 10 is a at present.
    – will
    Oct 2, 2018 at 2:42
5

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.

2

If you want to dual boot Ubuntu (or any Linux-based OS) with Windows and read ext3/ext4 filesystem, you can use Ext2FSD. Although you may need to take special steps as explained below.

I’ve successfully used Ext2fsd on Windows 7 to read my ext4 (!) filesystem this way.

For those interested, more detailed how-to is here: Read ext3/ext4 Partition from Windows 7:

Originally Posted by berm0o0da on August 29, 2010 :

The newest version of Ext2Read open source software can read normal Ext4 filesystems from Windows, even with ‘extents’ feature bit enabled! Please share your experience with this software in the comments.

enter image description here

If you use Windows 7 and want to dual-boot Ubuntu (or another Linux-based operating system), you’ll want to be able to read Ubuntu files from Windows 7 or Windows Server 2008 R2.

From Ubuntu Karmic Koala 9.10 ext4 filesystem uses by default, and previous versions use ext3 and ext2 filesystems. There are several good options to read and write ext2 filesystems from Windows systems, but ext3 or ext4 support is an entirely different scenario.

enter image description here

I tried three different software to read my ext4 partition: Ext2fsd, Ext2IFS, and DiskInternal Linux Reader. Ext2IFS fails to mount my ext4 partition due to unknown feature bit AND because my partition has inode size of 256 (Ext2IFS only supports inode size 128). DiskInternal Linux Reader apparently tries to scan my harddisk forever.

With Ext2fsd, I’ve successfully accessed my ext4 filesystem from Windows 7. Here I’ll show you the steps to make it happen:

  1. When creating/formatting the ext4 filesystem, make sure to add -O ^extent which means disabling the “extent” feature bit. The following steps will not work if your ext4 filesystem still has “extent” feature enabled. ext2 and ext3 partitions should be fine.
  2. Download ext2fsd here.
  1. Right-click the downloaded file and click Properties. Set the compatibility mode to “Windows Vista Service Pack 2″ and check “Run as administrator”.
  2. Run the ext2fsd installer. During install, I recommend you uncheck the “enable write access” feature to safeguard against losing data in your Linux partitions.
  3. Restart Windows 7.
  4. Run the Ext2 Volume Manager from Start Menu.

Now you should be able to mount your Linux ext2/ext3/ext4 partitions from Windows 7 and read the files without any trouble.

These steps should also work on Windows Vista, Windows Server 2008, Windows Server 2003, and Windows XP, only that you will not need to enable compatibility mode (step 3).

note : You should run this program as an administrator. Use it and enjoy 😉

Hope this helps!

1
  • Why all the downvotes on this answer? Seems super weird given how thorough and how correct it looks. Makes me skeptical though seeing -3 on it, with it greyed out and hidden by default. Jul 26, 2019 at 8:35
1

DiskGenius is available as a free, versatile partition manager, running under Windows OS, up to and including Windows 10 v. 1909, that includes the ability to read extn (i.e., ext, ext2, ext3 & ext4)partitions. It allows full access to files and folders in those partitions. (There are also commercially licensed versions, but for the use described, the free versions should be sufficient.)

It also provides access to virtual disks created by some disk imaging software, such as Macrium Reflect. Reflect enables one to mount a disk image as a virtual disk, but browsing the image can only be done for file systems for which Windows has drivers. However, the mounted image can be explored in DiskGenius.

[Sadly, Ext2Fsd does not work on my current version of Windows, and Ext2Fsd has not been updated in years. It would have been nice to add drivers directly to Windows OS.]

7
  • 1
    This is NOT free.
    – Phill
    Jul 9, 2020 at 13:54
  • @Phill, There are currently 3 versions of DiskGenius: Free, Standard and Professional. For the use described, free is sufficient. See diskgenius.com/editions.php The paid versions have additional features, such as file recovery. Jul 9, 2020 at 18:46
  • 3
    If you want to copy a 1gb file (not recover it) you need the pro version. So it's not free. Not a good solution for just being too lazy to boot into linux and move a file and boot back into windows.
    – Phill
    Jul 10, 2020 at 4:11
  • @Phil, your comment does not apply to the question: simply how to read ext4 files from Windows. No mention of length, nor even access to Linux. Jul 10, 2020 at 16:38
  • 4
    So “read” is “I can see the file exists” and that’s it. No ability to open the file, copy, move, etc. Just see it exists?
    – Phill
    Jul 12, 2020 at 0:54
0

If you have access to a raw ext4 image and want to read it without mounting it you can use https://github.com/nlitsme/extfstools (This will work on low privilege (which can not mount things) linux enviroments as well). It does the job of reading images directly, that means it will read EXT4 filesystems, if you already have the raw data readable somewhere, it will not do the job of reading the raw data hard drive or SD card directly, it is a commandline utility. (This means it can read your_ext4.img but it won't read raw data directly from the hard drive, this can be useful to you if you have qcow2 images or virtual machine images you can read on your filesystem normally.) If you can somehow dump sd card contents into an image, and if you can dump an ext2/3/4 partition, this will work!

That being said, if you already have the image, you could just use 7zip.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .