[uClibc] Sorry about the empty posts UML Question Attempt 3
Erik Andersen
andersen at codepoet.org
Fri Sep 5 22:49:18 UTC 2003
On Fri Sep 05, 2003 at 05:35:30PM -0500, Charles Holbrook wrote:
> It would seem that the linux based webmail server I am switching over to
> has problems with how data is parsed if you use mozilla to access
> it(Pulled from somewhere dark, but likely the truth)
>
> I am trying to resize the UML environment to a larger size. I've filled
> it up and still need to move about 6 other source trees in there for a
> dependancy chain.
>
> I have tried using resize2fs to make it larger but it told me that I
> could not resize past 150025 blocks. fdisk root_fs-i386 does not show
> anything in the partition table. I'm stuck anybody out there have any
> suggestions for resizing the UML?
Method one:
-----------------------------
Find a spare/unused disk partition with lots of space. Use 'dd'
to stuff root_fs-i386 onto the spare partition. i.e.
dd if=root_fs-i386 of=/dev/hdX1
then run
fsck.ext2 -f /dev/hdX1
then use resize2fs to resize it to fill the partition.
resize2fs -P /dev/hdX1
then you have a full partition with as much space as you need,
and you can even setup grub or whatever to boot into your
partition, or you can chroot into it, or pivot_root into it,
or whatever.
Method two:
-----------------------------
Loop mount root_fs-i386 somewhere, i.e.
mount root_fs-i386 /mnt -o loop
then bind-mount somewhere on your root filesystem inside the
root_fs-i386 loop mount. i.e.
mount /home/cholbrook/uClibc.stuff /mnt/home -o bind
and now if you chroot into /mnt, you will find the /home
directory is actually /home/cholbrook/uClibc.stuff on your
system's root filesystem, which as much free space as your
root filesystem has to offer.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list