Monday, November 5, 2012

Adding files to disk images

Say you have  a bootable floppy image for instance from here, but you want to add files to it, like bios flash files before you bake it.

On linux it's easy:

losetup -f

will give you the first available loop device, eg. .dev/loop0

losetup  /dev/loop0 fdodin06.img

will setup the loop device with the disk image

you can now mount /dev/loop0 and add files to it. I suspect you can add files up to the size of the image which is fixed.