You are not logged in.

#1 2023-07-31 12:09:55

ZulluBalti
Member
Registered: 2021-04-07
Posts: 92

[SOLVED] Cannot read file data input output error

Hi, I am using arch with dwm.

Just after boot and loging in when I try to open the terminal it froze. After like 5 min or so I got logout and onto tty1 login screen.

So switch to tty2 and log in from there without gui.
Here it is showing this error

 zsh: failed to load module zsh/zle: /usr/lib/zsh/5.9/zsh/zle.so: cannot read file data : input/output error 

If I type ls or any other command I get the same error.

Any way to figure out what's causing this issue and then hopefully fix it too.

EDIT:
I need to buy another SSD sad

Last edited by ZulluBalti (2023-08-03 11:34:55)

Offline

#2 2023-07-31 12:25:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,463
Website

Re: [SOLVED] Cannot read file data input output error

Run another shell temporarily to investigate if you'd like, but you'll at least need to reinstall zsh.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#3 2023-07-31 18:07:15

ZulluBalti
Member
Registered: 2021-04-07
Posts: 92

Re: [SOLVED] Cannot read file data input output error

How can I run another shell when I can't execute any commands?

Offline

#4 2023-07-31 18:49:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,463
Website

Re: [SOLVED] Cannot read file data input output error

You said you can enter commands (such as ls) but that they result in that error - does ls not even run when you do this?  If it will run, just type `bash` and hit enter ignoring any zsh error, then you'll be in a functional bash.

Or, log in as root, or have you set that to use zsh as well?

Worst case, boot to the rescue target, or chroot from a bootable usb.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#5 2023-07-31 20:21:10

ZulluBalti
Member
Registered: 2021-04-07
Posts: 92

Re: [SOLVED] Cannot read file data input output error

when I typed "ls" it doesn't show any files/folder it only show that error message.

After restarting the computer two times by hard shutdown it seem to work for now.

Currently I'm keep my computer on until I get some work done as I have some deadlines.

I'll try to use bash and see what happen when I get this error again.
BTW once I don't get this error then no matter for how long I keep my computer on I don't get it.
It's either I get it within 5 mins of  logging in or I don't get it at all.

Offline

#6 2023-07-31 20:37:52

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

Re: [SOLVED] Cannot read file data input output error

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'f:1=<-' ix.io

Also check the disk health: https://wiki.archlinux.org/title/SMART

If this is an nvme, see https://wiki.archlinux.org/title/Solid_ … leshooting

Offline

#7 2023-07-31 20:51:09

ZulluBalti
Member
Registered: 2021-04-07
Posts: 92

Re: [SOLVED] Cannot read file data input output error

Here's the result of journalctl
Journal Result

SMART output
sudo smartctl -a /dev/sda
sudo smartctl -a /dev/sdb

When I try to run

sudo smartctl -a /dev/nvme0

It says that there's not such device as nvme0

Also when I run

sudo nvme list

it says
Failed to scan topology no such file or directory

Offline

#8 2023-07-31 21:04:22

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

Re: [SOLVED] Cannot read file data input output error

I knew I had seen that smartctl result …
https://bbs.archlinux.org/viewtopic.php?id=287579

No idea at hand what

Aug 01 01:41:24 zorch kernel: amdgpu: VBIOS did not find boot engine clock value in dependency table. Using Memory DPM level 0!
Aug 01 01:41:35 zorch kernel: [drm] PCIE GART of 256M enabled (table at 0x000000F400000000).
Aug 01 01:41:35 zorch kernel: amdgpu: can't get the mac of 5

is about, but there's a lot of it.

There's no nvme, but I'd start to worry about sda…

Offline

#9 2023-07-31 21:52:38

ZulluBalti
Member
Registered: 2021-04-07
Posts: 92

Re: [SOLVED] Cannot read file data input output error

can you tell me what SDA is? or provide a link about it.

I currently have vulkan-radeon drivers installed. Any chance that is causing the error?
I'm also using plymouth to display a splash screen during boot. Any link with that and the gpu error?

Offline

#10 2023-07-31 23:52:31

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,463
Website

Re: [SOLVED] Cannot read file data input output error

ZulluBalti wrote:

I'll try to use bash and see what happen when I get this error again.

Bash was just a workaround so you can gather more information.  The file in question is a zsh-specific library, so it couldn't impact anything else (it couldn't affect bash).  So having bash as your root login would be particularly valuable so if / when this happens again, you can still log in and gather data.

I'm useless at interpreting SMART results (I'm not every SMART), but sda there is referring to one of your disks - I gather seth is suggesting it may be worth replacing that disk.  And while I can't make heads or tails of the SMART results, replacing a 128 GB SSD is an easy fix: they're pretty cheep now.  Perfectly good ones can be purchased for $10-15 easily.

Last edited by Trilby (2023-07-31 23:57:03)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#11 2023-08-01 06:00:01

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

Re: [SOLVED] Cannot read file data input output error

There's only one concerning line in that result and they're often (as in this case) rather useless for SSDs, but ZulluBalti has now two threads that reek of IO issues with it, so there's quite possibly a problem with the drive itself, its connection or its power supply.

Offline

Board footer

Powered by FluxBB