You are not logged in.

#1 2015-12-03 05:44:39

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Can't boot, failed to execute sbin/init : Input/Output error

I can't boot regularly, but I can chroot into the system with the live disc.  /sbin/init exists and points to systemd

The boot stops and give the message "failed to execute sbin/init : Exec format error"  and doesn't get past that step. 

I tried to resume mkinitcpio -p linux and mkinitcpio -p linux-lts with the live disc, but I get invalid image.  And I'm not even sure if that would fix it. 

My libraries are all up to date.

Last edited by svalmont (2015-12-04 19:50:08)

Offline

#2 2015-12-03 05:59:00

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,712

Re: Can't boot, failed to execute sbin/init : Input/Output error

Usually means your bootloader is pointing to the wrong root partition.

Offline

#3 2015-12-03 06:01:57

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Can't boot, failed to execute sbin/init : Input/Output error

Its pointing to the correct partition, I double checked.  I've also tried launching the rescue, emergency, and init=/bin/sh recover shells, but none will launch.  An addition to the message above (which I'll edit up there as well)  The full message is "failed to execute sbin/init : Exec format error".

Offline

#4 2015-12-03 06:09:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,712

Re: Can't boot, failed to execute sbin/init : Input/Output error

Oh! Exec format error. 32-bit kernel and 64 bit userspace?

Offline

#5 2015-12-03 12:57:51

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Can't boot, failed to execute sbin/init : Input/Output error

No, unless pacman somehow inserted a 32-bit kernel. I've been running 64-bit for a long time.

Offline

#6 2015-12-03 16:20:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,712

Re: Can't boot, failed to execute sbin/init : Input/Output error

It should be dropping you to a command prompt inside the initramfs. What does `uname -a` tell you?

Offline

#7 2015-12-03 16:22:19

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Can't boot, failed to execute sbin/init : Input/Output error

It does not drop me to a command prompt.  Kernel panic messages after the original message.

Offline

#8 2015-12-03 16:44:59

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Can't boot, failed to execute sbin/init : Input/Output error

svalmont wrote:

I tried to resume mkinitcpio -p linux and mkinitcpio -p linux-lts with the live disc, but I get invalid image.

What exactly do you mean?

Offline

#9 2015-12-03 16:51:44

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Can't boot, failed to execute sbin/init : Input/Output error

I booted the live disc and attempted to create a new init file by using the commands, "mkinicpio -p linux-lts" and "mkinitcpio -p linux" (seperately).

with the linux-lts I received a .preset file not found error and with the regular linux kernel I received specific kernel image does not exist.  In both instances the files do exist. 

This is how I mount my live disc:

mount /dev/sdax /mnt
cd /mnt/
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/
mount -t devpts pts dev/pts/
chroot /mnt /bin/bash
mount /dev/sday /var (I have a seperate /var partition)

Offline

#10 2015-12-03 16:59:35

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,712

Re: Can't boot, failed to execute sbin/init : Input/Output error

So separate /boot partition? EFI partition?

Offline

#11 2015-12-03 17:07:14

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Can't boot, failed to execute sbin/init : Input/Output error

No separate boot partition.  I have root, home and var seperated.  The system boots in BIOS-MBR mode.

Offline

#12 2015-12-03 17:11:09

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,712

Re: Can't boot, failed to execute sbin/init : Input/Output error

Starting to sound like hardware to me. Either filesystem or memory corruption.

Offline

#13 2015-12-03 17:20:03

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Can't boot, failed to execute sbin/init : Input/Output error

Then why will chroot work?  I there something I can reinstall incase its file corruption?  I've already reinstalled glibc, linux and linux-lts.

Offline

#14 2015-12-03 19:28:47

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Can't boot, failed to execute sbin/init : Input/Output error

Maybe something's wrong with mkinitcpio configuration files?

Offline

#15 2015-12-03 19:47:25

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Can't boot, failed to execute sbin/init : Input/Output error

my only entry in etc/mkinitcpio.conf --  HOOKS="base udev autodetect modconf block filesystems keyboard fsck"

in /etc/mkinitcpio.d directory:

linux.preset  :

# mkinitcpio preset file for the 'linux' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-linux-fallback.img"
fallback_options="-S autodetect"

linux-lts.preset  : 
# mkinitcpio preset file for the 'linux-lts' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux-lts"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux-lts.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-linux-lts-fallback.img"
fallback_options="-S autodetect"

Although vmlinuz-linux-lts is zero bytes.  I can regenerate that with pacman reinstall, but why doesn't the regular kernel work?

Last edited by svalmont (2015-12-04 19:49:22)

Offline

#16 2015-12-03 20:47:44

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Can't boot, failed to execute sbin/init : Input/Output error

You may want to use the "code" tags.

It's quite weird that preset files are missing or vmlinuz is zero length. If the files are broken after relevant packages have been reinstalled, something is certainly wrong.

Does the filesystem pass fsck? Any disk IO errors in dmesg?

Offline

#17 2015-12-04 00:07:21

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Can't boot, failed to execute sbin/init : Input/Output error

No io messages that I saw in dmesg, and it did get past the fsck. I did remove and then move back my files from a working copy for bin, sbin, and usr folders and then added my files back. That seemed to get it to fail to the filefs command line now, but still the same error message. Can I somehow run mkinitcpio from that command line?

Offline

#18 2015-12-04 17:57:32

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Can't boot, failed to execute sbin/init : Input/Output error

I found out that usr/lib/systemd files were corrupt.  I replace those with a previous working copy and not I still get "Failed to execute /sbin/init/ : Input/Output error" 

Its finding the file now, but I'm not sure what is going wrong in the init script here.

Also when I try to chroot into my system either through the live disc or another partition it says "Cannot execute /bin/bash : Input/Output error" as well.

Last edited by svalmont (2015-12-04 19:47:39)

Offline

#19 2015-12-04 20:34:52

mich41
Member
Registered: 2012-06-22
Posts: 796

Re: Can't boot, failed to execute sbin/init : Input/Output error

Now this really looks like hardware errors. Run smartctl -a on this disk to see what's going on.

Offline

#20 2015-12-05 16:15:47

svalmont
Member
From: Londonderry, NH
Registered: 2013-04-05
Posts: 81
Website

Re: Can't boot, failed to execute sbin/init : Input/Output error

Smartctl -a responded with "command not found "

So I "solved" the initial problem. I copied the usr/lib of a fresh install into my system and I can at least boot to a command line. I tried copying my other files from usr/lib in, but only folders beginning with A-M, have worked with no issues. I'm guessing the problem I had lies somewhere with the other files. I would at least like to get X running again.

Last edited by svalmont (2015-12-05 16:16:38)

Offline

Board footer

Powered by FluxBB