[WORKAROUND] Kernel panics after upgrade to 4.4.26

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[WORKAROUND] Kernel panics after upgrade to 4.4.26

Postby mla » Oct 25th, '16, 15:28

Ever since the upgrade to kernel 4.4.26 a few days ago, my machine cannot be booted via the default GRUB2 boot option -- the one that uses symbolic links pointing to the vmlinuz and initrd files, rather than the files themselves. I almost immediately get kernel panic with "VFS: unable to mount root fs on unknown-block(0,0)". Yet if I go to "advanced options" and select the entry which boots from the actual 4.4.26 vmlinuz and initrd file, all is well. Looks like maybe it is some timing problem. Or maybe it is something to do with the fact that I am booting from a btrfs drive.

I know I can change the default menu entry and having worked out that the default I want is (non-obviously!) '0>2' I'll do that in a moment, with my fingers croseed. :-) But is anybody else seeing this problem?
Last edited by mla on Oct 26th, '16, 18:56, edited 2 times in total.
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: Kernel panics after upgrade to 4.4.26

Postby mla » Oct 25th, '16, 15:38

Hmmm... Should have tried that change of default before posting. The system still panics, even though the correct entry is highlighted in the grub2 sub-menu. Yet if I use that same entry "manually", it works fine. Similarly, if I use the safe mode, there are no problems. Very odd!...
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: Kernel panics after upgrade to 4.4.26

Postby gohlip » Oct 25th, '16, 18:52

Let's start with doing the basics.
First do a dracut and then a grub-mkconfig. Let us know if this helps.
Code: Select all
sudo dracut -f
sudo grub2-mkconfig -o /boot/grub2/grub.cfg


[edit] - Oops - I mean
Code: Select all
# dracut -f
# grub2-mkconfig -o /boot/grub2/grub.cfg
as in
Code: Select all
su -
dracut -f
grub2-mkconfig -o /boot/grub2/grub.cfg
sorry (it (sudo) works for my mageia as i set it to work)

ps: don't worry if there are dracut modules not found when doing dracut.
Also don't understand
Yet if I use that same entry "manually", it works fine.

Are you saying if you type in manually from a grub prompt (grub>) exactly the same as the entry from the grub.cfg, it works?
It should be the same (both should work or both won't).

It will help much if you can include grub.cfg and what is in /boot
Code: Select all
cat /boot/grub2/grub.cfg
cat /proc/cmdline
ls /boot/

Please put these in [code] or in pastebin.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Kernel panics after upgrade to 4.4.26

Postby mla » Oct 25th, '16, 19:46

OK, have done
Code: Select all
sudo dracut -f
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
No difference.

By "manually" I mean using arrow keys and the return key to navigate to the 4.4.26 sub-menu entry and hitting the return key. When I do that, all is well.

Here is the (lengthy :-)) requested output:

Code: Select all
[root@Athlon ~]# cat /boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
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 loadfont unicode ; then
  set gfxmode=1680x1050x32
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_GB
  insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod btrfs
set root='hd2,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
else
  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Bold-16.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Bold-20.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Bold-28.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Regular-20.pf2
insmod png
set theme=($root)/boot/grub2/themes/maggy/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Mageia' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-b1449116-54be-46e4-beda-919e4578d09a' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod btrfs
        set root='hd2,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
        else
          search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
        fi
        echo    'Loading Linux desktop ...'
        linux   /boot/vmlinuz-desktop root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro   nokmsboot splash quiet noiswmd resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd-desktop.img
}
submenu 'Advanced options for Mageia' $menuentry_id_option 'gnulinux-advanced-b1449116-54be-46e4-beda-919e4578d09a' {
        menuentry 'Mageia, with Linux desktop' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-desktop-advanced-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux desktop ...'
                linux   /boot/vmlinuz-desktop root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro   nokmsboot splash quiet noiswmd resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-desktop.img
        }
        menuentry 'Mageia, with Linux desktop (recovery mode)' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-desktop-recovery-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux desktop ...'
                linux   /boot/vmlinuz-desktop root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro failsafe
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-desktop.img
        }
        menuentry 'Mageia, with Linux 4.4.26-desktop-1.mga5' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.26-desktop-1.mga5-advanced-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 4.4.26-desktop-1.mga5 ...'
                linux   /boot/vmlinuz-4.4.26-desktop-1.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro   nokmsboot splash quiet noiswmd resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-4.4.26-desktop-1.mga5.img
        }
        menuentry 'Mageia, with Linux 4.4.26-desktop-1.mga5 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.26-desktop-1.mga5-recovery-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 4.4.26-desktop-1.mga5 ...'
                linux   /boot/vmlinuz-4.4.26-desktop-1.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro failsafe
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-4.4.26-desktop-1.mga5.img
        }
        menuentry 'Mageia, with Linux 4.4.22-desktop-1.mga5' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.22-desktop-1.mga5-advanced-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 4.4.22-desktop-1.mga5 ...'
                linux   /boot/vmlinuz-4.4.22-desktop-1.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro   nokmsboot splash quiet noiswmd resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-4.4.22-desktop-1.mga5.img
        }
        menuentry 'Mageia, with Linux 4.4.22-desktop-1.mga5 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.22-desktop-1.mga5-recovery-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 4.4.22-desktop-1.mga5 ...'
                linux   /boot/vmlinuz-4.4.22-desktop-1.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro failsafe
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-4.4.22-desktop-1.mga5.img
        }
        menuentry 'Mageia, with Linux 4.4.16-desktop-1.mga5' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.16-desktop-1.mga5-advanced-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 4.4.16-desktop-1.mga5 ...'
                linux   /boot/vmlinuz-4.4.16-desktop-1.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro   nokmsboot splash quiet noiswmd resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-4.4.16-desktop-1.mga5.img
        }
        menuentry 'Mageia, with Linux 4.4.16-desktop-1.mga5 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.16-desktop-1.mga5-recovery-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 4.4.16-desktop-1.mga5 ...'
                linux   /boot/vmlinuz-4.4.16-desktop-1.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro failsafe
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-4.4.16-desktop-1.mga5.img
        }
        menuentry 'Mageia, with Linux 4.4.13-desktop-1.mga5' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.13-desktop-1.mga5-advanced-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 4.4.13-desktop-1.mga5 ...'
                linux   /boot/vmlinuz-4.4.13-desktop-1.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro   nokmsboot splash quiet noiswmd resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-4.4.13-desktop-1.mga5.img
        }
        menuentry 'Mageia, with Linux 4.4.13-desktop-1.mga5 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.13-desktop-1.mga5-recovery-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 4.4.13-desktop-1.mga5 ...'
                linux   /boot/vmlinuz-4.4.13-desktop-1.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro failsafe
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-4.4.13-desktop-1.mga5.img
        }
        menuentry 'Mageia, with Linux 4.1.15-desktop-2.mga5' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.15-desktop-2.mga5-advanced-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 4.1.15-desktop-2.mga5 ...'
                linux   /boot/vmlinuz-4.1.15-desktop-2.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro   nokmsboot splash quiet noiswmd resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-4.1.15-desktop-2.mga5.img
        }
        menuentry 'Mageia, with Linux 4.1.15-desktop-2.mga5 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1.15-desktop-2.mga5-recovery-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 4.1.15-desktop-2.mga5 ...'
                linux   /boot/vmlinuz-4.1.15-desktop-2.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro failsafe
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-4.1.15-desktop-2.mga5.img
        }
        menuentry 'Mageia, with Linux 3.19.8-desktop-3.mga5' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.8-desktop-3.mga5-advanced-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 3.19.8-desktop-3.mga5 ...'
                linux   /boot/vmlinuz-3.19.8-desktop-3.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro   nokmsboot splash quiet noiswmd resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-3.19.8-desktop-3.mga5.img
        }
        menuentry 'Mageia, with Linux 3.19.8-desktop-3.mga5 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.8-desktop-3.mga5-recovery-b1449116-54be-46e4-beda-919e4578d09a' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod btrfs
                set root='hd2,gpt1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  b1449116-54be-46e4-beda-919e4578d09a
                else
                  search --no-floppy --fs-uuid --set=root b1449116-54be-46e4-beda-919e4578d09a
                fi
                echo    'Loading Linux 3.19.8-desktop-3.mga5 ...'
                linux   /boot/vmlinuz-3.19.8-desktop-3.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro failsafe
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd-3.19.8-desktop-3.mga5.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/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Mageia 3 (3) (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-3cb13dee-2c9a-4f9c-b270-3785730a4ce2' {
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3cb13dee-2c9a-4f9c-b270-3785730a4ce2
        else
          search --no-floppy --fs-uuid --set=root 3cb13dee-2c9a-4f9c-b270-3785730a4ce2
        fi
        linux /boot/vmlinuz
        initrd /boot/all.rdz
}
submenu 'Advanced options for Mageia 3 (3) (on /dev/sda5)' $menuentry_id_option 'osprober-gnulinux-advanced-3cb13dee-2c9a-4f9c-b270-3785730a4ce2' {
        menuentry 'Mageia 4 install (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--3cb13dee-2c9a-4f9c-b270-3785730a4ce2' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                else
                  search --no-floppy --fs-uuid --set=root 3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                fi
                linux /boot/vmlinuz
                initrd /boot/all.rdz
        }
        menuentry 'linux (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--3cb13dee-2c9a-4f9c-b270-3785730a4ce2' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                else
                  search --no-floppy --fs-uuid --set=root 3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                fi
                linux /boot/vmlinuz BOOT_IMAGE=linux root=LABEL=OS5 splash quiet resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
                initrd /boot/initrd.img
        }
        menuentry 'linux-nonfb (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--3cb13dee-2c9a-4f9c-b270-3785730a4ce2' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                else
                  search --no-floppy --fs-uuid --set=root 3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                fi
                linux /boot/vmlinuz BOOT_IMAGE=linux-nonfb root=LABEL=OS5 splash quiet resume=UUID=20569034-1e07-4d35-befc-d07ff122b981
                initrd /boot/initrd.img
        }
        menuentry 'desktop 3.8.13.4-1.mga3 (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.8.13.4-desktop-1.mga3--3cb13dee-2c9a-4f9c-b270-3785730a4ce2' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                else
                  search --no-floppy --fs-uuid --set=root 3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                fi
                linux /boot/vmlinuz-3.8.13.4-desktop-1.mga3 BOOT_IMAGE=desktop_3.8.13.4-1.mga3 root=LABEL=OS5 splash quiet resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
                initrd /boot/initrd-3.8.13.4-desktop-1.mga3.img
        }
        menuentry 'desktop 3.8.13-1.mga3 (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.8.13-desktop-1.mga3--3cb13dee-2c9a-4f9c-b270-3785730a4ce2' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                else
                  search --no-floppy --fs-uuid --set=root 3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                fi
                linux /boot/vmlinuz-3.8.13-desktop-1.mga3 BOOT_IMAGE=desktop_3.8.13-1.mga3 root=LABEL=OS5 splash quiet resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
                initrd /boot/initrd-3.8.13-desktop-1.mga3.img
        }
        menuentry 'failsafe (on /dev/sda5)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--3cb13dee-2c9a-4f9c-b270-3785730a4ce2' {
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                else
                  search --no-floppy --fs-uuid --set=root 3cb13dee-2c9a-4f9c-b270-3785730a4ce2
                fi
                linux /boot/vmlinuz BOOT_IMAGE=failsafe root=LABEL=OS5 nokmsboot splash quiet failsafe
                initrd /boot/initrd.img
        }
}

menuentry 'Mageia 6 (6) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-cc7cf6d0-63bd-43d4-955a-08010e96b348' {
        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  cc7cf6d0-63bd-43d4-955a-08010e96b348
        else
          search --no-floppy --fs-uuid --set=root cc7cf6d0-63bd-43d4-955a-08010e96b348
        fi
        linux /boot/vmlinuz-4.7.0-desktop-2.mga6 root=UUID=cc7cf6d0-63bd-43d4-955a-08010e96b348 ro
        initrd /boot/initrd-4.7.0-desktop-2.mga6.img
}
submenu 'Advanced options for Mageia 6 (6) (on /dev/sda6)' $menuentry_id_option 'osprober-gnulinux-advanced-cc7cf6d0-63bd-43d4-955a-08010e96b348' {
        menuentry 'Mageia (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.7.0-desktop-2.mga6--cc7cf6d0-63bd-43d4-955a-08010e96b348' {
                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  cc7cf6d0-63bd-43d4-955a-08010e96b348
                else
                  search --no-floppy --fs-uuid --set=root cc7cf6d0-63bd-43d4-955a-08010e96b348
                fi
                linux /boot/vmlinuz-4.7.0-desktop-2.mga6 root=UUID=cc7cf6d0-63bd-43d4-955a-08010e96b348 ro
                initrd /boot/initrd-4.7.0-desktop-2.mga6.img
        }
        menuentry 'Mageia (4.7.0-desktop-2.mga6) 6 (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.7.0-desktop-2.mga6--cc7cf6d0-63bd-43d4-955a-08010e96b348' {
                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  cc7cf6d0-63bd-43d4-955a-08010e96b348
                else
                  search --no-floppy --fs-uuid --set=root cc7cf6d0-63bd-43d4-955a-08010e96b348
                fi
                linux /boot/vmlinuz-4.7.0-desktop-2.mga6 root=UUID=cc7cf6d0-63bd-43d4-955a-08010e96b348 ro
                initrd /boot/initrd-4.7.0-desktop-2.mga6.img
        }
        menuentry 'Mageia (4.7.0-desktop-2.mga6) 6 (recovery mode) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.7.0-desktop-2.mga6--cc7cf6d0-63bd-43d4-955a-08010e96b348' {
                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  cc7cf6d0-63bd-43d4-955a-08010e96b348
                else
                  search --no-floppy --fs-uuid --set=root cc7cf6d0-63bd-43d4-955a-08010e96b348
                fi
                linux /boot/vmlinuz-4.7.0-desktop-2.mga6 root=UUID=cc7cf6d0-63bd-43d4-955a-08010e96b348 ro failsafe
                initrd /boot/initrd-4.7.0-desktop-2.mga6.img
        }
        menuentry 'Mageia (4.6.3-desktop-1.mga6) 6 (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.6.3-desktop-1.mga6--cc7cf6d0-63bd-43d4-955a-08010e96b348' {
                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  cc7cf6d0-63bd-43d4-955a-08010e96b348
                else
                  search --no-floppy --fs-uuid --set=root cc7cf6d0-63bd-43d4-955a-08010e96b348
                fi
                linux /boot/vmlinuz-4.6.3-desktop-1.mga6 root=UUID=cc7cf6d0-63bd-43d4-955a-08010e96b348 ro
                initrd /boot/initrd-4.6.3-desktop-1.mga6.img
        }
        menuentry 'Mageia (4.6.3-desktop-1.mga6) 6 (recovery mode) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.6.3-desktop-1.mga6--cc7cf6d0-63bd-43d4-955a-08010e96b348' {
                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  cc7cf6d0-63bd-43d4-955a-08010e96b348
                else
                  search --no-floppy --fs-uuid --set=root cc7cf6d0-63bd-43d4-955a-08010e96b348
                fi
                linux /boot/vmlinuz-4.6.3-desktop-1.mga6 root=UUID=cc7cf6d0-63bd-43d4-955a-08010e96b348 ro failsafe
                initrd /boot/initrd-4.6.3-desktop-1.mga6.img
        }
        menuentry 'Mageia (desktop) 6 (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-desktop--cc7cf6d0-63bd-43d4-955a-08010e96b348' {
                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  cc7cf6d0-63bd-43d4-955a-08010e96b348
                else
                  search --no-floppy --fs-uuid --set=root cc7cf6d0-63bd-43d4-955a-08010e96b348
                fi
                linux /boot/vmlinuz-desktop root=UUID=cc7cf6d0-63bd-43d4-955a-08010e96b348 ro
                initrd /boot/initrd-desktop.img
        }
        menuentry 'Mageia (desktop) 6 (recovery mode) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-desktop--cc7cf6d0-63bd-43d4-955a-08010e96b348' {
                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  cc7cf6d0-63bd-43d4-955a-08010e96b348
                else
                  search --no-floppy --fs-uuid --set=root cc7cf6d0-63bd-43d4-955a-08010e96b348
                fi
                linux /boot/vmlinuz-desktop root=UUID=cc7cf6d0-63bd-43d4-955a-08010e96b348 ro failsafe
                initrd /boot/initrd-desktop.img
        }
}

menuentry 'Mageia 5 (5) (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3' {
        insmod part_msdos
        insmod ext2
        set root='hd1,msdos6'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6  40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3
        else
          search --no-floppy --fs-uuid --set=root 40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3
        fi
        linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3 splash quiet noiswmd resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
        initrd /boot/initrd.img
}
submenu 'Advanced options for Mageia 5 (5) (on /dev/sdb6)' $menuentry_id_option 'osprober-gnulinux-advanced-40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3' {
        menuentry 'linux (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3' {
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos6'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6  40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3
                else
                  search --no-floppy --fs-uuid --set=root 40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3
                fi
                linux /boot/vmlinuz BOOT_IMAGE=linux root=UUID=40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3 splash quiet noiswmd resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
                initrd /boot/initrd.img
        }
        menuentry 'linux-nonfb (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3' {
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos6'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6  40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3
                else
                  search --no-floppy --fs-uuid --set=root 40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3
                fi
                linux /boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3 resume=UUID=20569034-1e07-4d35-befc-d07ff122b981
                initrd /boot/initrd.img
        }
        menuentry 'failsafe (on /dev/sdb6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz--40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3' {
                insmod part_msdos
                insmod ext2
                set root='hd1,msdos6'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos6 --hint-efi=hd1,msdos6 --hint-baremetal=ahci1,msdos6  40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3
                else
                  search --no-floppy --fs-uuid --set=root 40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3
                fi
                linux /boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=40b490d0-bf21-4b9d-b2d9-4a4b9de8d2c3 failsafe noiswmd
                initrd /boot/initrd.img
        }
}


### 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/90_persistent ###
### END /etc/grub.d/90_persistent ###

### BEGIN /etc/grub.d/93_memtest ###
### END /etc/grub.d/93_memtest ###
[root@Athlon ~]# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-4.4.26-desktop-1.mga5 root=UUID=b1449116-54be-46e4-beda-919e4578d09a ro nokmsboot splash quiet noiswmd resume=UUID=20569034-1e07-4d35-befc-d07ff122b981 vga=788
[root@Athlon ~]#  ls /boot
config-3.19.8-desktop-3.mga5      symvers-4.4.13-desktop-1.mga5.xz
config-4.1.15-desktop-2.mga5      symvers-4.4.16-desktop-1.mga5.xz
config-4.4.13-desktop-1.mga5      symvers-4.4.22-desktop-1.mga5.xz
config-4.4.16-desktop-1.mga5      symvers-4.4.26-desktop-1.mga5.xz
config-4.4.22-desktop-1.mga5      System.map-3.19.8-desktop-3.mga5
config-4.4.26-desktop-1.mga5      System.map-4.1.15-desktop-2.mga5
dracut/                           System.map-4.4.13-desktop-1.mga5
grub/                             System.map-4.4.16-desktop-1.mga5
grub2/                            System.map-4.4.22-desktop-1.mga5
initrd-3.19.8-desktop-3.mga5.img  System.map-4.4.26-desktop-1.mga5
initrd-4.1.15-desktop-2.mga5.img  vmlinuz@
initrd-4.4.13-desktop-1.mga5.img  vmlinuz-3.19.8-desktop-3.mga5
initrd-4.4.16-desktop-1.mga5.img  vmlinuz-4.1.15-desktop-2.mga5
initrd-4.4.22-desktop-1.mga5.img  vmlinuz-4.4.13-desktop-1.mga5
initrd-4.4.26-desktop-1.mga5.img  vmlinuz-4.4.16-desktop-1.mga5
initrd-desktop.img@               vmlinuz-4.4.22-desktop-1.mga5
initrd.img@                       vmlinuz-4.4.26-desktop-1.mga5
symvers-3.19.8-desktop-3.mga5.xz  vmlinuz-desktop@
symvers-4.1.15-desktop-2.mga5.xz
[root@Athlon ~]#
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: Kernel panics after upgrade to 4.4.26

Postby gohlip » Oct 26th, '16, 07:49

Okay, right.
By "manually" I mean using arrow keys and the return key to navigate to the 4.4.26 sub-menu entry and hitting the return key. When I do that, all is well.
This is key and I understood clearly now.

It appears the sym-links "vmlinuz-desktop" and "initrd-desktop.img" (while they exist) do not point to the correct kernel/initrd, namely 'vmlinuz-4.4.26-desktop-1.mga5' and 'initrd-4.4.26-desktop-1.mga5.img'

Either (3 things) [1] you can continue to boot they way you did (boot the sub-menu 4.4.26-xx),[2] use symlinks vmlinuz and initrd.img instead or [3] recreate the symlinks.
Code: Select all
# ln -sf /boot/vmlinuz-4.4.26-desktop-1.mga5 /boot/vmlinuz-desktop
# ln -sf /boot/initrd-4.4.26-desktop-1.mga5.img /boot/initrd-desktop.img


If I remember correctly (I'm now on M6), I had a similar problem (sym-link is vmlinuz and initrd.img not vmlinuz-desktop and initrd-desktop.img) but I think that was on M4, not M5.

{note} (not relevant to your issue) - M6 now is working fine but uses linux16/initrd16 for bios-legacy and linuxefi/initrdefi for uefi. Works for either but unnecessary as plain linux/initrd will work for both.
Don't understand why we need to make more unnecessary complexity (now and for last time - both vmlinux and vmlinux-desktop) and end up messing up (for OP in this case).

Cheers, take care.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Kernel panics after upgrade to 4.4.26

Postby doktor5000 » Oct 26th, '16, 12:22

gohlip wrote:M6 now is working fine but uses linux16/initrd16 for bios-legacy and linuxefi/initrdefi for uefi. Works for either but unnecessary as plain linux/initrd will work for both.

If you don't mind, would probably be useful to put that up in a bugreport so developers can take a look at that.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Kernel panics after upgrade to 4.4.26

Postby mla » Oct 26th, '16, 12:39

Those symlinks look fine to me!

Code: Select all
[root@Athlon boot]# ls -l vmlinuz-desktop initrd-desktop.img
lrwxrwxrwx 1 root root 32 Oct 21 20:45 initrd-desktop.img -> initrd-4.4.26-desktop-1.mga5.img
lrwxrwxrwx 1 root root 29 Oct 21 20:45 vmlinuz-desktop -> vmlinuz-4.4.26-desktop-1.mga5


And as explained in an earlier post on this thread, if I make the explicit 4.4.26 (non-symlink) menu entry the default in grub.cfg (by setting default to 0>2) I still get kernel panic.
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: Kernel panics after upgrade to 4.4.26

Postby gohlip » Oct 26th, '16, 13:18

By "manually" I mean using arrow keys and the return key to navigate to the 4.4.26 sub-menu entry and hitting the return key. When I do that, all is well.


if I make the explicit 4.4.26 (non-symlink) menu entry the default in grub.cfg (by setting default to 0>2) I still get kernel panic.

I'm sorry, I'm lost here. I cannot discern the difference between the two.
If others can understand or better, help out, please do so.

Not giving up, but at least it's good you can boot 4.4.26 and I'll keep trying to find out what menu you used.
(I still cannot find out which entry in the grub.cfg that boots and which that doesn't).

Cheers (still :D ).

[edit] - some (more) things here i find 'screwy' (mageia's way of coming up its grub.cfg) but not enough that I think will affect your issue.
o noiswmd - not needed for non-raid systems.
o vga=788 - deprecated long time ago with grub2
ps: I run my grub without these (works fine)

Another thing - btrfs - but again, not enough that I think will affect your issue.
Normally we get a 'spurious' error message 'sparse file not found' and an 'enter' would boot anyway.
You did not mention it, maybe it has been resolved and I haven't used btrfs last I tested it (some years ago).
Well, some things to brainstorm over.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Kernel panics after upgrade to 4.4.26

Postby gohlip » Oct 26th, '16, 13:44

doktor5000 wrote:
gohlip wrote:M6 now is working fine but uses linux16/initrd16 for bios-legacy and linuxefi/initrdefi for uefi. Works for either but unnecessary as plain linux/initrd will work for both.

If you don't mind, would probably be useful to put that up in a bugreport so developers can take a look at that.

Yes, you're right. A quick google finds a few bug reports filed in Fedora and Red Hat and Centos.
Let us go through more thoroughly before filing a bug report.
Better a well written report than a hastilyhalf-baked er...sloppy report.
If you can help (thanks in advance) that will be great. :)
Cheers.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Kernel panics after upgrade to 4.4.26

Postby gohlip » Oct 26th, '16, 14:01

@mia, just checking...
You don't happen to use grub-customizer, do you?

[Another edit] - noted in your separate topic ssd (diskdrake - probably gpt or non-partitioned) you had a msdos disk and another ssd disk (gpt or non-partitioned) device,
Are you booting off from mbr of the disk to the OS on the ssd?
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Kernel panics after upgrade to 4.4.26

Postby mla » Oct 26th, '16, 15:15

No grub customization -- just plain grub2 as installed by Mageia 5 installer. The SSD I was having problems with is nothing to do with the boot. But yes, I am booting from a btrfs partition on an internal SSD drive -- gdisk reports GPT present, MBR protective (whatever that means!). Worked fine through a number of kernel upgrades, until the 4.4.26 one. :-(

But it looks like I have to retract my statement that the 4.4.6 grub menu entry still results in a panic if used as default, rather than navigated to manually. It is true that changing line 18 of grub.cfg from
Code: Select all
set default="0"
to
Code: Select all
set default="0>2"
highlights the correct entry in the sub-menu, but that's only once I navigate into that sub-menu. As the grub menu appears first, it is still the top ("0") entry that is highlighted -- I'd missed that.

So, can anybody advise me what is the correct way of changing the default entry (in the grub.cfg I posted in the thread above)?

As an irrelevant aside... Regrettably, grub2 went the way of systemd. The original simple solution could not handle some complex setups and this got fixed by making *all* setups complex. :-( I am an old Unix hand and it sure goes against the grain!
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: Kernel panics after upgrade to 4.4.26

Postby gohlip » Oct 26th, '16, 17:21

gdisk reports GPT present, MBR protective (whatever that means!)

It means you have a gpt disk with a whole single disk not partition (which is also not good - at least make a single partition).

And yes, you're booting from a mbr to OS's in all disks including to that ssd on GPT (whole disk at that)
And that is not reliable (it may have worked before) booting from an msdos mbr to gpt

Anyway,
can anybody advise me what is the correct way of changing the default entry (in the grub.cfg I posted in the thread above)?

at /etc/default grub

Change from
GRUB_DEFAULT=0
to
Code: Select all
GRUB_DEFAULT='Mageia, with Linux 4.4.26-desktop-1.mga5'
[edit] - copy and paste from your grub.cfg - needs to be exactly as shown in grub.cfg, including spaces - and don't forget apostrophes ' '
save file, then
Code: Select all
 # grub2-mkconfig -o /boot/grub2/grub.cfg





So we now know the whole story.
Good luck and take care.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Kernel panics after upgrade to 4.4.26

Postby mla » Oct 26th, '16, 18:28

OK. There's no GRUB_DEFAULT in /etc/default/grub. So I simply added
Code: Select all
GRUB_DEFAULT='Mageia, with Linux 4.4.26-desktop-1.mga5'
. Running grub2-mkconfig now gives:
Code: Select all
[root@Athlon ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
Found linux image: /boot/vmlinuz-4.4.26-desktop-1.mga5
Found initrd image: /boot/initrd-4.4.26-desktop-1.mga5.img
Warning: Please don't use old title ‘Mageia, with Linux 4.4.26-desktop-1.mga5’ for GRUB_DEFAULT, use ‘Advanced options for Mageia>Mageia, with Linux 4.4.26-desktop-1.mga5’ (for versions before 2.00) or ‘gnulinux-advanced-b1449116-54be-46e4-beda-919e4578d09a>gnulinux-4.4.26-desktop-1.mga5-advanced-b1449116-54be-46e4-beda-919e4578d09a’ (for 2.00 or later)
Found linux image: /boot/vmlinuz-4.4.22-desktop-1.mga5
Found initrd image: /boot/initrd-4.4.22-desktop-1.mga5.img
Found linux image: /boot/vmlinuz-4.4.16-desktop-1.mga5
Found initrd image: /boot/initrd-4.4.16-desktop-1.mga5.img
Found linux image: /boot/vmlinuz-4.4.13-desktop-1.mga5
Found initrd image: /boot/initrd-4.4.13-desktop-1.mga5.img
Found linux image: /boot/vmlinuz-4.1.15-desktop-2.mga5
Found initrd image: /boot/initrd-4.1.15-desktop-2.mga5.img
Found linux image: /boot/vmlinuz-3.19.8-desktop-3.mga5
Found initrd image: /boot/initrd-3.19.8-desktop-3.mga5.img
Found Mageia 3 (3) on /dev/sda5
Found Mageia 6 (6) on /dev/sda6
Found Mageia 5 (5) on /dev/sdb6
Found Mageia 5 on /dev/sdc1
done


Wonderful! So I am about to try
Code: Select all
GRUB_DEFAULT=‘gnulinux-advanced-b1449116-54be-46e4-beda-919e4578d09a>gnulinux-4.4.26-desktop-1.mga5-advanced-b1449116-54be-46e4-beda-919e4578d09a’
since my version is 2.02.

Isn't it just splendidly intuitive? :-(

As for disk partitions etc... All I do is to use Mageia tools -- the installer and drakdisk. The fine details of disk formatting are all Greek to me! :-)
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: Kernel panics after upgrade to 4.4.26

Postby gohlip » Oct 26th, '16, 18:40

Alright. seems strange though.

[edit] - I just tried on my mageia.
It just works! (without the error message)
Code: Select all
[pop@Two ~]$ kdesu kate /etc/default/grub
[pop@Two ~]$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
[sudo] password for pop:
Generating grub configuration file ...
Found theme: /boot/grub2/themes/maggy/theme.txt
Found linux image: /boot/vmlinuz-4.8.4-desktop-1.mga6
Found initrd image: /boot/initrd-4.8.4-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-4.8.3-desktop-1.mga6
Found initrd image: /boot/initrd-4.8.3-desktop-1.mga6.img
Found linux image: /boot/vmlinuz-desktop
Found initrd image: /boot/initrd-desktop.img
done

But I am on M6 and grub-version beta3
Code: Select all
[pop@Two ~]$ sudo grub2-install -V
grub2-install (GRUB) 2.02~beta3
[pop@Two ~]$


Strange!

Note for me there is a
Code: Select all
GRUB_DEFAULT=saved

prior to this.
I made it
Code: Select all
GRUB_DEFAULT='Mageia (4.8.3-desktop-1.mga6) 6'
Last edited by gohlip on Oct 26th, '16, 18:57, edited 1 time in total.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Kernel panics after upgrade to 4.4.26

Postby mla » Oct 26th, '16, 18:55

OK, that worked. Though now I have to re-educate the family, because just hitting RETURN when the grub menu appears, no longer boots the machine bypassing the 10 second delay. One has to hit RETURN, wait for the sub-menu to be displayed and then hit RETURN again. And if any grub2 developer thinks this is something "users" should just put up with, they don't know real users as I do. :-(

Anyway, thanks for the help -- appreciated! Just why the symlinked version does not work remains a mystery. My guess is still it's something to do with timing.
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: [WORKAROUND] Kernel panics after upgrade to 4.4.26

Postby gohlip » Oct 26th, '16, 19:03

Please see my edited post above. It worked for me as per my earlier command. Strange, indeed it didn't work for you.

My guess is still it's something to do with timing.

Okay, but my bet on your issue is still on your gpt no partition disk and mixing it all up with the original msdos disks.
I'm actually amazed it worked as it did (however faulty) for you.

Oh welcome. Take care and cheers.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Kernel panics after upgrade to 4.4.26

Postby gohlip » Oct 27th, '16, 06:36

doktor5000 wrote:
gohlip wrote:M6 now is working fine but uses linux16/initrd16 for bios-legacy and linuxefi/initrdefi for uefi. Works for either but unnecessary as plain linux/initrd will work for both.

If you don't mind, would probably be useful to put that up in a bugreport so developers can take a look at that.


Noted a bug report already exist
https://bugs.mageia.org/show_bug.cgi?id=13493

In this report, 'linux/initrd' is required whereas 'linuxefi/inidrdefi' won't work.
Here, both will work, just that I question the need to have 'linuxefi/inidrdefi' or 'linux16/initrd16' (or noiswmd and vga=xxx).
Perhaps as in the bug report shows, all works because the workaround is
.....automatically modifies linuxefi -> linux and initrdefi -> initrd to keep upgrade path working as they are used in mga4


But it does raise the question "Why bother?"
Why bother with 'linuxefi/inidrdefi' and 'linux16/initrd16' at all?
Why have 2 sym-links vmlinuz/initrd-img and vmlinuz-desktop/initrd-desktop.img ?
Why vga=xxx ?
Why noiswmd ? Can't this be put in modules/draccut and used as needed instead of in a kernel parameter?
Why indeed.

So it is not really a bug (because all works- works mainly because grub ignores wrong/non-applicable parameters) but a question of propriety.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: Kernel panics after upgrade to 4.4.26

Postby arnesp » Oct 27th, '16, 13:16

mla wrote:OK, that worked. Though now I have to re-educate the family, because just hitting RETURN when the grub menu appears, no longer boots the machine bypassing the 10 second delay. One has to hit RETURN, wait for the sub-menu to be displayed and then hit RETURN again. And if any grub2 developer thinks this is something "users" should just put up with, they don't know real users as I do. :-(

Anyway, thanks for the help -- appreciated! Just why the symlinked version does not work remains a mystery. My guess is still it's something to do with timing.


Have you considered trying to replace the sym-links with a copy of the actual files as an alternative workaround?
(I see you have a lot of kernel versions lying around, so I assume that space is not an issue ;) )

By the way. Are you booting in UEFI or BIOS mode?
arnesp
 
Posts: 60
Joined: Aug 6th, '15, 00:41

Re: [WORKAROUND] Kernel panics after upgrade to 4.4.26

Postby mla » Oct 27th, '16, 13:33

Okay, but my bet on your issue is still on your gpt no partition disk and mixing it all up with the original msdos disks


I am always willing to learn how to do things better. :-)

When it comes to upgrading to Mageia 6 I would be in a position to attend to any such niggles. My preference is to move towards btrfs in so far as possible, because of its snapshots (I fell in love with snapshots on Unix using NetApp's OnTap filers!). My general strategy is to have four (or more) independent storage devices: one for the /usr, /bin etc..., one for /var and similar, one for user data (/home and such like) and one for independent backups (rsync + snapshots). All user data is on btrfs sub-volumes with independent mounts (e.g. /home). The OS device is also btrfs. The rest is not, as yet. And yes, gdisk tells me that the other two devices are indeed MBR rather than GPT. It also warns me that converting to GPT could destroy data, so I am leaving those as are for the time being.

For maximal flexibility it seems to make sense to have just one btrfs partition per storage device. At present, as I understand it, I cannot boot from a sub-volume, so the OS is sitting on btrfs main volume.

How would you suggest restructuring/reformatting once it comes to putting Mageia 6 on?
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: [WORKAROUND] Kernel panics after upgrade to 4.4.26

Postby mla » Oct 27th, '16, 13:46

arnsep:
Have you considered trying to replace the sym-links with a copy of the actual files as an alternative workaround?

That's an excellent question! (Now I feel positively stupid! :-)) Will try that -- thanks! No, space is not an issue. Our storage requirements are pretty modest by modern standards.

No UEFI, still a BIOS machine, though Mageia 5 insisted on on installing itself with GRUB2 on this box, otherwise I would have stuck with the simple to understand plain old GRUB, as I do on my other machines.
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: [WORKAROUND] Kernel panics after upgrade to 4.4.26

Postby gohlip » Oct 27th, '16, 14:42

Re: btrfs, I do not have enough experience to have any helpful feedback, but I do understand that while Ubuntu uses the whole subvolume (@) for installation, and Suse do not create subvolumes, it is possible by users to install many OS's into each subvolume of the btrfs partition (@abc,@def, @ghi...) besides having subvolumes for /usr, /var,/home.... for a particular OS. but I personally have not tried it (I personally do not see the value of separating out /usr, /var...(and then using lvm?). But I do have a very big partition (non-OS owned) that every OS can use, my /home contains nothing that is created or downloaded and my OS partition do not exceed 25 GB. Some uses as little as 4 GB. Most under 15 GB. I can have a 'configuration data' partition which sym-links to the OS, say a simple example like .mozilla. And when I install or uninstall an OS, I don't worry about losing any data or lose my configuration. So no, sorry I cannot help much on btrfs.

ps: You might want to try f2fs filesystem on your ssd (but please fix the partitioning first ;) ).
should give you enough 'niggles' :D to boot.

Re: replacing symlinks with actual kernels - isn't that the same as booting from (0>2)?
But if you find it useful, please carry on, I think (strongly, in fact) that every person is entitled to his/her preferences.
Just watch out for any kernel or grub updates which will revert to original configuration.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: [WORKAROUND] Kernel panics after upgrade to 4.4.26

Postby mla » Oct 27th, '16, 15:39

I can confirm that replacing those symlinks with copies of the actual files does the trick The machine now boots the same way as it always did. Thanks, arnesp!

gohlip: the difference is that one does not have to navigate to the sub-menu in order to abort the 10 (or whatever) second pause. Grub menu comes up, hit RETURN, machine boots.

You might want to try f2fs filesystem on your ssd (but please fix the partitioning first)

This is where I get lost, due to being ignorant of finer details of disk formatting. I don't recall whether the SSD came with a FAT file system already in place. If it did, I simply told drakdisk to delete it. With or without that being done first, I made drakdisk create a btrfs partition, which, as far as I was concerned it did, and I have been using it ever since. What is it you suggest I should fix and how should I fix it?
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: [WORKAROUND] Kernel panics after upgrade to 4.4.26

Postby gohlip » Oct 27th, '16, 17:40

What is it you suggest I should fix and how should I fix it?


From topic viewtopic.php?f=8&t=11426 written to you
gohlip wrote:For new disks, especially 'raw' disks, it's best to set partitioning table before use. And then set up partitions after that.
I use gparted, at device tab (top of the gui), set to either 'msdos' or 'gpt'.
If there is an existing disk, make the new disk the same partitioning as the existing disk.
Cheers.


But note it will erase everything in your whole disk. But that is necessary if you need your disks to be fixed.
Also need to install package f2fs-tools.
Why do we live? To prove not everything in nature has a purpose.
gohlip
 
Posts: 573
Joined: Jul 9th, '12, 10:50

Re: [WORKAROUND] Kernel panics after upgrade to 4.4.26

Postby mla » Oct 27th, '16, 19:16

So I take it you are saying in effect "don't use drakdisk" for the purpose. :-)
mla
 
Posts: 292
Joined: Sep 16th, '11, 16:10

Re: [WORKAROUND] Kernel panics after upgrade to 4.4.26

Postby arnesp » Oct 27th, '16, 19:45

Before doing anything drastic, you should make sure the partitioning is really broken.
Protective MBR does not mean that there is no partitions on the disk. It is something that should prevent tools that are not GPT aware from trying to update the partitioning table.

What does the gdisk print command show?

Is grub2 installed on the SSD or on another disk?
arnesp
 
Posts: 60
Joined: Aug 6th, '15, 00:41

Next

Return to Advanced support

Who is online

Users browsing this forum: Google [Bot] and 1 guest