First of all, kudos on the classiest linux distro I have seen (and I’ve been a exclusive linux user for over a decade, and worked on at least 25 distros).
I am a happy user of AL. Some time ago, I suddenly was unable to log in using the standard boot option for AL. It would get stuck with “kernel panic.” However, the fallback initramfs option always works, and that is how I am going about it. Wanted to learn more about the system using this issue as a focus. If anyone can guide, it would be great. Thanks in advance!
Check that the booted kernel version matches the modules:
uname -r
ls /usr/lib/modules
Also check the installed kernel version and the kernel image itself:
pacman -Q linux
file /boot/vmlinuz-linux
This presumes that you are using the vanilla kernel version.
Thanks. I did all of these, and the answer is the same on all. I am running 5.7.5-arch1-1. Anything else I should try?
Update your system to pull in the latest kernel version, the initramfs will be rebuilt when that happens.
pacman -Syu
If the system still won’t boot the non-fallback option then please post the output of
grep -v '^#\|^$' /etc/mkinitcpio.conf
I did as you asked, and still same problem. Here is the output you had asked for:
MODULES=()
BINARIES=()
FILES=()
HOOKS=(base udev autodetect modconf block filesystems shutdown keyboard fsck)
Show /boot/grub/grub.cfg
Here it is; sorry it is rather long.
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos2' --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 17437118-925c-40b0-8d54-b0f18b6d36bd
else
search --no-floppy --fs-uuid --set=root 17437118-925c-40b0-8d54-b0f18b6d36bd
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'ArchLabs Linux' --class archlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-17437118-925c-40b0-8d54-b0f18b6d36bd' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos2' --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 17437118-925c-40b0-8d54-b0f18b6d36bd
else
search --no-floppy --fs-uuid --set=root 17437118-925c-40b0-8d54-b0f18b6d36bd
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=17437118-925c-40b0-8d54-b0f18b6d36bd rw
echo 'Loading initial ramdisk ...'
initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-linux.img
}
submenu 'Advanced options for ArchLabs Linux' $menuentry_id_option 'gnulinux-advanced-17437118-925c-40b0-8d54-b0f18b6d36bd' {
menuentry 'ArchLabs Linux, with Linux linux' --class archlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-17437118-925c-40b0-8d54-b0f18b6d36bd' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos2' --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 17437118-925c-40b0-8d54-b0f18b6d36bd
else
search --no-floppy --fs-uuid --set=root 17437118-925c-40b0-8d54-b0f18b6d36bd
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=17437118-925c-40b0-8d54-b0f18b6d36bd rw
echo 'Loading initial ramdisk ...'
initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-linux.img
}
menuentry 'ArchLabs Linux, with Linux linux (fallback initramfs)' --class archlabs --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-17437118-925c-40b0-8d54-b0f18b6d36bd' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos2' --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 17437118-925c-40b0-8d54-b0f18b6d36bd
else
search --no-floppy --fs-uuid --set=root 17437118-925c-40b0-8d54-b0f18b6d36bd
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=17437118-925c-40b0-8d54-b0f18b6d36bd rw
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Ubuntu 19.04 (19.04) (on /dev/sda1)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-f9b9de94-2335-4477-a02e-630f83a7b77e' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 f9b9de94-2335-4477-a02e-630f83a7b77e
else
search --no-floppy --fs-uuid --set=root f9b9de94-2335-4477-a02e-630f83a7b77e
fi
linux /boot/vmlinuz-5.0.0-13-generic root=UUID=f9b9de94-2335-4477-a02e-630f83a7b77e ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.0.0-13-generic
}
submenu 'Advanced options for Ubuntu 19.04 (19.04) (on /dev/sda1)' $menuentry_id_option 'osprober-gnulinux-advanced-f9b9de94-2335-4477-a02e-630f83a7b77e' {
menuentry 'Ubuntu (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.0.0-13-generic--f9b9de94-2335-4477-a02e-630f83a7b77e' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 f9b9de94-2335-4477-a02e-630f83a7b77e
else
search --no-floppy --fs-uuid --set=root f9b9de94-2335-4477-a02e-630f83a7b77e
fi
linux /boot/vmlinuz-5.0.0-13-generic root=UUID=f9b9de94-2335-4477-a02e-630f83a7b77e ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.0.0-13-generic
}
menuentry 'Ubuntu, with Linux 5.0.0-13-generic (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.0.0-13-generic--f9b9de94-2335-4477-a02e-630f83a7b77e' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 f9b9de94-2335-4477-a02e-630f83a7b77e
else
search --no-floppy --fs-uuid --set=root f9b9de94-2335-4477-a02e-630f83a7b77e
fi
linux /boot/vmlinuz-5.0.0-13-generic root=UUID=f9b9de94-2335-4477-a02e-630f83a7b77e ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.0.0-13-generic
}
menuentry 'Ubuntu, with Linux 5.0.0-13-generic (recovery mode) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.0.0-13-generic--f9b9de94-2335-4477-a02e-630f83a7b77e' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 f9b9de94-2335-4477-a02e-630f83a7b77e
else
search --no-floppy --fs-uuid --set=root f9b9de94-2335-4477-a02e-630f83a7b77e
fi
linux /boot/vmlinuz-5.0.0-13-generic root=UUID=f9b9de94-2335-4477-a02e-630f83a7b77e ro recovery nomodeset
initrd /boot/initrd.img-5.0.0-13-generic
}
menuentry 'Ubuntu, with Linux 5.0.0-11-generic (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.0.0-11-generic--f9b9de94-2335-4477-a02e-630f83a7b77e' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 f9b9de94-2335-4477-a02e-630f83a7b77e
else
search --no-floppy --fs-uuid --set=root f9b9de94-2335-4477-a02e-630f83a7b77e
fi
linux /boot/vmlinuz-5.0.0-11-generic root=UUID=f9b9de94-2335-4477-a02e-630f83a7b77e ro quiet splash $vt_handoff
initrd /boot/initrd.img-5.0.0-11-generic
}
menuentry 'Ubuntu, with Linux 5.0.0-11-generic (recovery mode) (on /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.0.0-11-generic--f9b9de94-2335-4477-a02e-630f83a7b77e' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,msdos1' --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 f9b9de94-2335-4477-a02e-630f83a7b77e
else
search --no-floppy --fs-uuid --set=root f9b9de94-2335-4477-a02e-630f83a7b77e
fi
linux /boot/vmlinuz-5.0.0-11-generic root=UUID=f9b9de94-2335-4477-a02e-630f83a7b77e ro recovery nomodeset
initrd /boot/initrd.img-5.0.0-11-generic
}
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/60_memtest86+ ###
if [ "${grub_platform}" == "pc" ]; then
menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
search --fs-uuid --no-floppy --set=root --hint-ieee1275='ieee1275//disk@0,msdos2' --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 17437118-925c-40b0-8d54-b0f18b6d36bd
linux16 /boot/memtest86+/memtest.bin
}
fi
### END /etc/grub.d/60_memtest86+ ###
I should also add: the point at which the boot hangs is “end kernel panic: failed to mount VFS …” It enters kernel panic earlier, then ends KP, and immediately hangs.
initrd /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-linux.img >> initrd /boot/initramfs-linux.img
Just to clarify: you want me to replace the text before the “>>” sign by the text after, right. I will do that and reboot.
Exactly
I did it Mr. Slav. It did not work. Same problem: it hangs at the “end kernel panic” same as earlier. Should I try something else? Thanks.
Also, just to be clear: that pattern occurred twice in that file, and I changed both occurrences.
And You didn’t do it after updating the kernel in ubuntu
No, I didn’t do anything after updating the Ubuntu partition. Do you want me to change that pattern even in the ubuntu partition?
No.It is necessary to reinstall grub from AL
I see. How can I do that? Does that not happen automatically when I did update? I can do it: just don’t know how exactly to…
#grub-instsll /dev/sda
#grub-mkconfig /boot/grub/grub.cfg
Just making sure: when I do grub-install /dev/sda, it says “error, cannot delete /boot/grub/i386-pc/linux16.mod”: permission denied.
I can do it sudo, but just want to make sure that is what you want me to do. Will do it when you give OK.
The # symbol assumes that you are root