On Tue, Sep 04, 2007 at 04:26:00PM +0200, Petar Bogdanovic wrote:
> 
> is there a way to create a loop device based on a disk-image which
> ``grows as data is added''?

I needed the power of a [1]sparse file:

        # dd if=/dev/zero of=foo bs=1 count=1 seek=30G
        (...)
        # losetup /dev/loop0 foo
        # mkfs.ext2 -O sparse_super /dev/loop0
        (...)


Works pretty well.


Thanks & regards,

Petar


[1] http://en.wikipedia.org/wiki/Sparse_file

_______________________________________________
arch mailing list
arch@archlinux.org
http://archlinux.org/mailman/listinfo/arch

Reply via email to