dumischbaenger Posted October 26, 2017 Posted October 26, 2017 Hello, I would like to recover my Armbian root file system on a second sd card. On the second sd card there is a slightly older Armbian version installed. Unfortunately my efforts ended up in a boot loop with the second card. Here is what I did: backup current Armbian tar czpf ~/tmp/backupArm.tgz --exclude=dev/* --exclude=proc/* --exclude=run/* --exclude=tmp/* --exclude=mnt/* . restore backup on second card tar xvzf ~/tmp/backupArm.tgz Both cards use MBR partition style. Partition starts at sector 2048. Here are my SD cards details: current (source) fdisk -l /dev/sde Disk /dev/sde: 29.3 GiB, 31440502784 bytes, 61407232 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: 0xc6a8c537 Device Boot Start End Sectors Size Id Type /dev/sde1 2048 60793151 60791104 29G 83 Linux second (target) fdisk -l /dev/sde Disk /dev/sde: 28.8 GiB, 30908350464 bytes, 60367872 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: 0x72530afd Device Boot Start End Sectors Size Id Type /dev/sde1 2048 59160511 59158464 28.2G 83 Linux Any idea is welcome. Regards, Bernhard
martinayotte Posted October 26, 2017 Posted October 26, 2017 Did you tweak UUIDs in "rootdev" in /boot/armbianEnvt.txt as well as /etc/fstab to match the UUID of your second SDCard ?
dumischbaenger Posted October 29, 2017 Author Posted October 29, 2017 First - sorry for my late reaction, but I thought the system would mail me if somebody answers my question. Second - stupid me - I use normally old style device names or labels in fstab, so I didn't thought of the partitions UUID. Is it enough to change the file armbianEnvt.txt or is there a second step to make it active?
martinayotte Posted October 29, 2017 Posted October 29, 2017 Both ways could work, but you need to verify that is matching accordingly in both /boot/armbianEnv.txt and /etc/fstab.
dumischbaenger Posted October 31, 2017 Author Posted October 31, 2017 Thank you! It worked. It would probably more convenient to change the UUID on the root fs of my backup card. I guess I'll try it next time.
Recommended Posts