[EDIT: simplified and corrected]
I would like to use the same method as Raspbian install which relies on dd
deployment to a µSD. Meaning, from a minimal image file, deploy the "augmented" Raspbian system partitions with dd
on a SD card, resulting into two partitions and their files.
Is there a way to augment (inject files) the image blob file?
(The augmented image file won't fit into RAM)
dd
won't take very long. Otherwise, I studied 4 scenarios:dd
with partitions, ramfs, whole disk 'dd' containing the required partitions,dd
extended partition containing required partitions. None can work for several reasons. It is a bit too long to give details. – sugarman Jun 27 '20 at 20:25dd
image of the µSD card? – sugarman Jun 28 '20 at 07:08dd
to Desktop (one image file or partitions) >---> adding files to it on Desktop >---> 'dd' back to a new µSD : fully working augmented Raspbian – sugarman Jun 28 '20 at 08:46losetup
orkpartx
to mount partititions with file systems in image files. It might work for you (but I have no own experience). Search the internet forlinux mount disk image
– sudodus Jun 28 '20 at 08:54loop
setup is a great deal of the solution! I could map both Rasbian partitions to loop partitions. Then I can add files, anddd
back to an empty µSD. The only problem which remains si the loop disk size. I can't find a way to increase it. Decrease is documented otherwise. I will first write the answer and open a new question for loop size increase. – sugarman Jun 28 '20 at 20:27