[uClibc] Sorry about the empty posts UML Question Attempt 3

Erik Walthinsen omega at temple-baptist.com
Fri Sep 5 23:04:22 UTC 2003


On Fri, 5 Sep 2003, Erik Andersen wrote:

> Find a spare/unused disk partition with lots of space.  Use 'dd'
> to stuff root_fs-i386 onto the spare partition. i.e.

Much easier method:

1) extend the root_fs-i386 file to the desired size:

dd if=/dev/zero bs=1k count=1 seek={$size-1} of=root_fs-i386

where {$size-1} is how many KB you want the file to be minus one (for the
one block dd will write, i.e. 1048575 for a 1GB file.

2) resize2fs root_fs-i386

If step 2 decides not to work (dunno what older versions of e2fstools will
support), just

losetup /dev/loop0 root_fs-i386
resize2fs /dev/loop0
losetup -d /dev/loop0


Of course like all such proceedures you should make a backup copy of
root_fs-i386 somewhere safe before you go screwing with the file ;-)

      Erik Walthinsen <omega at temple-baptist.com> - System Administrator
        __
       /  \                GStreamer - The only way to stream!
      |    | M E G A        ***** http://gstreamer.net/ *****
      _\  /_



More information about the uClibc mailing list