From: Zou M. <zo...@co...> - 2002-05-22 12:16:15
|
On Wed, May 22, 2002 at 02:49:51AM -0600, Andreas Dilger wrote: > Use ext2resize or resize2fs to resize the root file image from the host > system. You will probably need to do something like: > > dd if=/dev/zero of=/path/to/root_fs bs=1k count=1 seek=<new_size_in_kB> so this will create a fresh "root_fs" with new size. and, I want to resize "root_fs_old" Can I do it in this way? (without using ext2reszie) $ losetup /dev/loop0 /path/to/root_fs; losetup /dev/loop1 /path/to/root_fs_old $ mke2fs /dev/loop0 $ mkdir /mnt/new /mnt/old $ mount /dev/loop0 /mnt/new; mount /devloop1 /mnt/old $ cp /mnt/old/* /mnt/new $ umount /mnt/new; umount /mnt/old So, if using ext2resize, how can I just resize the "root_fs_old" with retaining all the data on it, and all the existing ext2 properties, like block_size ? I am still not very sure...Sorry for the newbie question... Thanks again! -- regards, ZM |