Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot Emerge Packages. OSError:[Errno 5] Input/output error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Bloxlord
n00b
n00b


Joined: 06 Nov 2023
Posts: 9

PostPosted: Tue Jul 30, 2024 4:23 am    Post subject: Cannot Emerge Packages. OSError:[Errno 5] Input/output error Reply with quote

I have recently encountered an issue when emerging packages with portage. I'm not certain but I believe it started when I canceled (ctrl+c) an emerge part way and shut down my system. Whenever I attempt an "emerge -avuDN @world" I receive OSError: [Errno 5] Input/output error on the first package, which is sys-kernel/linux-firmware. I am able to emerge some packages running "emerge -avuDN @world --exclude sys-kernel/linux-firmware" which allows some packages to emerge but ultimately produces the same result. Some google searching suggests my filesystem (btrfs) is damaged but I am not sure if that's the case and apparently tools such as "btrfs check --repair" can damage your system so I am cautious about that. What is the best way to resolve this issue? Here's my portage log for reference: https://pastebin.com/U7c3xDAr
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2400

PostPosted: Tue Jul 30, 2024 7:54 am    Post subject: Reply with quote

Look for something related in dmesg and share it.

If you've restarted since the last error, reproduce it and then look in dmesg.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Bloxlord
n00b
n00b


Joined: 06 Nov 2023
Posts: 9

PostPosted: Wed Jul 31, 2024 5:19 am    Post subject: Reply with quote

Thanks for the reply! I reproduced and checked dmesg, there appears to be some corruption in my root partition:
Code:
[   39.944840] BTRFS warning (device sda3): csum failed root 5 ino 22735681 off 0 csum 0x8941f998 expected csum 0x0f06c702 mirror 1
[   39.944846] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12862, gen 0
[   39.944886] BTRFS warning (device sda3): csum failed root 5 ino 22735681 off 0 csum 0x8941f998 expected csum 0x0f06c702 mirror 1
[   39.944888] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12863, gen 0
[   41.188022] BTRFS warning (device sda3): csum failed root 5 ino 22735666 off 0 csum 0x8941f998 expected csum 0x8b17e7c3 mirror 1
[   41.188029] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12864, gen 0
[   41.188066] BTRFS warning (device sda3): csum failed root 5 ino 22735666 off 0 csum 0x8941f998 expected csum 0x8b17e7c3 mirror 1
[   41.188068] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12865, gen 0
[   41.306629] BTRFS warning (device sda3): csum failed root 5 ino 22735682 off 0 csum 0x8941f998 expected csum 0x5a35f0db mirror 1
[   41.306633] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12866, gen 0
[   41.306676] BTRFS warning (device sda3): csum failed root 5 ino 22735682 off 0 csum 0x8941f998 expected csum 0x5a35f0db mirror 1
[   41.306678] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12867, gen 0
[   41.308484] BTRFS warning (device sda3): csum failed root 5 ino 22735681 off 0 csum 0x8941f998 expected csum 0x0f06c702 mirror 1
[   41.308488] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12868, gen 0
[   44.079034] BTRFS warning (device sda3): csum failed root 5 ino 22736473 off 0 csum 0x8941f998 expected csum 0xe7a7e9e4 mirror 1
[   44.079041] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12869, gen 0
[   44.079086] BTRFS warning (device sda3): csum failed root 5 ino 22736473 off 0 csum 0x8941f998 expected csum 0xe7a7e9e4 mirror 1
[   44.079088] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12870, gen 0
[   45.219404] BTRFS warning (device sda3): csum failed root 5 ino 22735690 off 0 csum 0x8941f998 expected csum 0x114ab97b mirror 1
[   45.219411] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12871, gen 0
[   45.219455] BTRFS warning (device sda3): csum failed root 5 ino 22735690 off 0 csum 0x8941f998 expected csum 0x114ab97b mirror 1
[   45.219458] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12872, gen 0
[   47.360820] BTRFS warning (device sda3): csum failed root 5 ino 22735681 off 0 csum 0x8941f998 expected csum 0x0f06c702 mirror 1
[   47.360828] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12873, gen 0
[  110.131359] BTRFS warning (device sda3): csum failed root 5 ino 12991257 off 0 csum 0x8941f998 expected csum 0xbbd3f900 mirror 1
[  110.131366] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12874, gen 0
[  110.131369] BTRFS warning (device sda3): csum failed root 5 ino 12991257 off 4096 csum 0x8941f998 expected csum 0x7dce25e8 mirror 1
[  110.131371] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12875, gen 0
[  110.131373] BTRFS warning (device sda3): csum failed root 5 ino 12991257 off 8192 csum 0x8941f998 expected csum 0xd8d21f68 mirror 1
[  110.131374] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12876, gen 0
[  110.131376] BTRFS warning (device sda3): csum failed root 5 ino 12991257 off 12288 csum 0x8941f998 expected csum 0x5ac0e2d5 mirror 1
[  110.131377] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12877, gen 0
[  110.131379] BTRFS warning (device sda3): csum failed root 5 ino 12991257 off 16384 csum 0x8941f998 expected csum 0x6c550eda mirror 1
[  110.131380] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12878, gen 0
[  110.131382] BTRFS warning (device sda3): csum failed root 5 ino 12991257 off 20480 csum 0x8941f998 expected csum 0x9ae2ae28 mirror 1
[  110.131383] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12879, gen 0
[  110.131384] BTRFS warning (device sda3): csum failed root 5 ino 12991257 off 24576 csum 0x8941f998 expected csum 0x06d92b4b mirror 1
[  110.131386] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12880, gen 0
[  110.131387] BTRFS warning (device sda3): csum failed root 5 ino 12991257 off 28672 csum 0x8941f998 expected csum 0x7df00f3e mirror 1
[  110.131389] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12881, gen 0
[  110.131435] BTRFS warning (device sda3): csum failed root 5 ino 12991257 off 0 csum 0x8941f998 expected csum 0xbbd3f900 mirror 1
[  110.131437] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12882, gen 0
[  144.884179] BTRFS warning (device sda3): csum failed root 5 ino 22735681 off 0 csum 0x8941f998 expected csum 0x0f06c702 mirror 1
[  144.884186] BTRFS error (device sda3): bdev /dev/sda3 errs: wr 0, rd 0, flush 0, corrupt 12883, gen 0

Advice on how to fix this? Full dmesg here:https://pastebin.com/u3qfdzp7
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2400

PostPosted: Wed Jul 31, 2024 6:16 am    Post subject: Reply with quote

Bloxlord wrote:
Advice on how to fix this?


I can't help with that. I'm not a BTRFS expert, but I cannot spare questioning the choice. At least we know it's not a hardware issue.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum