Why genext2fs fails when requesting a large image?

Created by Ricardo Salveti on on 2010-07-30
Keywords:
genext2fs rootstock
Last updated by:
Ricardo Salveti on on 2010-07-30

With RootStock you can request the target image file to be any size you want, by giving the size with argument -i/--imagesize.

The problem is that when running RootStock as user (with --no-root option), it'll generate the target image with the genext2fs tool.

With the current genext2fs implementation, it'll first create the whole filesystem in memory before writing down to disk, and if you don't have enough memory, it'll fail.

Check the following link for a better explanation:
http://sourceforge.net/mailarchive/forum.php?thread_name=20090619095646.GA489%40telegraphics.com.au&forum_name=genext2fs-devel