On 2021-09-18 at 08:34, Reco wrote: > On Sat, Sep 18, 2021 at 08:01:34AM -0400, The Wanderer wrote: > >> On 2021-09-18 at 07:53, Reco wrote: >>> 1) Plug-in source card, use dump(8) to backup the contents of its >>> filesystem. >>> 2) Plug-in target card, create appropriate partition(s) on it. >>> 3) Make the needed amount of filesystems on a target SD card. >>> For ext4 you'll want to use -U option of mkfs to clone filesystem UUIDs >>> (i.e. UUID on the target card must be the same compared to the source >>> one). >>> 4) Use restore(8) to recreate filesystem(s) contents on a target card. >>> 5) Unmount filesystems made on a target card. >> >> Will this really be enough? <snip> >> For hard-drive installs you're likely to have a GRUB installation, which >> wouldn't be brought across by a measure like this. > > I doubt that GRUB will come into play in this scenario. You probably > meant u-boot. No - I really don't know enough about this type of context to be able to make that connection. I was mentioning GRUB as an example of the non-filesystem-based boot configuration that's needed in the hard-drive case; since this isn't the hard-drive case, if any such configuration is needed, it would probably be something other than GRUB. I'm used to seeing ISOLINUX for bootable CDs, and something (I've never been sure what) for bootable USB drives, but have/had never learned what was/is used for bootability on SD cards. >> For a SD-card-based install I'm not sure, but I'd be a bit surprised >> to learn that no such non-filesystem-based configuration is necessary. > > A canonical example - Raspberry Pi. You just have to clone partition > UUIDs, and fill first partition with Broadcom blobs. That's it, nothing > more complex is required. > RPi have their share of deficiencies and simply are broken by design in > some regards, but the their boot process is as straightforward as > possible. So this isn't really a concern in practice, and I've learned something today. Good to know! -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
Attachment:
signature.asc
Description: OpenPGP digital signature