From: Matt LaPlante Subject: Re: Mounting Ext3 with Ext4 Date: Thu, 21 May 2009 00:37:11 -0400 Message-ID: References: <4A14ABAC.7040901@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-ext4@vger.kernel.org To: Eric Sandeen Return-path: Received: from ey-out-2122.google.com ([74.125.78.26]:8187 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750782AbZEUEhL convert rfc822-to-8bit (ORCPT ); Thu, 21 May 2009 00:37:11 -0400 Received: by ey-out-2122.google.com with SMTP id 9so262646eyd.37 for ; Wed, 20 May 2009 21:37:11 -0700 (PDT) In-Reply-To: Sender: linux-ext4-owner@vger.kernel.org List-ID: On Wed, May 20, 2009 at 9:28 PM, Matt LaPlante wro= te: > On Wed, May 20, 2009 at 9:17 PM, Eric Sandeen wr= ote: >> Matt LaPlante wrote: >>> According to the Ext4 howto >>> (http://ext4.wiki.kernel.org/index.php/Ext4_Howto#Converting_an_ext= 3_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." =A0S= o >>> this means, if I'm reading it correctly, that a kernel built with e= xt4 >>> support should be able to mount and manage ext[234] filesystems. =A0= Is >>> that correct? =A0If so, are there any limitations on this support? >>> >>> I'm running Ubuntu Jaunty with some custom-built 2.6.29.4 kernels a= nd >>> grub2. =A0I seem to have no problem booting from ext4 disks, so the= ext4 >>> support is definitely there and functioning. =A0I had hoped the ext= 3 >>> support meant I could build the kernel with ext4 only and carry on = as >>> usual with my ext3 partitions. =A0Unfortunately doing so causes the= ext3 >>> partitions to fail to boot. =A0So... >>> >>> booting ext3 with ext3 in the kernel=3Dfine >>> booting ext4 with ext4 in the kernel=3Dfine >>> booting ext3 with ext4 (only) in the kernel=3Dnot 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 ini= trd? > > ext4 was compiled in directly, it was not a module (this wasn't an > ubuntu kernel; it was stock). =A0I 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=3Dext4 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? > >> >> -Eric >> > -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html