[SOLVED] Skip the GRUB menu at startup?

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
djc
Level 1
Level 1
Posts: 7
Joined: Fri Sep 28, 2018 3:42 pm

[SOLVED] Skip the GRUB menu at startup?

Post by djc »

At some point, I don't know why, my Linux Mint 18.3 MATE 64-bit computers began booting into the GRUB menu rather than directly into the OS. I'd like to return to booting directly to the OS, but although I've tried several of the contradictory edits to /etc/default/grub visible on the net, nothing I've tried has worked. At this instant, /etc/default/grub on this computer, stripped of its comments, is

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

How can I make the computer skip the GRUB menu display and boot directly to the OS?
Last edited by djc on Sat Sep 29, 2018 5:31 pm, edited 1 time in total.
User avatar
all41
Level 16
Level 16
Posts: 6657
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Skip the GRUB menu at startup?

Post by all41 »

Try setting:
GRUB_TIMEOUT=0.1
You will have to:
sudo update-grub
to effect the change

You can still bring up the grub screen by holding shift at the oem splash screen

I believe this was originally Pjotr's suggestion
Light travels faster than sound. That's why some people appear smart until you hear what they are saying.
You will seldom see a grey-beard wearing a tinfoil hat.
gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: Skip the GRUB menu at startup?

Post by gm10 »

Does this help?

Code: Select all

GRUB_TIMEOUT_STYLE=hidden
djc
Level 1
Level 1
Posts: 7
Joined: Fri Sep 28, 2018 3:42 pm

Re: [SOLVED] Skip the GRUB menu at startup?

Post by djc »

Setting GRUB_TIMEOUT=0.1 did the job on this computer, so I didn't proceed to try GRUB_TIMEOUT_STYLE=hidden. I'll try GRUB_TIMEOUT on another tomorrow.

Curious why GRUB_TIMEOUT=0 doesn't work. 0.1 seems counter-intuitive to me. But it works.

Thanks both for the quick, effective help.
User avatar
jackerbes
Level 3
Level 3
Posts: 179
Joined: Fri Jul 03, 2015 8:37 am

Re: [SOLVED] Skip the GRUB menu at startup?

Post by jackerbes »

What happens if you uninstall grub?

I want the menu and use the grub customizer gui so don't know if grub is mandatory to boot linux or not.

Jack
Mint 18.3 and 19, 64-bit, Cinnamon, Lenovo ThinkPad T520 laptop, ASUS Z-97 desktop, Samsung S6 Android phone
Jack Erbes in Ellsworth, ME, USA
gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Skip the GRUB menu at startup?

Post by gm10 »

jackerbes wrote:
Sat Sep 29, 2018 6:02 pm
What happens if you uninstall grub?

I want the menu and use the grub customizer gui so don't know if grub is mandatory to boot linux or not.
Some sort of boot loader is mandatory. It doesn't have to be GRUB, but it does have to be something. Uninstalling GRUB without providing another boot loader will render the system unbootable, therefore this should never be suggested.

Don't try this at home, kids. ;)
djc
Level 1
Level 1
Posts: 7
Joined: Fri Sep 28, 2018 3:42 pm

Re: [SOLVED] Skip the GRUB menu at startup?

Post by djc »

GRUB_TIMEOUT=0.1 works on a second 18.3 system, so it looks good generally to prevent the menu from displaying before booting Linux.

GRUB's documentation at https://www.gnu.org/software/grub/manual/grub/grub.html says about GRUB_TIMEOUT that a value of 0 boots "immediately without displaying the menu". But this obviously isn't the case. That's where I began, and it didn't work that way.

And just to note: the function of GRUB_TIMEOUT_STYLE=hidden, according to the online manual, is to "wait for the timeout set by 'GRUB_TIMEOUT' to expire" and if "ESC is pressed during that time, [to] display the menu and wait for input." So if the documentation is correct about this, it looks as if using it would hide the menu but keep any GRUB_TIMEOUT delay.
User avatar
jackerbes
Level 3
Level 3
Posts: 179
Joined: Fri Jul 03, 2015 8:37 am

Re: [SOLVED] Skip the GRUB menu at startup?

Post by jackerbes »

gm10 wrote:
Sat Sep 29, 2018 6:08 pm

..<snip>...

Some sort of boot loader is mandatory. It doesn't have to be GRUB, but it does have to be something. Uninstalling GRUB without providing another boot loader will render the system unbootable, therefore this should never be suggested.

Don't try this at home, kids. ;)
Thanks for explaining that, I slowly getting smarter here. :>)

Jack
Mint 18.3 and 19, 64-bit, Cinnamon, Lenovo ThinkPad T520 laptop, ASUS Z-97 desktop, Samsung S6 Android phone
Jack Erbes in Ellsworth, ME, USA
gm10
Level 20
Level 20
Posts: 10999
Joined: Thu Jun 21, 2018 5:11 pm

Re: [SOLVED] Skip the GRUB menu at startup?

Post by gm10 »

djc wrote:
Sun Sep 30, 2018 5:34 am
And just to note: the function of GRUB_TIMEOUT_STYLE=hidden, according to the online manual, is to "wait for the timeout set by 'GRUB_TIMEOUT' to expire" and if "ESC is pressed during that time, [to] display the menu and wait for input." So if the documentation is correct about this, it looks as if using it would hide the menu but keep any GRUB_TIMEOUT delay.
I'm aware, hence the question mark behind my suggestion to try that parameter. But it is what's present in a default LM GRUB configuration. I'm also using a timeout of 0 and my GRUB menu is not popping up. So I figured it's worth trying out.
Post Reply

Return to “Installation & Boot”