From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XwYzP-0004Ya-4l for ptxdist@pengutronix.de; Thu, 04 Dec 2014 17:10:47 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1XwYzP-0002MA-3U for ptxdist@pengutronix.de; Thu, 04 Dec 2014 17:10:47 +0100 Date: Thu, 4 Dec 2014 17:10:47 +0100 From: Michael Olbrich Message-ID: <20141204161047.GC16181@pengutronix.de> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [ptxdist] Ext2 root file system above 4GB Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, On Tue, Dec 02, 2014 at 12:38:37PM +0000, Danny wrote: > Our system platform is recently upgraded. Before the upgrade we were using > a 1GB flash disk with 2 partitions of 400MB each (double partition for > software upgrades). The new platform has a 16GB disk and it would be nice > if we could increase the 400MB partitions to 6GB. > > This is easy to configure in PTXdist using the configuration (image > creation -- generate images/root.ext2 and generate images/hd.img). The > root.ext2 size is increased to 6GB (6.291.456 bytes). The hd image > partitions are changed to fit the double partitions. > > Creating the 6GB image is causing some problems. The first issue is the > inodes from ext2. The first error is "Creating root.ext2 ....... sysroot- > host/bin/genext2fs: couldn't allocate an inode (no free inode)". After > forcing more inodes the following error is seen: "Running e2fsck on > root.ext2...make: *** [images/root.ext2] Error 1". The image seems > corrupted. > > The creation of the partition seems to work fine up to 4GB. A few MB after > this the image creation fails. Searching the internet got me to the > following patch for genext2fs: > http://sourceforge.net/p/genext2fs/mailman/message/29050966/ > > Does someone have the same issues?? Is patching the genext2fs the correct > solution? I don't know these patches, so I cannot comment on any possible issues. I don't think there is another solution right now. Future versions of mke2fs will support creating filesystems with content. I don't know when this will be available though. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de