Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: reading ext4 from ext3

  1. #1
    Join Date
    Jan 2006
    Beans
    266
    Distro
    Xubuntu 20.04 Focal Fossa

    reading ext4 from ext3

    How do I read disk formatted as ext4 under 9.10 from 8.04 LTS?

  2. #2
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: reading ext4 from ext3

    You should be able to see it just like any other type of partition. I access ext4 partitions remotely, using either samba or nfs either utility does the translation so the partition type is irrelevant.

  3. #3
    Join Date
    Jan 2006
    Beans
    266
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: reading ext4 from ext3

    I tried reading the partition. It said that the partition is formatted as ext4 and can not be read.
    This was thru 8.04LTS.

    Also, ext2 IFS is unable to read the linux partitions after being formatted for 9.10. Any advice?
    Last edited by mosaic2s; November 4th, 2009 at 06:51 AM.

  4. #4
    Join Date
    Oct 2008
    Beans
    286
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: reading ext4 from ext3

    I have the same problem , I had hardy 8.04 installed but I can't read or mount ext4 (Lucid)
    "Partition is formatted as ext4 and can not be read"

    Anyone know how to enable ext3 hardy to read or mount ext4 ?

  5. #5
    Join Date
    Oct 2010
    Beans
    8

    Smile [Solved] Re: reading ext4 from ext3

    The best way is to upgrade the hardy kernel for ext4 support. I have tested this on a clean install (after standard updates) of Ubuntu 8.04 (ext3 32-bit) dual-booting Xubuntu 10.10 (ext4 32-bit). Upgrade Kernel to version 2.6.28. Architecture: i386 (32-bit)

    Code:
    sudo wget http://kernel.ubuntu.com/%7Ekernel-ppa/mainline/v2.6.28/linux-headers-2.6.28-020628-generic_2.6.28-020628_i386.deb
    sudo wget http://kernel.ubuntu.com/%7Ekernel-ppa/mainline/v2.6.28/linux-image-2.6.28-020628-generic_2.6.28-020628_i386.deb
    sudo wget http://kernel.ubuntu.com/%7Ekernel-ppa/mainline/v2.6.28/linux-headers-2.6.28-020628_2.6.28-020628_all.deb
    sudo wget http://gr.archive.ubuntu.com/ubuntu/pool/main/f/findutils/findutils_4.4.0-2ubuntu4_i386.deb
    sudo wget http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.9-4ubuntu6.2_i386.deb
    sudo wget http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-i686_2.9-4ubuntu6.2_i386.deb
    sudo dpkg -i ./libc6_2.9-4ubuntu6.2_i386.deb ./findutils_4.4.0-2ubuntu4_i386.deb
    sudo dpkg -i ./libc6-i686_2.9-4ubuntu6.2_i386.deb
    sudo dpkg -i ./linux-headers-2.6.28-020628_2.6.28-020628_all.deb
    sudo dpkg -i ./linux-headers-2.6.28-020628-generic_2.6.28-020628_i386.deb
    sudo dpkg -i ./linux-image-2.6.28-020628-generic_2.6.28-020628_i386.deb
    sudo rm ./linux-image-2.6.28-020628-generic_2.6.28-020628_i386.deb ./linux-headers-2.6.28-020628* ./libc6-i686_2.9-4ubuntu6.2_i386.deb ./libc6_2.9-4ubuntu6.2_i386.deb ./findutils_4.4.0-2ubuntu4_i386.deb
    
    sudo apt-get update && sudo apt-get dist-upgrade
    Make sure the dist-upgrade does not produce any errors, such as 'unmet dependencies'. Then reboot system and test using mount.

    If hardy (8.04) was installed last then the GRUB boot loader will be legacy version 1 and will not recognize ext4 OS. Here is all you need to know about GRUB2 http://ubuntuforums.org/showthread.php?t=1195275

    Let me know any of problems you encounter.

    Edit: This does not format the partitions. It adds support to mount ext4 drives. Hardy partition will still be ext3.
    Last edited by rusty149; October 18th, 2010 at 02:13 PM.

  6. #6
    Join Date
    Oct 2010
    Beans
    8

    Re: reading ext4 from ext3

    Here is the version for amd64 architecture (64-bit).
    This has now been tested (thanks to Kwill)

    Code:
    sudo wget http://kernel.ubuntu.com/%7Ekernel-ppa/mainline/v2.6.28/linux-headers-2.6.28-020628-generic_2.6.28-020628_amd64.deb
    sudo wget http://kernel.ubuntu.com/%7Ekernel-ppa/mainline/v2.6.28/linux-image-2.6.28-020628-generic_2.6.28-020628_amd64.deb
    sudo wget http://kernel.ubuntu.com/%7Ekernel-ppa/mainline/v2.6.28/linux-headers-2.6.28-020628_2.6.28-020628_all.deb
    sudo wget http://gr.archive.ubuntu.com/ubuntu/pool/main/f/findutils/findutils_4.4.0-2ubuntu4_amd64.deb
    sudo wget http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.9-4ubuntu6.3_amd64.deb
    sudo wget http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-i386_2.9-4ubuntu6.3_amd64.deb
    sudo wget http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.9-4ubuntu6.3_amd64.deb
    sudo dpkg -i ./libc6_2.9-4ubuntu6.3_amd64.deb ./findutils_4.4.0-2ubuntu4_amd64.deb
    sudo dpkg -i ./libc6-i386_2.9-4ubuntu6.3_amd64.deb
    sudo dpkg -i ./libc6-dev_2.9-4ubuntu6.3_amd64.deb
    sudo dpkg -i ./linux-headers-2.6.28-020628_2.6.28-020628_all.deb
    sudo dpkg -i ./linux-headers-2.6.28-020628-generic_2.6.28-020628_amd64.deb
    sudo dpkg -i ./linux-image-2.6.28-020628-generic_2.6.28-020628_amd64.deb
    sudo rm ./linux-image-2.6.28-020628-generic_2.6.28-020628_amd64.deb ./linux-headers-2.6.28-020628* ./libc6-i386_2.9-4ubuntu6.3_amd64.deb ./libc6_2.9-4ubuntu6.3_amd64.deb ././libc6-dev_2.9-4ubuntu6.3_amd64.deb ./findutils_4.4.0-2ubuntu4_amd64.deb
    
    sudo apt-get update && sudo apt-get dist-upgrade
    Make sure the dist-upgrade does not produce any errors, such as 'unmet dependencies'. Then reboot system and test using mount.

    Enjoy
    Last edited by rusty149; October 27th, 2010 at 09:32 AM.

  7. #7
    Join Date
    Feb 2009
    Location
    USA
    Beans
    3,186

    Re: reading ext4 from ext3

    ext4 support was first introduced in 9.04 as an experimental feature. Older kernels cannot read ext4. If you are trying to access that via a network like cariboo907 suggests, then it really doesn't matter. However, if you are talking about a different partition on the same machine (as in dual-boot), then rusty149's solution is your best bet.

  8. #8
    Join Date
    Oct 2008
    Beans
    7

    Re: reading ext4 from ext3

    I tried the 64bit update and found it also needed to update libc6-dev so I added the following after the lines with libc6-i386 in


    sudo wget http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.9-4ubuntu6.3_amd64.deb


    sudo dpkg -i ./libc6-dev_2.9-4ubuntu6.3_amd64.deb

    In my case for some unkown reason it didn't output a initrd.img so I had to reinstall kernel. That meant down loading it again (22M). So it might be a good thing to not do the:

    sudo rm ./linux-image-2.6.28-020628-generic_2.6.28-020628_amd64.deb ./linux-headers-2.6.28-020628* ./libc6-i386_2.9-4ubuntu6.3_amd64.deb ./libc6_2.9-4ubuntu6.3_amd64.deb ./findutils_4.4.0-2ubuntu4_amd64.deb

    line until you have checked.

    Once I booted the new kernel, updated fstab to take the ext4 partion, issued mount command and there it was.

    Many thanks to Rusty149

  9. #9
    Join Date
    Oct 2008
    Beans
    7

    Re: reading ext4 from ext3

    Sorry Rusty149,

    Didn't look close enough to see you had updated your script until I had posted. If I had I would not have posted the changes.

  10. #10
    Join Date
    Oct 2008
    Beans
    7

    Re: reading ext4 from ext3

    The file versions of some of the files have changed. You will need to look in:

    http://security.ubuntu.com/ubuntu/dists/

    To find the most recent version number.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •