Many thanks for your reply, sorry due to my limited understanding I did not realise that the partitions were not created automatically.
I’ve spent all day trying to understand how to partition my new card to match my old one before copying over.
8GB to 8GB using option 54
First I did what you said on the two 8GB cards to make sure they were in fact identical.
sudo blockdev --getsize64 /dev/sda SD IN USB
8010072064
sudo blockdev --getsize64 /dev/mmcblk0 SOURCE
8010072064
I then ran option 54 and it worked as expected.
Partitioning
I added the 32GB card and ran 53 Mirror and it worked as expected.
I put the 32GB into the internal SD slot and the 8GB into the back.
I tried my best to create a 2 partitions on the 8GB to match those on the 32GB (ignoring the 3rd which I assumed I did not need). For some reason I would not get them exact on the 8GB (could not use the same “start end” range) I’m possibly missing something here. I then decided to use a 16GB card as that would definitely have enough space to match the partitions.
Internal
Disk /dev/mmcblk0: 29.1 GiB, 31293702144 bytes, 61120512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x84bebabd
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/mmcblk0p2 532480 15644671 15112192 7.2G 83 Linux
/dev/mmcblk0p3 15644672 61120511 45475840 21.7G 83 Linux
External
Disk /dev/sda: 14.4 GiB, 15476981760 bytes, 30228480 sectors
Disk model: UHSII uSD Reader
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x48100fc1
Device Boot Start End Sectors Size Id Type
/dev/sda1 8192 532479 524288 256M c W95 FAT32 (LBA)
/dev/sda2 532480 15644671 15112192 7.2G 83 Linux
Tried this
Internal
sudo blockdev --getsize64 /dev/mmcblk0p1
268435456
sudo blockdev --getsize64 /dev/mmcblk0p2
7737442304
External ??? (Googled all over and could not figure this out)
sudo blockdev --getsize64 /dev/sda1
blockdev: ioctl error on BLKGETSIZE64: Inappropriate ioctl for device
sudo blockdev --getsize64 /dev/sda2
blockdev: ioctl error on BLKGETSIZE64: Inappropriate ioctl for device
I tried to copy over and it did not work
sudo dd if=/dev/mmcblk0p1 bs=1M of=/dev/sda1 status=progress
152043520 bytes (152 MB, 145 MiB) copied, 1 s, 151 MB/s
256+0 records in
256+0 records out
268435456 bytes (268 MB, 256 MiB) copied, 1.72777 s, 155 MB/s
sudo dd if=/dev/mmcblk0p2 bs=1M of=/dev/sda2 status=progress
587202560 bytes (587 MB, 560 MiB) copied, 18 s, 32.6 MB/s
dd: error writing '/dev/sda2': No space left on device
574+0 records in
573+0 records out
601124864 bytes (601 MB, 573 MiB) copied, 18.6751 s, 32.2 MB/s
I’m now confused, hopefully what I have sent is useful? If anyone has any ideas on what is going wrong or what I’ve done wrong I would really appreciate it thanks.