removing the non booting kernels how do I troubleshoot them?
Antonio Olivares
wingators at inbox.com
Thu Oct 18 22:03:39 UTC 2012
> By the way, cannot find /dev/root is almost certainly a bootloader
> problem - the kernel parameter line may have the wrong root= buried in
> it, so dracut isn't finding a rootfs to read or mount and thus it pukes
> after it's consumed everything it can in the initramfs.
>
> --
Thank you sir! and all that have helped/answered this thread. The error is that the bootloader in this case calls /dev/root, while the older kernel calls
root=UUID=11803751-9c77-4e25-96d8-daa772b53e5c
I changed the /dev/root in Grub Boot Loader interactively and the new kernel booted.
[olivares at E-213-5W ~]$ uname -r
3.6.2-2.fc18.i686
[olivares at E-213-5W ~]$ uname -a
Linux E-213-5W 3.6.2-2.fc18.i686 #1 SMP Wed Oct 17 06:36:31 UTC 2012 i686 i686 i386 GNU/Linux
Now I have to change the line in grub via grub interactively and see that it fixes it and make a change somewhere so that subsequent kernel upgrades update correctly and not put '/dev/root' in there.
----------------------------------------------------
[root at E-213-5W grub2]# cat 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
set default="0"
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,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 11803751-9c77-4e25-96d8-daa772b53e5c
else
search --no-floppy --fs-uuid --set=root 11803751-9c77-4e25-96d8-daa772b53e5c
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_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 11803751-9c77-4e25-96d8-daa772b53e5c
else
search --no-floppy --fs-uuid --set=root 11803751-9c77-4e25-96d8-daa772b53e5c
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/system/DejaVuSans-10.pf2
loadfont ($root)/boot/grub2/themes/system/DejaVuSans-12.pf2
loadfont ($root)/boot/grub2/themes/system/DejaVuSans-Bold-14.pf2
insmod png
set theme=($root)/boot/grub2/themes/system/theme.txt
export theme
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (3.6.2-2.fc18.i686)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-11803751-9c77-4e25-96d8-daa772b53e5c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 11803751-9c77-4e25-96d8-daa772b53e5c
else
search --no-floppy --fs-uuid --set=root 11803751-9c77-4e25-96d8-daa772b53e5c
fi
echo 'Loading Fedora (3.6.2-2.fc18.i686)'
linux /boot/vmlinuz-3.6.2-2.fc18.i686 root=/dev/root ro rd.md=0 rd.lvm=0 rd.dm=0 rd.luks=0 LANG=en_US.UTF-8 KEYTABLE=us
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-3.6.2-2.fc18.i686.img
}
menuentry 'Fedora' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-11803751-9c77-4e25-96d8-daa772b53e5c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 11803751-9c77-4e25-96d8-daa772b53e5c
else
search --no-floppy --fs-uuid --set=root 11803751-9c77-4e25-96d8-daa772b53e5c
fi
echo 'Loading Linux 3.6.0-2.fc18.i686 ...'
linux /boot/vmlinuz-3.6.0-2.fc18.i686 root=UUID=11803751-9c77-4e25-96d8-daa772b53e5c ro rd.md=0 rd.lvm=0 rd.dm=0 rd.luks=0
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-3.6.0-2.fc18.i686.img
}
submenu 'Advanced options for Fedora' $menuentry_id_option 'gnulinux-advanced-11803751-9c77-4e25-96d8-daa772b53e5c' {
menuentry 'Fedora, with Linux 3.6.0-2.fc18.i686' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.6.0-2.fc18.i686-advanced-11803751-9c77-4e25-96d8-daa772b53e5c' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3 11803751-9c77-4e25-96d8-daa772b53e5c
else
search --no-floppy --fs-uuid --set=root 11803751-9c77-4e25-96d8-daa772b53e5c
fi
echo 'Loading Linux 3.6.0-2.fc18.i686 ...'
linux /boot/vmlinuz-3.6.0-2.fc18.i686 root=UUID=11803751-9c77-4e25-96d8-daa772b53e5c ro rd.md=0 rd.lvm=0 rd.dm=0 rd.luks=0
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-3.6.0-2.fc18.i686.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 ###
### 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.
menuentry 'FreeBSD 9.0' {
insmod part_msdos
set root='(hd0,msdos1)'
chainloader +1
}
### 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 ###
[root at E-213-5W grub2]#
----------------------------------------------------
I am changing the /dev/root to the UUID mentioned above run
grub2-mkconfig -o /boot/grub2/grub.cfg
again and see if that cures the problem and subsequent problems with kernel updates.
Best Regards,
Antonio
____________________________________________________________
GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys
Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and most webmails
More information about the test
mailing list