Home Assistant Supervised in Raspberry Pi 4B
Home Assistant Core: 2022.5.5
Home Assistant Operating System: 8.0
After a power outage, the SD card for Home Assistant can’t reboot in all my 3 Raspberry Pi, but other SD card can reboot in the Raspberry Pi used for Home assistant. It means the Pi is ok and there are some problems in the SD card. Check the SD card in other Ubuntu system:
Number Start (sector) End (sector) Size Code Name
1 2048 67583 32.0 MiB 0C01 hassos-boot
2 67584 116735 24.0 MiB 8300 hassos-kernel0
3 116736 641023 256.0 MiB 8300 hassos-system0
4 641024 690175 24.0 MiB 8300 hassos-kernel1
5 690176 1214463 256.0 MiB 8300 hassos-system1
6 1214464 1230847 8.0 MiB 8300 hassos-bootstate
7 1230848 1427455 96.0 MiB 8300 hassos-overlay
8 1427456 249737182 118.4 GiB 8300 hassos-data
All other 7 partitions can be mounted except /dev/sda6(hassos-bootstate):
# mount /dev/sda6 /mnt/ha_test/ha6
mount: /mnt/ha_test/ha6: wrong fs type, bad option, bad superblock on /dev/sda6, missing codepage or helper program, or other error.
# fsck /dev/sda6
fsck from util-linux 2.34
e2fsck 1.45.5 (07-Jan-2020)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda6
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
I don’t konw if there are some problems in partition hassos-bootstate, if yes, how to repair? Many thanks!