I have a raw QEMU image (vda.raw), and I would like to resize it and add an existing partition, using data I have in a file that contains a raw ext3 file system populated with data (vdb.raw). The two files look like this:$ file vda.rawvda.raw: x86 boot sector; partition 1: ID=0x83, active, starthead 0, startsector 16065, 20948760 sectors, code offset 0x63$ file vdb.rawvdb.raw: Linux rev 1.0 ext3 filesystem data, UUID=14555b9c-4837-4b43-a8e8-fe4e19194e88, volume name ephemeral0 (large files)Is there a simple way I can create a new image by combining these two: where the contents of vdb.raw appear as a new disk partition in vda.raw? I'd like to avoid having to:Resize vda.rawCreate a new partition in vda.rawMount vda.rawMount vdb.rawCopy the contents of vdb.raw into vda.rawIs there a way I could, say, concatenate them with dd, and then fix the partition table to make it aware that there's a new partition in the image?
Adding a populated existing disk device to a QEMU raw image
partition;dd;fdisk;qemu;parted