I've just remembered, for a Raspberry Pi you don't need to duplicate the entire contents of the µSD card - you can create a new partition table and filesystems (FAT32 for boot, EXT4 for root) on the blank µSD card and copy everything using regular file copy commands. You might need to edit what will become /etc/fstab to update the UUID of the new root filesystem. (And any other filesystems it needs to mount.)

The Raspberry Pi bootloader knows how to read a partition table and FAT32 filesystem to load the kernel, so there's no magic hidden data on the disk like with IBM PC-BIOS type booting.

The same goes for UEFI system bootloaders - they understand partition tables and filesystems.

--

Andrew.


--
 Next meeting: Online, Jitsi, Tuesday, 2020-07-07 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to