growing filesystem image files

Collins Richey crichey
Fri Dec 3 17:59:14 PST 2004


On Fri, 03 Dec 2004 16:01:47 -0800, Net Llama! <netllama at linux-sxs.org> wrote:
> I've got some ext2 and ext3 filesystem images with RH-7.3 in them.  I'm
> trying to grow them non-destructively by 500M, and i'm getting
> undesirable results.
> 
> Here are the steps i'm taking:
> dd if=/dev/zero bs=1M count=500 >> filesystem.iso
> resize2fs -p -f `du filesystem.iso| awk "{print $1}"`
> 
> While this seems to work, i always end up with a file that is completely
> corrupted when i try to mount it loop back.
> 
> Anyone done this successfully before?  I only need it for ext2 and ext3.
>   thanks.
> 

I'm working from memory here, but I thought growing an ext3 fs was
only possible on later 2.6 kernels, and I believe some bugs related to
that are still being sorted out for the upcoming 2.6.10 kernel.

-- 
 Collins


More information about the Linux-users mailing list