You are not logged in.
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
Usually means your bootloader is pointing to the wrong root partition.
Offline
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
Oh! Exec format error. 32-bit kernel and 64 bit userspace?
Offline
No, unless pacman somehow inserted a 32-bit kernel. I've been running 64-bit for a long time.
Offline
It should be dropping you to a command prompt inside the initramfs. What does `uname -a` tell you?
Offline
It does not drop me to a command prompt. Kernel panic messages after the original message.
Offline
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
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
So separate /boot partition? EFI partition?
Offline
No separate boot partition. I have root, home and var seperated. The system boots in BIOS-MBR mode.
Offline
Starting to sound like hardware to me. Either filesystem or memory corruption.
Offline
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
Maybe something's wrong with mkinitcpio configuration files?
Offline
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
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
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
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
Now this really looks like hardware errors. Run smartctl -a on this disk to see what's going on.
Offline
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