I’m suffering with an “Can’t read superblock” issue after logging in with GRUB with my luks-encrypted HDD. It happens after a power failure.
I can decrypt the luks-Partition from a USB-Linux:
sudo cryptsetup open /dev/sda1 crypto
runs well.
But after that I’m stuck.
sudo mount /dev/mapper/crypto /mnt
Says “Bad Superblock”.
I’m not really a Linux-Expert so I’m thankfull for any advice to make my system boot again. (Or even get access to the partition to save the latest data ;o)
Illegal block number passed to ext2fs_mark_block_bitmap #5226077461718260773 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #13651645614301301791 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #12595942493672616290 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #14645335420504974825 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #10072002517370665981 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #1752149066609342841 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #7190106265735448415 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #7873875386962603264 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #3403445120102809709 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #14043753746309486185 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #14649079976496093918 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #690396004654180565 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #5783314249158287372 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #13559547385824256304 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #1813511074410412626 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #720335521950401567 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #6669190058244424297 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #7105116799863360566 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #5192936692069940048 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #8349572122462118418 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #11538410855975775488 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #5030694150573982560 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #5468374690071020471 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #12967513178455050479 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #4725089721210717993 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #5210536449567075156 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #18239724053703962131 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #4521208374437781480 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #1563680391884738378 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #10135875637113008983 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #445607863422464378 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #16608474675953798019 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #9310491083921194983 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #11449932432613944592 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #4921970503471470787 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #13660515395626356667 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #2428183638273429182 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #12108474408317219737 for block bitmap for /dev/mapper/crypto
Illegal block number passed to ext2fs_mark_block_bitmap #1439035655824226557 for block bitmap for /dev/mapper/crypto
Primary superblock at 0, Group descriptors at 1-116
Backup superblock at 32768, Group descriptors at 32769-32884
Backup superblock at 98304, Group descriptors at 98305-98420
Backup superblock at 163840, Group descriptors at 163841-163956
Backup superblock at 229376, Group descriptors at 229377-229492
Backup superblock at 294912, Group descriptors at 294913-295028
Backup superblock at 819200, Group descriptors at 819201-819316
Backup superblock at 884736, Group descriptors at 884737-884852
Backup superblock at 1605632, Group descriptors at 1605633-1605748
Backup superblock at 2654208, Group descriptors at 2654209-2654324
Backup superblock at 4096000, Group descriptors at 4096001-4096116
Backup superblock at 7962624, Group descriptors at 7962625-7962740
Backup superblock at 11239424, Group descriptors at 11239425-11239540
Backup superblock at 20480000, Group descriptors at 20480001-20480116
Backup superblock at 23887872, Group descriptors at 23887873-23887988
Backup superblock at 71663616, Group descriptors at 71663617-71663732
Backup superblock at 78675968, Group descriptors at 78675969-78676084
Backup superblock at 102400000, Group descriptors at 102400001-102400116
Backup superblock at 214990848, Group descriptors at 214990849-214990964
dumpe2fs: Block bitmap checksum does not match bitmap while trying to read '/dev/mapper/crypto' bitmaps
I start with the 1rst Superblock (Primary?):
sudo fsck -b 0 /dev/mapper/crypto
Output:
2fsck 1.46.2 (28-Feb-2021)
/dev/mapper/crypto: recovering journal
fsck.ext4: Input/output error while trying to re-open /dev/mapper/crypto
/dev/mapper/crypto: ********** WARNING: Filesystem still has errors **********
And then I stuck on the second Superblock:
sudo fsck -b 32768 /dev/mapper/crypto
Output:
e2fsck 1.46.2 (28-Feb-2021)
fsck.ext2: Input/output error while trying to open /dev/mapper/crypto
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>
You can also try to add the block size (-B 4096), force (-f), and verbose (-v) options while you’re at it. Looks like your ext4 filesystem is using 4K block size.
Another victim of an electrical outage / power loss?
I guess this is as good a time as any to vouch for a UPS battery backup for any desktop / server computer.
But to better understand, you can’t even successfully ddfrom the SSD, even in a live session using sudo? What about if you make the output null? (i.e, of=/dev/null)?