• switch_root: failed to execute /sbin/init: Input/output error


    Hi

    Rebooted Antergos with Gnome after update. Just wanted a fresh start.
    First time for this part of my education, so here goes:

    error message as above then:
    kernel panic - not syncing: attempted to kill init exitcode=0x0007e00
    more stuff
    end kernel panic

    I can supply call trace lines etc but reading about problems similar might point to grub.

    I tried booting with usb containing antergos 18.2 live disk and that booted up fine into live.

    its a lenovo z710 ideapad bought in 2014.

    cheers

  • @boogy
    Can you show the contents of file /boot/grub/grub.cfg?
    Especially the menuentry that should boot your system.

    Please report issues including all details! ;-)
    Show files here: cat "file" | curl -F [email protected] https://ptpb.pw/?u=1
    and show the URL.

  • This post is deleted!
  • @boogy
    You are on the right track!
    So what’s the output of

    lsblk -fm
    

    and if possible, tell us where you think the install should be.

    Please report issues including all details! ;-)
    Show files here: cat "file" | curl -F [email protected] https://ptpb.pw/?u=1
    and show the URL.

  • @manuel

    I was really close to getting it right…
    lsblk
    wanted the big disk at /sda/sda2
    sudo mount /dev/sda2 /mnt
    cd /mnt

    then I went wrong by cd /home instead of cd home

    so I am in the right place I think, and I have
    less /boot/grub/grub.cfg open and lloking at line starting:
    menuentry and about 10 lines down there’s a line starting:
    linux /boot/vmlinuz-linux root=UUID=ad4…

  • @boogy
    Sounds right, can you show the contents of that menuentry?

    Please report issues including all details! ;-)
    Show files here: cat "file" | curl -F [email protected] https://ptpb.pw/?u=1
    and show the URL.

  • It should start with

    menuentry {
    

    Please report issues including all details! ;-)
    Show files here: cat "file" | curl -F [email protected] https://ptpb.pw/?u=1
    and show the URL.

  • Somewhere around line 95 here it starts …

    Please report issues including all details! ;-)
    Show files here: cat "file" | curl -F [email protected] https://ptpb.pw/?u=1
    and show the URL.

  • @manuel I can only post after a 5 minute wait…

    I think I went down the rabbit hole again with the last post. When I’m in /mnt I must remember to not do something like cd /boot because then I’m back to the live disk and giving you duff info.

    So, being really careful now.

    cd /mnt
    cd boot
    ls shows nothing - boot on my hard disk is empty

  • @boogy
    So, please show the contents of terminal command

    lsblk -fm
    

    Then we’ll find the correct partition.

    Please report issues including all details! ;-)
    Show files here: cat "file" | curl -F [email protected] https://ptpb.pw/?u=1
    and show the URL.

  • @manuel
    [[email protected] boot]$ lsblk -fm
    NAME FSTYPE LABEL UUID MOUNTPOINT SIZE OWNER GROUP MODE
    loop0
    squash /run/archi 1.8G root disk brw-rw----
    sda 931.5G root disk brw-rw----
    ├─sda1
    │ ext4 AntergosBoot
    │ 90f972da-2fd4-4439-a4b5-043679179a95 255M root disk brw-rw----
    ├─sda2
    │ ext4 AntergosRoot
    │ 9f7ab6ff-dacd-4923-9f2c-3f6cffa875f7 /mnt 925.4G root disk brw-rw----
    ├─sda3
    │ 1K root disk brw-rw----
    └─sda5
    swap AntergosSwap
    73250729-6e7f-4950-8c64-481c940cd290 5.9G root disk brw-rw----
    sdc iso966 ANTERGOS
    │ 2018-02-02-21-16-22-00 7.3G root disk brw-rw----
    ├─sdc1
    │ iso966 ANTERGOS
    │ 2018-02-02-21-16-22-00 /run/archi 1.9G root disk brw-rw----
    └─sdc2
    vfat ARCHISO_EFI
    3AF2-9D6B 64M root disk brw-rw----
    sr0 1024M root optic brw-rw----

  • @boogy
    OK, it seems /mnt is pointing to the correct partition /dev/sda2.
    So you could give this command:

    cat /mnt/boot/grub/grub.cfg | curl -F [email protected] https://ptpb.pw/?u=1
    

    and show the returned URL string here.

    Please report issues including all details! ;-)
    Show files here: cat "file" | curl -F [email protected] https://ptpb.pw/?u=1
    and show the URL.

  • @boogy
    That is empty. Seems that the install went somehow wrong.
    Does command

    ls -la /mnt
    

    show anything?

    Please report issues including all details! ;-)
    Show files here: cat "file" | curl -F [email protected] https://ptpb.pw/?u=1
    and show the URL.

  • @manuel
    [[email protected] boot]$ ls -la /mnt
    total 80
    drwxr-xr-x 18 root root 4096 Mar 12 17:15 .
    drwxr-xr-x 1 root root 140 May 13 14:39 …
    lrwxrwxrwx 1 root root 7 Jan 5 19:17 bin -> usr/bin
    drwxr-xr-x 2 root root 4096 Nov 25 18:05 boot
    drwxr-xr-x 2 root root 4096 Nov 25 18:09 dev
    drwxr-xr-x 91 root root 4096 May 7 13:42 etc
    drwxr-xr-x 4 root root 4096 Nov 25 21:03 home
    lrwxrwxrwx 1 root root 7 Jan 5 19:17 lib -> usr/lib
    lrwxrwxrwx 1 root root 7 Jan 5 19:17 lib64 -> usr/lib
    drwx------ 2 root root 16384 Nov 25 18:04 lost+found
    drwxr-xr-x 2 root root 4096 Mar 26 2017 mnt
    drwxr-xr-x 6 root root 4096 Feb 11 10:39 opt
    drwxr-xr-x 2 root root 4096 Nov 25 18:09 proc
    drwxr-xr-x 19 root root 4096 Mar 16 16:59 root
    drwxr-xr-x 2 root root 4096 Nov 25 18:09 run
    lrwxrwxrwx 1 root root 7 Jan 5 19:17 sbin -> usr/bin
    drwxr-xr-x 4 root root 4096 Nov 25 18:09 srv
    drwxr-xr-x 2 root root 4096 Nov 25 18:09 sys
    drwxr-xr-x 9 root root 4096 Nov 27 14:04 timeshift
    drwxr-xr-x 2 root root 4096 Nov 25 18:09 tmp
    drwxr-xr-x 10 root root 4096 May 5 18:07 usr
    drwxr-xr-x 12 root root 4096 Apr 23 15:46 var

  • And how about command

    ls -la /mnt/boot
    

    ?

    (Note: you can make the text more readable by selecting the text and then press the </> button just above this writing box).

    Please report issues including all details! ;-)
    Show files here: cat "file" | curl -F [email protected] https://ptpb.pw/?u=1
    and show the URL.

  • @manuel said in switch_root: failed to execute /sbin/init: Input/output error:

    ls -la /mnt/boot

    [[email protected] mnt]$ ls -la /mnt/boot
    total 8
    drwxr-xr-x 2 root root 4096 Nov 25 18:05 .
    drwxr-xr-x 18 root root 4096 Mar 12 17:15 …
    [[email protected] mnt]$

  • I accessed my home directory ok and it contained files I recognise…

  • @boogy
    Duh… sorry, I wasn’t thinking right. You need to mount /dev/sda1 to /mnt, there are the grub files. So don’t reinstall just yet! 😉

    So commands:

    sudo umount /mnt
    sudo mount /dev/sda1 /mnt
    

    and then try to show the contents of grub.cfg as mentioned before.

    Please report issues including all details! ;-)
    Show files here: cat "file" | curl -F [email protected] https://ptpb.pw/?u=1
    and show the URL.

  • @manuel said in switch_root: failed to execute /sbin/init: Input/output error:

    sudo mount /dev/sda1 /mnt

    Oh, I see what you mean - my partition system has /boot on a different partition - doh!

    sudo umount /mnt
    [[email protected] /]$ sudo mount /dev/sda1 /mnt
    [[email protected] /]$ ls
    arch bin boot dev etc home lib lib64 mnt opt proc root run sbin srv sys tmp usr var
    [[email protected] /]$ cd /mnt
    [[email protected] mnt]$ ls
    grub initramfs-linux.img initramfs-linux-lts.img lost+found vmlinuz-linux
    initramfs-linux-fallback.img initramfs-linux-lts-fallback.img intel-ucode.img memtest86+ vmlinuz-linux-lts
    [[email protected] mnt]$

    I modified your command to capture the whole file:

    sudo cat grub.cfg | curl -F [email protected] https://ptpb.pw/?u=1
    and the full output is here:
    https://ptpb.pw/Sr0t

execute3 inputoutput1 sbininit1 switchroot1 Posts 48Views 484
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.