making one disk image from two

@lbutlr kremels at kreme.com
Thu Jan 7 20:07:24 UTC 2021


On 07 Jan 2021, at 07:03, tech-lists <tech-lists at zyxst.net> wrote:
> If one were to make say a 16GB image, format it to msdos, then make a 64GB image, format it to freebsd, then concatenate[1] the images to make one image, would it be seen as one image with two partitions?

You would have to make a partitioned image first, then write your 16GB to one partition¹ and your 64GB to the other partition.

> [1] # cat freebsd.img >> msdos.img

If you were very lucky, that would still be a msdos bootable image. Otherwise, it would be garbage.

¹ Or perhaps volumes or containers, depending on the disk format.

-- 
THE PRESIDENT DID IT IS NOT AN EXCUSE Bart chalkboard Ep. AABF05



More information about the freebsd-questions mailing list