We posted a new tool today which you can use to make filesystems containing some prepopulated data.
This program lets you do the same thing, but for any filesystem, for example an ext3 filesystem or NTFS.
Unlike ISO filesystems, ordinary filesystems don’t “just fit” around the files inside them. And so the main difficulty has been to estimate the amount of space you have to allocate in order to fit your files, with the least wasted space. This program automates this with a simple estimator function which should work for most cases and we hope to improve over time.
Usage is simple (virt-make-fs man page). Start with either a tarball or a directory full of files to add, and just do:
virt-make-fs [--type=fstype] /inputdir output.img