From: Manuel Garcia Rodriguez (manueluniversidad@yahoo.es)
Date: Mon Mar 25 2002 - 16:56:41 CET
--- Michele Andreoli <m.andreoli@tin.it> escribió: >
On Tue, Mar 19, 2002 at 03:22:05PM +0100, Manuel
> Garcia Rodriguez nicely wrote:
> > Hi.
> >
> > I've choosed LOOP+EXT2 cloning, partition size is
> 20
> > MB. Can I increase this size with any ext2fs tool,
> > without loosing data?
>
> There is a, simple, better method:
>
> create your new loopfs (40M)
> # dd if=/dev/zero of=/tmp/new.img bs=1k count=40000
>
> mount new
> # mkdir /tmp/dest
> # mount -o loop new.img /tmp/dest -t ext2
>
> mount old loopfs image
> # mount -o loop old.img /mnt -t ext2
>
> copy old on new
> # cp -a /mnt/* /tmp/dest
> # umount /tmp/dest /mnt
>
> Now, you have a a new bigger loopfs image.
> Hope this helps.
>
> Michele
Yes, thank you.
I have been able to increase to the capacity of the
partition ' mulinux.img'.
But you do not mention some details that can confuse
to a novice... like I.
> create your new loopfs (40M)
That means that I cannot increase the size more than
the free space in FAT partition.
> # dd if=/dev/zero of=/tmp/new.img bs=1k count=40000
> mount new
> # mkdir /tmp/dest
> # mount -o loop new.img /tmp/dest -t ext2
Mmmmh. I must create the filesystem first. As I do not
have nor idea, simply I looked for 'clone' script and
copy the line where it formats loop filesystem.
But it is the most interesting question here:
I have had to increase the size of the partition
because although my system mulinux only has 8MB of
archives, in fact occupy 20MB, due to the internal
fragmentation. So I think that I would have to format
the new one with a smaller cluster size.
I think that this is important because you try to
maintain the distribution as small as possible.
Oh, I must go...
See you later.
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es
---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.dk
For additional commands, e-mail: mulinux-help@sunsite.dk
This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:21 CET