Max_G
Posts: 42
Joined: Sat May 28, 2016 8:27 am

rPi 3 with SSD in boot loop after power outage

Mon Apr 27, 2020 8:59 am

I had a power outage this morning, and when power was restored mt rPi 3 booting from SSD is stuck in an endless boot loop.
This rPi provides DSN and DHCP to my network, and without it my whole network is down. since none of the machines can acquire an IP address. Since the network has a lot of Arduinos connected with Ethernet shields, the home automation network is down too.

I didn't go to work today, trying to fix this problem, but couldn't.

The SD card has a FAT partition with bootcode.ini on it. The rPi then reads its boot partition from the SSD /boot directory.

I check the SD and SSD/boot with fsck, and in both cases the 'dirtry bit' was set, which I cleared as follows:

Code: Select all

fsck from util-linux 2.27.1
fsck.fat 3.0.28 (2015-05-16)
0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
1) Remove dirty bit
2) No action
? 1
Perform changes ? (y/n) y
/dev/sdb1: 163 files, 44275/86872 clusters
I then ran badblocks on both the SD and SSD /boot directory, as follows:

Code: Select all

sudo badblocks -v -s /dev/mmcblk0p1 > /home/maxg/SD_badblocks.txt
sudo badblocks -v -s /dev/sdb1 > /home/maxg/SSD_badblocks.txt
No bad blocks where found.

I have an older backup, but assume I shoudl be able to restore the SSD /boot directory.
Would this restore suffice, or are there other folders involved in the boot process.

Return to “Troubleshooting”