# Bash input/output error when arch-chrooting into system

**URL:** <https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816>\
**Category:** Kernel, boot, graphics & hardware\
**Created:** [May 4, 2024, 2:16pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816 "2024-05-04T14:16:07Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayumin](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mayumin](https://forum.endeavouros.com/u/mayumin)\
**Post date:** [May 4, 2024, 2:16pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816/1 "2024-05-04T14:16:07Z")

</div>

I accidentally bricked my system while updating today and I have been following [this page](https://discovery.endeavouros.com/system-rescue/arch-chroot/2022/12/) to fix booting issues (I don’t see EndeavourOS as a boot option right now). It all goes well until I need to actually chroot into the system. I get the following error:

`chroot: failed to run command '/bin/bash': Input/output error`

I have looked for similar errors online and they all discuss hardware issues, but I’m doubtful this is the case since everything worked perfectly well until today and I have a dualboot with Windows working perfectly. Any idea what the problem might be?

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [May 4, 2024, 2:43pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816/2 "2024-05-04T14:43:53Z")

</div>

Can you share the full series of commands you ran to chroot so we can see what might have gone wrong?

---

<div class="post-metadata">

**Author:** ![mayumin](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mayumin](https://forum.endeavouros.com/u/mayumin)\
**Post date:** [May 4, 2024, 2:51pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816/3 "2024-05-04T14:51:49Z")

</div>

Here is what I did:

`sudo mount /dev/nvme0n1p6 /mnt`  
`sudo cat /mnt/etc/fstab`  
`sudo mount /dev/nvme0n1p8 /mnt/efi`  
`sudo arch-chroot /mnt`

A friend of mine suggested I might have broken bash during the upgrade, and to rebuild bash on my system using the live environment’s pacman, but I also got an error here, namely:

`(1/1) reinstalling bash`  
`call to execv failed (Input/output error)`  
`error: command failed to execute correctly`  
`call to execv failed (Exec format error)`  
`error: command failed to execute correctly`

EDIT: Tried reinstalling `base` too, it gives me similar errors.

---

<div class="post-metadata">

**Author:** ![mayumin](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mayumin](https://forum.endeavouros.com/u/mayumin)\
**Post date:** [May 4, 2024, 3:00pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816/4 "2024-05-04T15:00:28Z")

</div>

Ok, I might have found an important issue. I ran:

`sudo pacman --sysroot /mnt -S $(pacman -Qeq)`

and I found a conflict between `mkinitcpio` and `kernel-install-for-dracut`. I assume it’s this conflict that’s preventing me from booting into my linux system. Could anyone tell me which one EndeavourOS naturally uses?

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [May 4, 2024, 3:03pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816/5 "2024-05-04T15:03:32Z")

</div>

dracut is what we use.

Although, that probably isnt your issue in this case

Have you tried checking your filesystem?

---

<div class="post-metadata">

**Author:** ![mayumin](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mayumin](https://forum.endeavouros.com/u/mayumin)\
**Post date:** [May 4, 2024, 3:05pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816/6 "2024-05-04T15:05:38Z")

</div>

I see, thank you. What do you mean by checking your filesystem exactly?

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [May 4, 2024, 3:09pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816/7 "2024-05-04T15:09:09Z")

</div>

Unless it is btrfs, run fsck on it.

---

<div class="post-metadata">

**Author:** ![mayumin](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mayumin](https://forum.endeavouros.com/u/mayumin)\
**Post date:** [May 4, 2024, 3:14pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816/8 "2024-05-04T15:14:23Z")

</div>

After unmounting, I get:

`/dev/nvme0n1p6: clean, 642010/4268032 files, 13983489/17051904 blocks`

For the boot portion:

`/dev/nvme0n1p8: 196 files, 6555/255612 clusters`

---

<div class="post-metadata">

**Author:** ![mayumin](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mayumin](https://forum.endeavouros.com/u/mayumin)\
**Post date:** [May 4, 2024, 3:46pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816/9 "2024-05-04T15:46:33Z")

</div>

Ok, well. I reinstalled the `base` packages (which include `bash` as far as I’m aware). I also reinstalled dependencies (and some weren’t found for some reason). I think it’s probably easier to just save my /home folder and reinstall EndeavourOS.

---

<div class="post-metadata">

**Author:** ![dalto](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/dalto/32/5577_2.png) [@dalto](https://forum.endeavouros.com/u/dalto)\
**Post date:** [May 4, 2024, 4:11pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816/10 "2024-05-04T16:11:18Z")

</div>

> [@mayumin](#):
>
> I reinstalled the `base` packages

How are you reinstalling them?

---

<div class="post-metadata">

**Author:** ![mayumin](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mayumin](https://forum.endeavouros.com/u/mayumin)\
**Post date:** [May 4, 2024, 4:18pm UTC](https://forum.endeavouros.com/t/bash-input-output-error-when-arch-chrooting-into-system/54816/11 "2024-05-04T16:18:11Z")

</div>

I used:

`sudo pacman --sysroot /mnt -S $(pacman --sysroot /mnt -Qeq)`

To check the dependencies, I used:

`sudo pacman --sysroot /mnt -S --asdeps $(pacman --sysroot /mnt -Qdq)`

After this, I tried arch-chrooting again but to no avail. I got the same Input/output error.
