filesystems - How to copy the files from my Linux-formatted external drive to Windows?

04
2013-10
  • Erel Segal

    My Linux machine crashed, but all the files are backed up on a USB-based external drive. Problem is, it's an ext2 file system, so my other machine, which is a Windows XP machine, cannot read it (it says that it's unformatted).

    After reading How to read external USB hard drive formatted ext3 from Windows 7? , I tried Ext2 IFS, but it didn't work because:

    C:\download>mountdiag.exe E:
    The volume has an Ext2/Ext3 file system, but the Ext2 IFS 1.11 software did not
    mount it because there is at least one incompat feature flag set. The Ext2
    IFS software does not implement:
    * needs_recovery *
    Here we have an Ext3 file system which has transactions left in its journal. A
    pure Ext2 driver must not access such a volume which is in that state (to
    prevent data loss!).
    You may solve it by mounting it on Linux (which has a kernel with Ext3
    support). Be sure that you cleanly dismount it, before you shutdown Linux.
    After that the Ext2 IFS software should be able to access the volume.
    The volume has an Ext2/Ext3 file system, but the Ext2 IFS 1.11 software did not
    mount it because the file system has an inode size unequal to 128 bytes (inode
    size: 256 bytes).
    The only way to solve it is to back up the volume's files and format the file
    system: give the mkfs.ext3 utility the -I 128 switch. Finally, restore all
    backed-up files.
    After that, the Ext2 IFS software should be able to access the volume.
    

    Of course I don't want to format my backup drive.

    I installed coLinux, and it runs, but I have no idea how to access the external drive from it.

    Any other options?

  • Answers
  • Izzy

    Boot from a Linux Live CD (e.g. Knoppix or Ubuntu) on your Windows machine, and attach the external drive. Most of those Live systems (Knoppix for sure out-of-the-box) can deal with Ext2FS (naturally) and NTFS read/write. So you can copy the data to your NTFS partition from the running live system.

  • Logman

    Use a linux live cd and mount both hard drives, and copy them across. A rescue disk or one of the operating systems would do... small download for SystemRescueCD or Parted Magic...


  • Related Question

    linux - Should I use VFAT or ext3 for a 1Tb external usb hard drive?
  • ihuston

    I have a 1 Tb USB external hard drive which I want to use to backup data from my home and office desktops (both running Linux).
    Should I format the drive (possibly split into a few partitions) as vfat or ext3?

    I don't anticipate using the drive with Windows very often so this is not a primary concern. The main thing holding me back from just using ext3 is the problems you can have when two different users (home and work accounts) try to access each others data.
    Is there any way to mount an ext3 drive with user id mapping?


  • Related Answers
  • tj111

    Definitely ext3/4 over VFAT.

    • Ext3/4 are journaling file systems, which means no fragmentation issues.
    • Read/writes will be significantly faster with Ext.
    • VFAT has a 4 GB maximum file-size, which can come back to haunt you when you need to store a large file on it after you already have it loaded up with data.
  • Ludwig Weinzierl

    If you only want to access it from linux I'd go with ext3 at any rate.

    The issues with VFAT are that you will lose much of the overall capacity due to fragmentation and it access will be noticeably slower.

    For the permissions, that has not been much of a problem for me so far. Either I don't care about the permissions, then I make the files world readable on my USB or eSATA drives or I do care then I tar the stuff.