On 15/06/2020 22:46, Andrew wrote:
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.
That's cool Andrew, I had wondered about that. If what I am doing doesn't work,
I'll clear off all the files on the SD card and copy over the files from the
good one.
Cheers,
Peter M.
--
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