How do I read disk formatted as ext4 under 9.10 from 8.04 LTS?
How do I read disk formatted as ext4 under 9.10 from 8.04 LTS?
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.
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.
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 ?
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)
Make sure the dist-upgrade does not produce any errors, such as 'unmet dependencies'. Then reboot system and test using mount.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
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.
Here is the version for amd64 architecture (64-bit).
This has now been tested (thanks to Kwill)
Make sure the dist-upgrade does not produce any errors, such as 'unmet dependencies'. Then reboot system and test using mount.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
Enjoy
Last edited by rusty149; October 27th, 2010 at 09:32 AM.
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.
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
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.
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.
Bookmarks