Is there a way to read ext4
partitions from Windows? If so, what can I do?
-
11Try 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.– SamirMay 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.– trejderSep 4, 2020 at 18:15
-
11In 2020, it is now possible to access Linux filesystems with WSL: devblogs.microsoft.com– hlgDec 18, 2020 at 11:46
10 Answers
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
-
4There 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. Sep 13, 2010 at 17:47
-
2Here 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. Sep 13, 2010 at 18:11
-
3
-
42It 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.– SamirMay 24, 2013 at 16:35
-
6Newest release of ext2read/ext2explore is also infected so be careful while downloading this software. Take a look at this VirusTotal report– JNLKDec 15, 2016 at 12:33
DiskInternals Linux Reader
This program plays the role of a bridge between your Windows and Ext2/Ext3/Ext4, HFS and ReiserFS file systems.
Features
- Integrated with Windows Explorer
- Reader for Ext2/3/4, ReiserFS, Reiser4, HFS, HFS+, FAT, exFAT, NTFS, ReFS, UFS2
- Can create and open disk images
- Freeware
-
5This 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.– RichVelApr 30, 2015 at 6:13
-
2Looks 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
-
-
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.– trejderSep 4, 2020 at 18:13
-
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.
-
2I 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.– alexSep 8, 2009 at 6:15
-
3It apparently works if the ext4 was created without the extent option. See soluvas.com/…– harrymcNov 15, 2009 at 8:37
-
4In Windows 7: I see no features missing in ext4. All options available in the Windows Explorer. -- what ext4 capabilities are you referring to?– user162573Mar 8, 2016 at 20:17
-
3
-
12As of
Windows 10
version1909
, this doesn't appear to work. After I mount aext4
partition and is assigned a drive letter, double-clicking the drive says that I have toFormat
it first (which, of course, I don't want to do). :(– NYCeyesJan 12, 2020 at 3:05
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. ...
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 likehelp wsl
orcat /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>
-
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)– DineiApr 18, 2021 at 4:29 -
you are right - it's the insider version, however it will be soon implemented in the standard option.– abu_buaApr 18, 2021 at 18:28
-
5Please 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.– niraamiOct 20, 2021 at 11:39 -
2@abu_bua define soon now its the end of year and there is still no non-insider version– aldrNov 20, 2021 at 11:56
-
What is the underlying of wsl2 shared storage? CIFS? It's faster now? May 25, 2022 at 1:42
Well not really a solution, but I use VirtualBox, use it as a bridge.
-
4In windows add a raw disk, install a linux guest OS, add a shared folder, then you can read/write ext4 in virtualBox.– KaizokuDec 24, 2009 at 14:10
-
9
-
27
-
2@Anwar Lifehacker has a tutorial on this, see lifehacker.com/how-to-dual-boot-and-virtualize-the-same-partition-on-y-493223329 Jul 21, 2015 at 11:49
-
1VirtualBox's documentation on raw disks: virtualbox.org/manual/ch09.html#rawdisk– WartyOct 13, 2015 at 7:53
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
-
I had never seen it before, but seems solid. I'm testing it now. Jun 12, 2014 at 13:53
-
14Or 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– AliciaApr 1, 2015 at 18:32
-
3
-
9Just used it, I did set to "read-only", but still got the disk corruption. Going back to ext2fs, take extreme care when using this.– AdversusNov 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
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.
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
-
1
-
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.– willOct 2, 2018 at 2:42
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.
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.]
-
1
-
@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
-
3If 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.– PhillJul 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
-
4So “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?– PhillJul 12, 2020 at 0:54
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.
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.
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:
- 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.- Download ext2fsd here.
- Right-click the downloaded file and click Properties. Set the compatibility mode to “Windows Vista Service Pack 2″ and check “Run as administrator”.
- Run the ext2fsd installer. During install, I recommend you uncheck the “enable write access” feature to safeguard against losing data in your Linux partitions.
- Restart Windows 7.
- 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!
-
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