After upgrading Tumbleweed 3 days ago to latest version 5.17.4-1.1. I got a new kernel which is unable to boot completely. I can still boot using the previous kernel I have which 5.16.15-1
Are there any guide to follow to diagnose such problems and what to do in such case?
https://i.ibb.co/2s3NwJ6/Whats-App-Image-2022-04-26-at-6-52-53-PM.jpg
Boot with plymouth.enable=0 and without “quiet” on kernel command line, it may provide some more information.
“Unable to boot” is no really useful. Boot may stall at many different stages and everyone understands “unable to boot” differently. Do you see bootloader interface (I assume yes, otherwise you would not be able to select previous kernel)? What happens when you select boot option? DO you see any output? What is the last output you see? You said “completely” which implies you boot until some point?
The problem occurs almost immediately after choosing the boot option. And yes, I see the boot loader. I have tried to boot with the option you suggested. The image below shows the output (The screen is damaged so some parts are unreadable). I think the related line is this:
No filesystem could mount root, tried:
Kernel Panic - not syncing VFS: Unable to mount root fs on unkown-block(8,6)
https://i.ibb.co/41D0WZd/IMG-20220426-201524.jpg
It failed to load initrd. Please show
cat /etc/fstab
df -h /boot
ls -l /boot
and upload /boot/grub2/grub.cfg to https://susepaste.org/
user@hpenvydv6:~> cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=e8ffdd38-9e1d-450b-b7ab-fdbb3cb4a989 / ext4 defaults,noatime 0 1
user@hpenvydv6:~> df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 37G 18G 17G 51% /
user@hpenvydv6:~> ls -l /boot
total 640524
-rw-r--r-- 1 root root 1725 أبر 9 09:25 boot.readme
-rw-r--r-- 1 root root 247823 يون 15 2021 config-5.12.10-1-default
-rw-r--r-- 1 root root 247802 يون 22 2021 config-5.12.12-1-default
-rw-r--r-- 1 root root 247823 يون 28 2021 config-5.12.13-1-default
-rw-r--r-- 1 root root 247784 ماي 15 2021 config-5.12.3-1-default
-rw-r--r-- 1 root root 247822 يون 4 2021 config-5.12.9-1-default
-rw-r--r-- 1 root root 250429 أغس 20 2021 config-5.13.12-1-default
-rw-r--r-- 1 root root 250025 أغس 8 2021 config-5.13.8-1-default
lrwxrwxrwx 1 root root 43 نوف 2 12:26 config-5.14.14-1-default -> ../usr/lib/modules/5.14.14-1-default/config
lrwxrwxrwx 1 root root 42 أكت 12 2021 config-5.14.9-1-default -> ../usr/lib/modules/5.14.9-1-default/config
lrwxrwxrwx 1 root root 42 ديس 17 22:31 config-5.15.7-1-default -> ../usr/lib/modules/5.15.7-1-default/config
lrwxrwxrwx 1 root root 43 مار 22 11:46 config-5.16.15-1-default -> ../usr/lib/modules/5.16.15-1-default/config
lrwxrwxrwx 1 root root 42 فبر 15 12:29 config-5.16.8-1-default -> ../usr/lib/modules/5.16.8-1-default/config
lrwxrwxrwx 1 root root 42 أبر 25 04:00 config-5.17.4-1-default -> ../usr/lib/modules/5.17.4-1-default/config
-rw-r--r-- 1 root root 0 أبر 25 04:00 do_purge_kernels
drwxr-xr-x 5 root root 4096 أبر 25 04:36 grub2
lrwxrwxrwx 1 root root 23 أبر 25 04:00 initrd -> initrd-5.17.4-1-default
-rw------- 1 root root 26384913 أبر 26 00:02 initrd-5.12.10-1-default
-rw------- 1 root root 26385232 أبر 26 00:02 initrd-5.12.12-1-default
-rw------- 1 root root 26383321 أبر 26 00:03 initrd-5.12.13-1-default
-rw------- 1 root root 26379311 أبر 26 00:03 initrd-5.12.3-1-default
-rw------- 1 root root 26382555 أبر 26 00:04 initrd-5.12.9-1-default
-rw------- 1 root root 26953370 أبر 26 00:04 initrd-5.13.12-1-default
-rw------- 1 root root 26957984 أبر 26 00:05 initrd-5.13.12-2-default
-rw------- 1 root root 26952088 أبر 26 00:05 initrd-5.13.13-1-default
-rw------- 1 root root 26542989 أبر 26 00:06 initrd-5.13.8-1-default
-rw------- 1 root root 26965430 أبر 26 00:06 initrd-5.14.14-1-default
-rw------- 1 root root 24457194 أبر 26 00:07 initrd-5.14.9-1-default
-rw------- 1 root root 29161749 أبر 26 00:07 initrd-5.15.7-1-default
-rw------- 1 root root 44892196 أبر 26 00:08 initrd-5.16.15-1-default
-rw------- 1 root root 44509447 أبر 26 00:08 initrd-5.16.8-1-default
-rw------- 1 root root 45252144 أبر 26 00:09 initrd-5.17.4-1-default
-rw-r--r-- 1 root root 421888 أبر 25 03:45 message
-rw-r--r-- 1 root root 443241 يون 16 2021 symvers-5.12.10-1-default.gz
-rw-r--r-- 1 root root 443241 يون 22 2021 symvers-5.12.12-1-default.gz
-rw-r--r-- 1 root root 443230 يون 28 2021 symvers-5.12.13-1-default.gz
-rw-r--r-- 1 root root 470221 ماي 15 2021 symvers-5.12.3-1-default.gz
-rw-r--r-- 1 root root 443237 يون 4 2021 symvers-5.12.9-1-default.gz
-rw-r--r-- 1 root root 446314 أغس 20 2021 symvers-5.13.12-1-default.gz
-rw-r--r-- 1 root root 445809 أغس 8 2021 symvers-5.13.8-1-default.gz
-rw-r--r-- 1 root root 484 يون 16 2021 sysctl.conf-5.12.10-1-default
-rw-r--r-- 1 root root 484 يون 22 2021 sysctl.conf-5.12.12-1-default
-rw-r--r-- 1 root root 484 يون 28 2021 sysctl.conf-5.12.13-1-default
-rw-r--r-- 1 root root 484 ماي 15 2021 sysctl.conf-5.12.3-1-default
-rw-r--r-- 1 root root 484 يون 4 2021 sysctl.conf-5.12.9-1-default
-rw-r--r-- 1 root root 484 أغس 20 2021 sysctl.conf-5.13.12-1-default
lrwxrwxrwx 1 root root 48 أغس 26 2021 sysctl.conf-5.13.12-2-default -> ../usr/lib/modules/5.13.12-2-default/sysctl.conf
lrwxrwxrwx 1 root root 48 سبت 4 2021 sysctl.conf-5.13.13-1-default -> ../usr/lib/modules/5.13.13-1-default/sysctl.conf
-rw-r--r-- 1 root root 484 أغس 8 2021 sysctl.conf-5.13.8-1-default
lrwxrwxrwx 1 root root 48 نوف 2 12:26 sysctl.conf-5.14.14-1-default -> ../usr/lib/modules/5.14.14-1-default/sysctl.conf
lrwxrwxrwx 1 root root 47 أكت 12 2021 sysctl.conf-5.14.9-1-default -> ../usr/lib/modules/5.14.9-1-default/sysctl.conf
lrwxrwxrwx 1 root root 47 ديس 17 22:31 sysctl.conf-5.15.7-1-default -> ../usr/lib/modules/5.15.7-1-default/sysctl.conf
lrwxrwxrwx 1 root root 48 مار 22 11:46 sysctl.conf-5.16.15-1-default -> ../usr/lib/modules/5.16.15-1-default/sysctl.conf
lrwxrwxrwx 1 root root 47 فبر 15 12:29 sysctl.conf-5.16.8-1-default -> ../usr/lib/modules/5.16.8-1-default/sysctl.conf
lrwxrwxrwx 1 root root 47 أبر 25 04:00 sysctl.conf-5.17.4-1-default -> ../usr/lib/modules/5.17.4-1-default/sysctl.conf
-rw-r--r-- 1 root root 5172544 يون 16 2021 System.map-5.12.10-1-default
-rw-r--r-- 1 root root 5172830 يون 22 2021 System.map-5.12.12-1-default
-rw-r--r-- 1 root root 5173115 يون 28 2021 System.map-5.12.13-1-default
-rw-r--r-- 1 root root 5173732 ماي 15 2021 System.map-5.12.3-1-default
-rw-r--r-- 1 root root 5172440 يون 4 2021 System.map-5.12.9-1-default
-rw-r--r-- 1 root root 5056819 أغس 20 2021 System.map-5.13.12-1-default
lrwxrwxrwx 1 root root 47 أغس 26 2021 System.map-5.13.12-2-default -> ../usr/lib/modules/5.13.12-2-default/System.map
lrwxrwxrwx 1 root root 47 سبت 4 2021 System.map-5.13.13-1-default -> ../usr/lib/modules/5.13.13-1-default/System.map
-rw-r--r-- 1 root root 5243318 أغس 8 2021 System.map-5.13.8-1-default
lrwxrwxrwx 1 root root 47 نوف 2 12:26 System.map-5.14.14-1-default -> ../usr/lib/modules/5.14.14-1-default/System.map
lrwxrwxrwx 1 root root 46 أكت 12 2021 System.map-5.14.9-1-default -> ../usr/lib/modules/5.14.9-1-default/System.map
lrwxrwxrwx 1 root root 46 ديس 17 22:31 System.map-5.15.7-1-default -> ../usr/lib/modules/5.15.7-1-default/System.map
lrwxrwxrwx 1 root root 47 مار 22 11:46 System.map-5.16.15-1-default -> ../usr/lib/modules/5.16.15-1-default/System.map
lrwxrwxrwx 1 root root 46 فبر 15 12:29 System.map-5.16.8-1-default -> ../usr/lib/modules/5.16.8-1-default/System.map
lrwxrwxrwx 1 root root 46 أبر 25 04:00 System.map-5.17.4-1-default -> ../usr/lib/modules/5.17.4-1-default/System.map
-rw-r--r-- 1 root root 11672604 يون 16 2021 vmlinux-5.12.10-1-default.xz
-rw-r--r-- 1 root root 11704352 يون 22 2021 vmlinux-5.12.12-1-default.xz
-rw-r--r-- 1 root root 11678668 يون 28 2021 vmlinux-5.12.13-1-default.xz
-rw-r--r-- 1 root root 11705660 ماي 15 2021 vmlinux-5.12.3-1-default.xz
-rw-r--r-- 1 root root 11673048 يون 4 2021 vmlinux-5.12.9-1-default.xz
-rw-r--r-- 1 root root 11659488 أغس 20 2021 vmlinux-5.13.12-1-default.xz
-rw-r--r-- 1 root root 12108940 أغس 8 2021 vmlinux-5.13.8-1-default.xz
lrwxrwxrwx 1 root root 24 أبر 25 04:00 vmlinuz -> vmlinuz-5.17.4-1-default
-rw-r--r-- 1 root root 11024144 يون 16 2021 vmlinuz-5.12.10-1-default
-rw-r--r-- 1 root root 11021872 يون 22 2021 vmlinuz-5.12.12-1-default
-rw-r--r-- 1 root root 11020368 يون 29 2021 vmlinuz-5.12.13-1-default
-rw-r--r-- 1 root root 11033424 ماي 15 2021 vmlinuz-5.12.3-1-default
-rw-r--r-- 1 root root 11022480 يون 4 2021 vmlinuz-5.12.9-1-default
-rw-r--r-- 1 root root 10981680 أغس 20 2021 vmlinuz-5.13.12-1-default
lrwxrwxrwx 1 root root 44 أغس 26 2021 vmlinuz-5.13.12-2-default -> ../usr/lib/modules/5.13.12-2-default/vmlinuz
lrwxrwxrwx 1 root root 44 سبت 4 2021 vmlinuz-5.13.13-1-default -> ../usr/lib/modules/5.13.13-1-default/vmlinuz
-rw-r--r-- 1 root root 11414416 أغس 8 2021 vmlinuz-5.13.8-1-default
lrwxrwxrwx 1 root root 44 نوف 2 12:26 vmlinuz-5.14.14-1-default -> ../usr/lib/modules/5.14.14-1-default/vmlinuz
lrwxrwxrwx 1 root root 43 أكت 12 2021 vmlinuz-5.14.9-1-default -> ../usr/lib/modules/5.14.9-1-default/vmlinuz
lrwxrwxrwx 1 root root 43 ديس 17 22:31 vmlinuz-5.15.7-1-default -> ../usr/lib/modules/5.15.7-1-default/vmlinuz
lrwxrwxrwx 1 root root 44 مار 22 11:46 vmlinuz-5.16.15-1-default -> ../usr/lib/modules/5.16.15-1-default/vmlinuz
lrwxrwxrwx 1 root root 43 فبر 15 12:29 vmlinuz-5.16.8-1-default -> ../usr/lib/modules/5.16.8-1-default/vmlinuz
lrwxrwxrwx 1 root root 43 أبر 25 04:00 vmlinuz-5.17.4-1-default -> ../usr/lib/modules/5.17.4-1-default/vmlinuz
As expected initrd is not loaded at all.
menuentry 'GeckoLinux ROLLING Mate' --class geckolinux --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e8ffdd38-9e1d-450b-b7ab-fdbb3cb4a989' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos6'
if x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 e8ffdd38-9e1d-450b-b7ab-fdbb3cb4a989
else
search --no-floppy --fs-uuid --set=root e8ffdd38-9e1d-450b-b7ab-fdbb3cb4a989
fi
echo 'Loading Linux 5.17.4-1-default ...'
linux /boot/vmlinuz-5.17.4-1-default root=/dev/sda6 quiet splash apparmor=0
}
Run “update-bootloader --refresh” and check /boot/grub2/grub.cfg - entry for this kernel should now contain additionally as the last commands
echo 'Loading initial ramdisk ...'
initrd /boot/initrd-5.17.4-1-default
similar to entries for other kernels. With theses lines kernel should boot. Please let us know the result.
The kernel can boot normally now. Your command has fixed the problem. Though, I don’t understand what caused it in the first place
Thanks for your help