How to read ext4 partitions in Windows?

172,633

Solution 1

There was a utility called ext2read to browse Ext partitions in Windows (including Ext4 partitions) which may not work anymore as mentioned in the comment below by @heynnema and could corrupt your partitions.

The project isn't updated since 2012

Solution 2

ext4 has some support through the older ext2* projects. btrfs has no current Windows support. New filesystems are always going to have a period where there's no support on another operating system and, frankly, that's going to suck.

It should also be mentioned that projects that try to read the filesystem into another system are always going to give you an increased risk of noshing up your partition.

So with that in mind, there is one solution that would take perhaps 30 minutes to an hour to set up that would give you near-native speed, any Linux partition support and would be just as safe (or very close to) as mounting it from Linux: Virtualise!

Yeah I'm suggesting you give up 300megs of RAM and a gig of disk space to run Ubuntu Server from within Windows. Most modern virtualisation systems like Virtualbox and VMWare allow you to pass the VM an entire disk or partition so that's what you'd do. Mount it from within virtual-ubuntu, install samba, share the ubuntu-mounted disks and mount the shares from within Windows.

It sounds like a lot of overhead but Ubuntu server is pretty slick and it won't need much in the way of resources. Once installed, you could probably get away with 150megs of RAM for it.

Solution 3

If you're talking about a dual-boot system, Windows cannot natively read Linux-formated partitions. Therefore, you have two options.

Recommended solution - Shared storage

Create a NTFS partition that will hold the files that you wish to be accessible from both Windows and Ubuntu, and store your files there.

This is the recommended, safe solution.

Alternate solution - Third-party software

Software is available for Windows that allows you to read and write to Linux partitions, to some extent.

One example of such software is Ext2Fsd. Ext2Fsd has limited EXT4 support. By default, it will load the filesystems in read-only mode, but you can enable read-write mode if you really want to. This is, however, not recommended.

  • EXT4 partitions mounted using Ext2Fsd will be displayed as EXT3. This is normal.

Note that these features of the fourth extended filesystem are unsuported:

  • Journal: log-based operations, external journal
  • Extent: size truncating & expanding, file deletion
  • Extended Attributes: ACL support

  • Note: an error may be displayed after installing Ext2Fsd; the application still works.

After installation, restart your computer and open Ext2 Volume Manager from the Start menu.

This is where you assign or change the drive letters for your Linux partitions, mount and unmount them, or perform other operations.

If you want to enable write support for an EXT4 filesystem, select Ext2 Management, uncheck the Mount volume in readonly mode box and then click Apply.

You can also select if you want your Linux partition to be automatically mounted on startup (you shouldn't use this option for USB drives and removable media).

Note: this solution is far from perfect and data corruption may occur on your Linux partition. Use this at your own risk!

Solution 4

To read ext4 you can use Ext2Fsd. It's a driver for Windows. The name suggest that it only work with ext2 and the site say that it work with ext2 and ext3 but last versions support ext4 too.

Solution 5

An alternative is to install CoLinux on the windows machine and set it up with a minimal system (enough to mount the filesystem in question) and Samba. Then just mount your FS, and share it to windows. Not exactly elegant, but works nicely and doesn't risk filesystem corruption due to faulty drivers.

If a CoLinux install from scratch is too much hassle, try AndLinux, which is CoLinux with an OS already good to go out of the box. Installs in twenty minutes. You'll still need to set up the mounting, but the filesystem shares should already be good to go.

Share:
172,633

Related videos on Youtube

htorque
Author by

htorque

Updated on September 17, 2022

Comments

  • htorque
    htorque over 1 year

    I have two questions on ext4:

    1. Is there currently a way to mount an ext4 partition in Windows (XP/Vista/7) to get basic read support?
    2. If not, are there any plans to support this someday?
    • Tachyons
      Tachyons about 12 years
    • The Aivons
      The Aivons about 12 years
      okey i understand that i have to do this whit ext2read but it opens and ti looks that i cant see any files
    • Dan Dascalescu
      Dan Dascalescu almost 8 years
      I think this question was unfairly closed, but there are great answers on SuperUser.com - How to read ext4 partitions on Windows?
    • thoroc
      thoroc over 6 years
      If you find yourself dropping by to get a solution on Windows 10, check the thread linked by @DanDascalescu
    • Boris Hamanov
      Boris Hamanov over 4 years
      Remove ext2fs/ext2read ASAP, it'll corrupt your Ubuntu partition. You can't read linux partitions from Windows, period. Create an extra NTFS partition if you wish to share files.
  • JanC
    JanC over 13 years
    Nice to know, I knew only about ext2/3 support for Windows. Unfortunately, this is not an IFS driver, so you can't mount a filesystem with it?
  • JanC
    JanC over 13 years
    You can find documentation about what IFS is on MSDN.
  • htorque
    htorque over 13 years
    Great, I tried ext2read some time ago but back then it didn't support extents. Works fine now. :-) As for the second part of my question: it was more about third party tools, not "Hey Linux guys, make this work". ;-) I shouldn't have asked about both filesystems - I'd be happy to mark your entry as answer but I still have no clue if there's something that allows me to read btrfs partitions in Winodws.
  • htorque
    htorque over 13 years
    I followed the instructions but it doesn't seem to work with Win 7 (well, the web page states it doesn't support Win 7 and ext4 extents).
  • Chakra
    Chakra over 13 years
    No problem. I havn't tried btrfs. Hopefully someone answers your question completely including the second part :-)
  • htorque
    htorque over 13 years
    I got an "unlikely" from #btrfs, so I guess we'll have to wait. :)
  • htorque
    htorque over 13 years
    Yes, that sounds like a good universal solution. However, for my ext4-read-only-case ext2read seems to work fine - plus, it's a portable one-file exe. :) Too bad I can't accept two answers. :(
  • Chakra
    Chakra over 13 years
    I hope that the wait will not be too long :)
  • Eliah Kagan
    Eliah Kagan almost 12 years
    The drive would have to be in a separate machine (or controlled by a separate VM) running Ubuntu (or some other OS that can access the partitions). If you install Ubuntu on a hard drive and set up a Samba server, then attach the hard drive to a computer running Windows, no Ubuntu OS will be running, no Samba server will be running, and no files will be accessible. When Windows accesses a Samba share, it's not reading from an ext2/3/4 or btrfs partition--the OS running on the server is accessing it to expose the share, and Windows is accessing the share.
  • sbtech
    sbtech almost 12 years
    You are correct if the drive with the partition is installed in the windows machine. But the question was if the partition could be mounted. And by mapping to separate machine it can be.
  • Eliah Kagan
    Eliah Kagan almost 12 years
    I don't think it's accurate to say that Windows is mounting the partition in that case. The Ubuntu system is mounting the partition and sharing its contents and the Windows system is accessing the share. Windows is not doing anything with the partition at all. Windows does not even know the partition exists--for all the Windows system knows, the partition's root may not be a mount point at all.
  • Adam Ryczkowski
    Adam Ryczkowski about 11 years
    I'd say it is definitely worth a try. It has a good chance for being much lighter than full virtualization. I just wonder by how much?
  • Nathan Osman
    Nathan Osman about 11 years
    And... you could just as easily use a lighter distro, such as PuppyLinux to conserve on RAM and/or disk space.
  • Dan Dascalescu
    Dan Dascalescu almost 8 years
    There is a problem with shared NTFS storage - all files will appear in Linux to be executable, because NTFS doesn't support the executable attribute.
  • fqdn
    fqdn over 7 years
    Depends on what you're doing with it. CoLinux is the linux kernel compiled as a windows executable, so memory can stay shared instead of eating a big chunk even if it has no immediate use for it. Also, there's no virtualization overhead. On old hardware, that's a big deal. On a modern processor with virtualization extensions it matters a lot less.
  • Vipin Verma
    Vipin Verma over 7 years
    working well with win10 :)
  • Ferroao
    Ferroao over 6 years
    I like this guide for your approach, which currently is the one that allows to write to the disk without errors. ubuntugeek.com/howto-access-ext3-partition-from-windows.html
  • thephpdev
    thephpdev over 5 years
    This doesn't work in Windows 10. Shows nothing. Same with all of the other suggested third party software. none of them detect any drives
  • Boris Hamanov
    Boris Hamanov over 4 years
    Remove ext2fs/ext2read ASAP, it'll corrupt your Ubuntu partition. You can't read linux partitions from Windows, period. Create an extra NTFS partition if you wish to share files.