- Platform information:
- Hardware: Raspberry Pi 4 Model B Rev 1.2
- OS: Raspbian GNU/Linux 11 (bullseye), Kernel = Linux 5.15.61-v7l+
- openHAB version: 3.3.0
I am having the problem that my the my backup sd-cards are not booting. This is the case for the backup that I made using option 53 (for periodic backup) and 54 (for the one-time raw-copy backup). Curiously, for both cases it worked the first time.
This is the order of events:
- I setup the periodic backup (i.e. Amanda+system-backup on the same sd-card) during installation of OpenHABian on my RPi a few months back.
- I tested the backup SD-card on the next day and it booted and worked as expected. I then switched back to the main card and again put the backup card in the USB reader to continue creating periodic backups.
- Since then I had OpenHABian running without testing the backup SD-card.
- I recently upgraded to OpenHAB 3.3 (~2 week ago) and tested the backup SD-card and it did not boot anymore.
- To continue with my update, I switched to another SD-card for the backup and created the backup manually on that using the raw-copy option 54 in
openhabian-config
. I tested, if I can boot from that backup SD-card and it booted as expected. Then I again switched back to the main card and successfully updated it to OpenHAB 3.3. - Before making further modifications to OpenHAB I again ran option 54 to backup the current state. Testing again, if I can boot the backup SD-card, I found that this time the SD-card did not booting anymore. Since then, I have run option 54 twice (with intermitten reboots) and it continues not to work.
So I have been trying to figure out what the problem is:
This forum post descibes that the PARTUUID in /boot/cmdline.txt
can end up not being correct:
openhabian@openhab3:/mnt $ cat cmdline.txt
console=serial0,115200 console=tty1 root=PARTUUID=-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
I found this behavior in for my backup card. I tried fixing it as discussed in the post by correcting the PARTUUID
as reported by sudo blkid
as shown below, but it did not help:
blkid
output with the backup sd-card in the USB reader of the RPi (as /dev/sda
):
Corrected /mnt/cmdline.txt
(which still does not boot):
Note: The forum post states that the PARTUUID
of the /boot
partition should be added to /mnt/cmdline.txt
. But checking the /boot/cmdline.txt
of my (functioning) main sd-card, I found that it actually contains the PARTUUID of the root partition (/
). Anyway… I tried both PARTUUIDs in the cmdline.txt
of the backup sd-card and neither worked …
I also checked that there is no file /etc/systemd/system/storage.mount
(as suggested here here). I found none.
I reran option 54 with debugmode=maximum
and recorded the terminal output like so:
sudo openhabian-config 2>&1 | tee /home/openhabian/01__debug/20220919_not_booting_from_sdcard_mirror/20220929_sdcard_backup.log
This is the output:
20220929_sdcard_backup.log (416.1 KB)
I hope someone can help me resolve this. Thank you in advance.