Page 1 of 2

Can't disable the GRUB menu

Posted: Fri Oct 28, 2016 7:56 pm
by RFSndrs
I have been running Linux17 and 18 for 5 or 6 months using BIBM. I have multiple OS's installed (they are all primary partitions as I have not limited primary partitions) but all are hidden in the Linux boot menu within BIBM. All of sudden, after running into a hiccup I had to reinstall Linux 18 and the GRUB menu popped up. It was never there before. I have tried everything I can find on Google to hide this darn thing with no avail.
Is there something in BIBM that will not let me hide the GRUB menu?
Any other tricks the Linux community doesn't know about that won't let me hide it?
Thanks,
Bob S

Re: Can't disable the GRUB menu

Posted: Fri Oct 28, 2016 10:17 pm
by TeraByte Support(PP)
What shows in the GRUB menu? Anything there that shouldn't be? My guess would be it added another OS entry and triggered a timeout value.

Re: Can't disable the GRUB menu

Posted: Sat Oct 29, 2016 8:35 pm
by RFSndrs
The menu has a box around it and inside the box is:
Linux Mint 18 Cinnamon 64-bit
Advanced options for Linux Mint 18 Cinnamon 64-bit
Memory test (memtest 86+)
Memory test (memtest 86+, serial console 115200)

At the bottom outside the box is:
Use the (up arrow) and (down arrow) keys to select which entry is highlighted
Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for command line
The highlighted entry will be executed automatically in 30 seconds.

The 30 seconds count down. It seems to be a normal GRUB2 menu

Thanks,
Bob S

Re: Can't disable the GRUB menu

Posted: Sat Oct 29, 2016 9:01 pm
by Brian K
Bob,

I saw that screen with Mint 18 KDE but I was using a UEFI system and booting Mint with EasyUEFI. I got rid of the screen by editing /etc/default/grub. The Timeout was changed to 0.1

I also removed the 0 (zero) from GRUB_HIDDEN_TIMEOUT=0 so it read GRUB_HIDDEN_TIMEOUT=

Then...
sudo update-grub

No more screen.

Re: Can't disable the GRUB menu

Posted: Mon Oct 31, 2016 3:28 pm
by RFSndrs
Thanks for your help, Brian, but I have changed so many things in GRUB that didn't work. I had NOT tried the GRUB_HIDDEN_TIMEOUT=(blank), tho. I tried it and still got the menu.
Here is my GRUB file:
*********************************************
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=true

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
***************************************************************
Maybe something else is getting me.
Bob S

Re: Can't disable the GRUB menu

Posted: Mon Oct 31, 2016 3:55 pm
by TeraByte Support
You did note:

If you change this file, run 'update-grub' afterwards to update





Re: Can't disable the GRUB menu

Posted: Mon Oct 31, 2016 4:14 pm
by TeraByte Support(PP)
It may also be helpful to see the actual grub.cfg file. There may be other commands being inserted that override the options you've set. Some of the automated sections can set a timeout depending on what they find, for example.

Re: Can't disable the GRUB menu

Posted: Mon Oct 31, 2016 6:07 pm
by RFSndrs
Yes, I did note 'update-grub'. And yes, there may be something in my grug.cfg file so here it is:

*******************************************
#
# 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 ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
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 recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 3658ebc6-f1ba-4790-a1ea-f99028b66fce
else
search --no-floppy --fs-uuid --set=root 3658ebc6-f1ba-4790-a1ea-f99028b66fce
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
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=0
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=0
fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
menuentry 'Linux Mint 18 Cinnamon 64-bit' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-3658ebc6-f1ba-4790-a1ea-f99028b66fce' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 3658ebc6-f1ba-4790-a1ea-f99028b66fce
else
search --no-floppy --fs-uuid --set=root 3658ebc6-f1ba-4790-a1ea-f99028b66fce
fi
linux /boot/vmlinuz-4.4.0-38-generic root=UUID=3658ebc6-f1ba-4790-a1ea-f99028b66fce ro quiet splash $vt_handoff
initrd /boot/initrd.img-4.4.0-38-generic
}
submenu 'Advanced options for Linux Mint 18 Cinnamon 64-bit' $menuentry_id_option 'gnulinux-advanced-3658ebc6-f1ba-4790-a1ea-f99028b66fce' {
menuentry 'Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-38-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-38-generic-advanced-3658ebc6-f1ba-4790-a1ea-f99028b66fce' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 3658ebc6-f1ba-4790-a1ea-f99028b66fce
else
search --no-floppy --fs-uuid --set=root 3658ebc6-f1ba-4790-a1ea-f99028b66fce
fi
echo 'Loading Linux 4.4.0-38-generic ...'
linux /boot/vmlinuz-4.4.0-38-generic root=UUID=3658ebc6-f1ba-4790-a1ea-f99028b66fce ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-38-generic
}
menuentry 'Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-38-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-38-generic-init-upstart-3658ebc6-f1ba-4790-a1ea-f99028b66fce' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 3658ebc6-f1ba-4790-a1ea-f99028b66fce
else
search --no-floppy --fs-uuid --set=root 3658ebc6-f1ba-4790-a1ea-f99028b66fce
fi
echo 'Loading Linux 4.4.0-38-generic ...'
linux /boot/vmlinuz-4.4.0-38-generic root=UUID=3658ebc6-f1ba-4790-a1ea-f99028b66fce ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-38-generic
}
menuentry 'Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-38-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-38-generic-recovery-3658ebc6-f1ba-4790-a1ea-f99028b66fce' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 3658ebc6-f1ba-4790-a1ea-f99028b66fce
else
search --no-floppy --fs-uuid --set=root 3658ebc6-f1ba-4790-a1ea-f99028b66fce
fi
echo 'Loading Linux 4.4.0-38-generic ...'
linux /boot/vmlinuz-4.4.0-38-generic root=UUID=3658ebc6-f1ba-4790-a1ea-f99028b66fce ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-38-generic
}
menuentry 'Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-21-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-21-generic-advanced-3658ebc6-f1ba-4790-a1ea-f99028b66fce' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 3658ebc6-f1ba-4790-a1ea-f99028b66fce
else
search --no-floppy --fs-uuid --set=root 3658ebc6-f1ba-4790-a1ea-f99028b66fce
fi
echo 'Loading Linux 4.4.0-21-generic ...'
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=3658ebc6-f1ba-4790-a1ea-f99028b66fce ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-21-generic
}
menuentry 'Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-21-generic (upstart)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-21-generic-init-upstart-3658ebc6-f1ba-4790-a1ea-f99028b66fce' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 3658ebc6-f1ba-4790-a1ea-f99028b66fce
else
search --no-floppy --fs-uuid --set=root 3658ebc6-f1ba-4790-a1ea-f99028b66fce
fi
echo 'Loading Linux 4.4.0-21-generic ...'
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=3658ebc6-f1ba-4790-a1ea-f99028b66fce ro quiet splash $vt_handoff init=/sbin/upstart
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-21-generic
}
menuentry 'Linux Mint 18 Cinnamon 64-bit, with Linux 4.4.0-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.4.0-21-generic-recovery-3658ebc6-f1ba-4790-a1ea-f99028b66fce' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 3658ebc6-f1ba-4790-a1ea-f99028b66fce
else
search --no-floppy --fs-uuid --set=root 3658ebc6-f1ba-4790-a1ea-f99028b66fce
fi
echo 'Loading Linux 4.4.0-21-generic ...'
linux /boot/vmlinuz-4.4.0-21-generic root=UUID=3658ebc6-f1ba-4790-a1ea-f99028b66fce ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-4.4.0-21-generic
}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry 'Memory test (memtest86+)' {
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 3658ebc6-f1ba-4790-a1ea-f99028b66fce
else
search --no-floppy --fs-uuid --set=root 3658ebc6-f1ba-4790-a1ea-f99028b66fce
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_gpt
insmod ext2
set root='hd1,gpt3'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt3 --hint-efi=hd1,gpt3 --hint-baremetal=ahci1,gpt3 3658ebc6-f1ba-4790-a1ea-f99028b66fce
else
search --no-floppy --fs-uuid --set=root 3658ebc6-f1ba-4790-a1ea-f99028b66fce
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

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

********************************************************
I have tried setting all of these time delays to 0 with no avail as I'm sure grub-mkconfig is changing them. I have NOT tried deleting the 'menuentry' items (read this in Google somewhere) as I am too much of a newbie to Linux to try anything too exotic.

Thanks,
Bob S

Re: Can't disable the GRUB menu

Posted: Mon Oct 31, 2016 7:20 pm
by Brian K
Bob,

This worked for me. I needed both edits...


GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0.1
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""


This doesn't work. I still see the menu...

GRUB_TIMEOUT=0

0.1 works


This line wasn't present...

GRUB_DISABLE_OS_PROBER=true

Re: Can't disable the GRUB menu

Posted: Mon Oct 31, 2016 9:58 pm
by RFSndrs
Brian'
I changed GRUB_TIMEOUT=o to 0.1 and deleted the GRUB_DISABLE_OS_PROBER=true line ( I got this from another Google input) and I still get the darn menu. I have tried 0.0 and 0.1 in both of the timeouts with no avail. I did try your suggestion, tho just in case.
Thanks for you assistance. If you think of anything else, please let me know. I'm getting ready to just reinstall the whole OS all over. I really don't want to go back to Windows 10.

Bob S