You are not logged in.

#1 2021-12-18 00:23:16

eldritch_cookie
Member
Registered: 2021-09-03
Posts: 13

io errors when trying to recover encrypted partition[SOLVED]

i have a luks encrypted root partition and now it is corrupted as i can't mount it and when i try i get the error

the superblock could not be read or does not describe a valid ext2/ext3/ext4 filesytem .
if the device is valid and does contain a ext2/ext3/ext4 filesystem(and not swap or ufs or something else) then the superblock is corrupt and you may try running e2fsck using an alternative superblock: 
e2fsck -b 8193 <device>
e2fsck -b 32768 <device>

i found my superblocks using

dumpe2fs /dev/mapper/root | grep superblock

when i tried to fix using e2fsck from the usb i get around 20 errors like this just with sector different

blk_update_request:I/O error , dev sda, sector 2197504 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0

and then the same message as above
and if i try to run blkid after running e2fsck i also get io errors similar to the one above

Last edited by eldritch_cookie (2021-12-18 18:15:10)

Offline

#2 2021-12-18 06:19:06

ivanoff
Member
Registered: 2012-03-18
Posts: 78

Re: io errors when trying to recover encrypted partition[SOLVED]

Hello
Does the kernel throw errors during this ? (journal)
Cheers

Offline

#3 2021-12-18 10:19:26

eldritch_cookie
Member
Registered: 2021-09-03
Posts: 13

Re: io errors when trying to recover encrypted partition[SOLVED]

ivanoff wrote:

Hello
Does the kernel throw errors during this ? (journal)
Cheers

it may as when i boot my computer i am dropped into an emergency shell, however in the emergency shell journalctl and systemctl are not available. and when i try to use the arch install medium to acess /var i can't as my root filesystem superblock is corrupted i get more of the io errors and then

mount:/mnt can't  read superblock on /dev/mapper/root.

Last edited by eldritch_cookie (2021-12-18 10:20:17)

Offline

#4 2021-12-18 14:54:34

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,946

Re: io errors when trying to recover encrypted partition[SOLVED]

https://wiki.archlinux.org/title/S.M.A.R.T.#smartctl

sudo smartctl -a /dev/sda

https://wiki.archlinux.org/title/Badblo … structive)

i get around 20

Do you have the actual and complete output?

Is this only the OS installation or is there actually valuable data on that drive?
iow: do you have backups?

Offline

#5 2021-12-18 18:14:32

eldritch_cookie
Member
Registered: 2021-09-03
Posts: 13

Re: io errors when trying to recover encrypted partition[SOLVED]

i found out that my hard drive was broken luckily most of my data was in a backup

Offline

Board footer

Powered by FluxBB