Mounting Ext3 with Ext4
According to the Ext4 howto
(http://ext4.wiki.kernel.org/index.php/Ext4_Howto#Converting_an_ext3_filesystem_to_ext4),
"It is possible to mount both ext3 (and ext2, in kernels 2.6.28 and later) filesystems directly using the ext4 filesystem driver." So this means, if I'm reading it correctly, that a kernel built with ext4 support should be able to mount and manage ext[234] filesystems. Is that correct? If so, are there any limitations on this support?
I'm running Ubuntu Jaunty with some custom-built 2.6.29.4 kernels and grub2. I seem to have no problem booting from ext4 disks, so the ext4 support is definitely there and functioning. I had hoped the ext3 support meant I could build the kernel with ext4 only and carry on as usual with my ext3 partitions. Unfortunately doing so causes the ext3 partitions to fail to boot. So...
booting ext3 with ext3 in the kernel=fine booting ext4 with ext4 in the kernel=fine booting ext3 with ext4 (only) in the kernel=not fine
Is this a problem or was it never intended to work?
Quoted 15 lines · Matt LaPlante
According to the Ext4 howto
(http://ext4.wiki.kernel.org/index.php/Ext4_Howto#Converting_an_ext3_filesystem_to_ext4),
"It is possible to mount both ext3 (and ext2, in kernels 2.6.28 and later) filesystems directly using the ext4 filesystem driver." So this means, if I'm reading it correctly, that a kernel built with ext4 support should be able to mount and manage ext[234] filesystems. Is that correct? If so, are there any limitations on this support?I'm running Ubuntu Jaunty with some custom-built 2.6.29.4 kernels and grub2. I seem to have no problem booting from ext4 disks, so the ext4 support is definitely there and functioning. I had hoped the ext3 support meant I could build the kernel with ext4 only and carry on as usual with my ext3 partitions. Unfortunately doing so causes the ext3 partitions to fail to boot. So...
Quoted 5 lines
booting ext3 with ext3 in the kernel=fine booting ext4 with ext4 in the kernel=fine booting ext3 with ext4 (only) in the kernel=not fine
Is this a problem or was it never intended to work?
It should work...
It'd be more helpful if you could include details on exactly how it failed, but if Ubuntu builds ext4 as a module, perhaps the initrd creation sees root as ext3 and doesn't bother to put ext4 in the initrd?
-Eric
Quoted 20 lines · Eric Sandeen
Quoted 19 lines · Matt LaPlante
According to the Ext4 howto
(http://ext4.wiki.kernel.org/index.php/Ext4_Howto#Converting_an_ext3_filesystem_to_ext4),
"It is possible to mount both ext3 (and ext2, in kernels 2.6.28 and later) filesystems directly using the ext4 filesystem driver." So this means, if I'm reading it correctly, that a kernel built with ext4 support should be able to mount and manage ext[234] filesystems. Is that correct? If so, are there any limitations on this support?I'm running Ubuntu Jaunty with some custom-built 2.6.29.4 kernels and grub2. I seem to have no problem booting from ext4 disks, so the ext4 support is definitely there and functioning. I had hoped the ext3 support meant I could build the kernel with ext4 only and carry on as usual with my ext3 partitions. Unfortunately doing so causes the ext3 partitions to fail to boot. So...
booting ext3 with ext3 in the kernel=fine booting ext4 with ext4 in the kernel=fine booting ext3 with ext4 (only) in the kernel=not fine
Quoted 7 lines
Quoted 1 line
Is this a problem or was it never intended to work?
It should work...
It'd be more helpful if you could include details on exactly how it failed, but if Ubuntu builds ext4 as a module, perhaps the initrd creation sees root as ext3 and doesn't bother to put ext4 in the initrd?
ext4 was compiled in directly, it was not a module (this wasn't an ubuntu kernel; it was stock). I can try to get a stack trace with netconsole if it gets far enough to function.
Quoted 3 lines
-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 25 lines · Matt LaPlante
Quoted 24 lines · Eric Sandeen
Quoted 15 lines · Matt LaPlante
According to the Ext4 howto
(http://ext4.wiki.kernel.org/index.php/Ext4_Howto#Converting_an_ext3_filesystem_to_ext4),
"It is possible to mount both ext3 (and ext2, in kernels 2.6.28 and later) filesystems directly using the ext4 filesystem driver." So this means, if I'm reading it correctly, that a kernel built with ext4 support should be able to mount and manage ext[234] filesystems. Is that correct? If so, are there any limitations on this support?I'm running Ubuntu Jaunty with some custom-built 2.6.29.4 kernels and grub2. I seem to have no problem booting from ext4 disks, so the ext4 support is definitely there and functioning. I had hoped the ext3 support meant I could build the kernel with ext4 only and carry on as usual with my ext3 partitions. Unfortunately doing so causes the ext3 partitions to fail to boot. So...
Quoted 5 lines
booting ext3 with ext3 in the kernel=fine booting ext4 with ext4 in the kernel=fine booting ext3 with ext4 (only) in the kernel=not fine
Is this a problem or was it never intended to work?
It should work...
Quoted 7 lines
Quoted 3 lines
It'd be more helpful if you could include details on exactly how it failed, but if Ubuntu builds ext4 as a module, perhaps the initrd creation sees root as ext3 and doesn't bother to put ext4 in the initrd?
ext4 was compiled in directly, it was not a module (this wasn't an ubuntu kernel; it was stock). I can try to get a stack trace with netconsole if it gets far enough to function.
It looks likes the magic touch was to add rootfstype=ext4 to the kernel command line. Prior to this the ext4 only kernel wasn't finding the disk, but with it attached it now appears to boot successfully. Maybe worth adding a note to the wiki?
Quoted 5 lines
Quoted 4 lines
-Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 4 lines · Matt LaPlante
It looks likes the magic touch was to add rootfstype=ext4 to the kernel command line. Prior to this the ext4 only kernel wasn't finding the disk, but with it attached it now appears to boot successfully. Maybe worth adding a note to the wiki?
Ah, that makes sense. Sure, please do add it. :)
-Eric
Quoted 4 lines · Matt LaPlante
It looks likes the magic touch was to add rootfstype=ext4 to the kernel command line. Prior to this the ext4 only kernel wasn't finding the disk, but with it attached it now appears to boot successfully. Maybe worth adding a note to the wiki?
This means that your initrd has "ext3" as the root filesystem type in /etc/fstab or similar. If the filesystem type is explicitly given as "ext3" then the ext4 driver will not try to mount it.
I suppose it might be reasonable to have a config option that adds the "ext3" and "ext2" filesystem types to the ext4 driver for cases like this where CONFIG_EXT2 and CONFIG_EXT3 (and module equivalents) are disabled.
Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.