My Raspberry PI 4 micro SD card seems to have got corrupted. I have a mirrored external card reader with an SD card in it which should hopefully fix this problem.
However the card is a full size SD card so does not fit in the slot! Yes I know I should have bought an adapter with a micro SD card but it’s too late now.
Does anyone know how to get the correct partitions across to a new micro card. The original micro is 16gb and the backup is 32gb, I have a new 16gb micro SD.
thanks in advance
clonezilla could be able to do this.
From document about advanced parameters:
If you are sure all the data from the image could fit the smaller disk, i.e. it won’t be written to the wrong disk space, you can check the option “-icds”.Warning! To select this option, you have to know what you are doing!.
I think your comment about knowing what you are doing is very apt! I am fine with windows but I really struggle with unix.
I have created a new openhabian install on a new 16gb sd card and that is running fine. I now have the mirrored backup sd card in the second card reader, I can see that the partition I need is sda2. How do I get this to overwrite the current install? Or can I just copy across certain files to get this running?
openhabian@openhabian:~ $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 1 29.8G 0 disk
├─sda1 8:1 1 256M 0 part
├─sda2 8:2 1 14.6G 0 part
└─sda3 8:3 1 14.9G 0 part
mmcblk0 179:0 0 14.8G 0 disk
├─mmcblk0p1 179:1 0 256M 0 part /boot
└─mmcblk0p2 179:2 0 14.6G 0 part /
zram0 254:0 0 1G 0 disk [SWAP]
zram1 254:1 0 750M 0 disk /opt/zram/zram1
zram2 254:2 0 1G 0 disk /opt/zram/zram2