On Tuesday, 16 June 2020 07:27:51 BST PeterMerchant wrote: > 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.
Unfortunately, on it's own, that doesn't help if you have a (slightly) too large image and a (slightly) too small new SD Card to copy it to. You need to be able to see the files to copy them. It is possible to mount the image as loopback and grab the files that way. That can be a bit of a faff unless your bash knowledge is at your fingertips. In Gnome, I think there is a feature in the File Manager that will do that for you. Otherwise, Hamish's DD_Rescue_GUI tool does it as he demonstrated at the first online meeting. -- Terry Coles -- 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