help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with no options showing for kernels.


From: Andrei Borzenkov
Subject: Re: Problem with no options showing for kernels.
Date: Mon, 26 Oct 2015 18:09:29 +0300

Could you upload your "bad" grub.cfg somewhere or send it to me?

Отправлено с iPhone

26 окт. 2015 г., в 7:00, Michael D. Setzer II <address@hidden> написал(а):

Posted info to Fedora list, but haven't gotten any responses yet.
Had a 1 hour load sheading issue and building generator did kick in, and USP isn't big enough to handle an hour outage. Afterwards, the grub menu was showing no kernel options, just the memtest and g4l options, but they are in the grub.cfg file. Was able to get the machine to boot, by bring the disk up with the g4l kernel, and then after doing some test, found that remove everything but the name on the menuentry line would make it show up and then boot. The uuid of the root partition is fine, so I don't see anything that would make the entries not show up. I recreated the grub.cfg by using grub2-mkconfig -o /boot/grub2/grub.cfg, but it again resulted in no kernel options, so had to make the changes again. None of the other 20+ systems I have running Fedora 22 had this issue, but this machine did have a motherboard failure recently, but replaced the board, and everything else was the same. Booted fine after that change.

Below is the original message I sent to the Fedora list, and it has the grub.cfg as I currently have it on the machine. It doesn't show the regular kernel options, but after my g4l one is the one that works with just Fedora as name.

Thanks.
Had a load shedding issue that hit my college building at 2am and building
generator didn't kick in, and UPS didn't say up for the hour outage. Went in at
about 6:30am on Sunday to fix things, and found that one of my main servers
was coming up with the grub menu, but only the options for memtest and my
g4l special option were showing up. None of the kernel option would show
up? After booting with the g4l option with its kernel, I was able to look at the
grub.cfg file, and options are there in the grub.cfg file.

I was able to get it to load the kernel by copying the kernel options to the end,
and removing the extra stuff after the menuentry name?? I had also
commented out the load_video line, and switched, the linux16 and initrd16 to
linux and initrd, but don't think that was the issue, since after doing a reboot,
it wouldn't show the opiton until I changed it to just
menuentry 'Fedora' {

I though it might be the blkid that was off, but it seems to be correct.
Below is the current grub.cfg that I had made on the machine using
grub2-mkconfig -o /boot/grub2/grub.cfg
Originally, it went thru, but the reboot showed only the memtest option, and
the g4l option, and I did the coping of the line, and modification to get it to
boot. 

Had a 7am meeting that I ended up being late for, since I could get the
machines all up quickly. Machine is now running, but still don't know why the
regulare grub menu options are not showing. The 20+ other machines seem
to have the grub working just fine. This machine did recently have a
motherboard failure, and it was replaced, but everything else was the same.

Below is the grub.cfg and the output of blkid??

Thanks.


#
# 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 ###
set pager=1

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="${saved_entry}"
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-bios=hd0,msdos2
--hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' 
1228e51c-1d2f-43b0-a792-84d87541e746
else
  search --no-floppy --fs-uuid --set=root
1228e51c-1d2f-43b0-a792-84d87541e746
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,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 
606cfbb3-1aed-4527-bbb2-78ab50772212
else
  search --no-floppy --fs-uuid --set=root
606cfbb3-1aed-4527-bbb2-78ab50772212
fi
insmod png
background_image -m stretch /verne.png
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=30
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=30
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (fedup) 22 (Twenty Two)' --class fedora --class gnu-linux
--class gnu --class os --unrestricted $menuentry_id_option
'gnulinux-fedup-advanced-1228e51c-1d2f-43b0-a792-84d87541e746' {
        savedefault
#     load_video
        insmod gzio
        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-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 
606cfbb3-1aed-4527-bbb2-78ab50772212
        else
          search --no-floppy --fs-uuid --set=root
606cfbb3-1aed-4527-bbb2-78ab50772212
        fi
        linux16 /vmlinuz-fedup
root=UUID=1228e51c-1d2f-43b0-a792-84d87541e746 ro quiet rhgb
        initrd16 /initramfs-fedup.img
}
menuentry 'Fedora (4.2.3-200.fc22.x86_64) 22 (Twenty Two)' --class fedora
--class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option
'gnulinux-4.2.3-200.fc22.x86_64-advanced-1228e51c-1d2f-43b0-a792-84d87
541e746' {
        savedefault
        load_video
        set gfxpayload=keep
        insmod gzio
        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-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 
606cfbb3-1aed-4527-bbb2-78ab50772212
        else
          search --no-floppy --fs-uuid --set=root
606cfbb3-1aed-4527-bbb2-78ab50772212
        fi
        linux /vmlinuz-4.2.3-200.fc22.x86_64
root=UUID=1228e51c-1d2f-43b0-a792-84d87541e746 ro quiet rhgb
        initrd /initramfs-4.2.3-200.fc22.x86_64.img
}
menuentry 'Fedora (4.1.10-200.fc22.x86_64) 22 (Twenty Two)' --class fedora
--class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option
'gnulinux-4.1.10-200.fc22.x86_64-advanced-1228e51c-1d2f-43b0-a792-84d8
7541e746' {
        savedefault
        load_video
        set gfxpayload=keep
        insmod gzio
        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-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 
606cfbb3-1aed-4527-bbb2-78ab50772212
        else
          search --no-floppy --fs-uuid --set=root
606cfbb3-1aed-4527-bbb2-78ab50772212
        fi
        linux /vmlinuz-4.1.10-200.fc22.x86_64
root=UUID=1228e51c-1d2f-43b0-a792-84d87541e746 ro quiet rhgb
        initrd /initramfs-4.1.10-200.fc22.x86_64.img
}
menuentry 'Fedora (4.1.8-200.fc22.x86_64) 22 (Twenty Two)' --class fedora
--class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option
'gnulinux-4.1.8-200.fc22.x86_64-advanced-1228e51c-1d2f-43b0-a792-84d87
541e746' {
        savedefault
        load_video
        set gfxpayload=keep
        insmod gzio
        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-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 
606cfbb3-1aed-4527-bbb2-78ab50772212
        else
          search --no-floppy --fs-uuid --set=root
606cfbb3-1aed-4527-bbb2-78ab50772212
        fi
        linux /vmlinuz-4.1.8-200.fc22.x86_64
root=UUID=1228e51c-1d2f-43b0-a792-84d87541e746 ro quiet rhgb
        initrd /initramfs-4.1.8-200.fc22.x86_64.img
}
menuentry 'Fedora (0-rescue-0d711253e61b4e2e99580424e9c03ce5) 22
(Twenty Two)' --class fedora --class gnu-linux --class gnu --class os
--unrestricted $menuentry_id_option
'gnulinux-0-rescue-0d711253e61b4e2e99580424e9c03ce5-advanced-1228e
51c-1d2f-43b0-a792-84d87541e746' {
        savedefault
        load_video
        insmod gzio
        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-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 
606cfbb3-1aed-4527-bbb2-78ab50772212
        else
          search --no-floppy --fs-uuid --set=root
606cfbb3-1aed-4527-bbb2-78ab50772212
        fi
        linux /vmlinuz-0-rescue-0d711253e61b4e2e99580424e9c03ce5
root=UUID=1228e51c-1d2f-43b0-a792-84d87541e746 ro quiet rhgb
        initrd /initramfs-0-rescue-0d711253e61b4e2e99580424e9c03ce5.img
}
if [ "x$default" = 'Fedora (4.2.3-200.fc22.x86_64) 22 (Twenty Two)' ]; then
default='Advanced options for Fedora>Fedora (4.2.3-200.fc22.x86_64) 22
(Twenty Two)'; fi;
### 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_memtest86+ ###
menuentry 'Fedora Memtest memtest86+-5.01' {
        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-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 
606cfbb3-1aed-4527-bbb2-78ab50772212
        else
          search --no-floppy --fs-uuid --set=root
606cfbb3-1aed-4527-bbb2-78ab50772212
        fi
        insmod bsd
        echo       'Loading Fedora Memtest ...Loading memtest86+-5.01  ...'
        knetbsd   /elf-memtest86+-5.01
}
### END /etc/grub.d/20_memtest86+ ###

### 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 G4L {
        linux /bz4x2.3 ramdisk_size=65536 root=/dev/ram0 telnetd=yes
        initrd /ramdisk.lzma
}
menuentry 'Fedora' {
        savedefault
#     load_video
        insmod gzio
        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-bios=hd0,msdos1
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 
606cfbb3-1aed-4527-bbb2-78ab50772212
        else
          search --no-floppy --fs-uuid --set=root
606cfbb3-1aed-4527-bbb2-78ab50772212
        fi
        linux /vmlinuz-fedup
root=UUID=1228e51c-1d2f-43b0-a792-84d87541e746 ro quiet rhgb
        initrd /initramfs-fedup.img
}

### 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 ###

blkid output
/dev/sda1: UUID="606cfbb3-1aed-4527-bbb2-78ab50772212" TYPE="ext4"
PARTUUID="00091aaa-01"
/dev/sda2: UUID="1228e51c-1d2f-43b0-a792-84d87541e746" TYPE="ext4"
PARTUUID="00091aaa-02"
/dev/sda3: UUID="561f3970-eb54-4136-906a-702ddc2b588b" TYPE="swap"
PARTUUID="00091aaa-03"
/dev/sda5: UUID="23c9f17b-db7c-409f-89ee-a9aaff08b219"
SEC_TYPE="ext2" TYPE="ext3" PARTUUID="00091aaa-05"
/dev/sda6: UUID="e4ae7827-cd39-44b3-92b7-a293cfea694f"
SEC_TYPE="ext2" TYPE="ext3" PARTUUID="00091aaa-06"

  
_______________________________________________
Help-grub mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-grub

reply via email to

[Prev in Thread] Current Thread [Next in Thread]