[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: How to create an image file system that grows



> Hi,
> 
> How can I create an image file system that can grow bigger as 
> required?
> 
> Vmware, qemu, kvm, etc all can create file systems in an 
> image file which 
> is initially small, but grow bigger as required. I want to do 
> that too, 
> but 
> 
>  dd if=/dev/zero of=file-fs.ext2 bs=1k count=20k
>  mke2fs file-fs.ext2 
> 
> would only create an image file initially as big as the full size.
> 
> please help, thanks

I haven't tried this myself, but how about appending extra space to the end
of the file, then calling resize2fs?


Reply to: