[O/S] Hide GRUB menu and access it via shortcut on windows

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
minxty
Posts: 3
Joined: 2024-10-22 13:41
Has thanked: 1 time

[O/S] Hide GRUB menu and access it via shortcut on windows

#1 Post by minxty »

I have installed Linux Debian alongside Windows 10. I would like to know how to completely hide the GRUB menu at startup and boot windows by default. Instead, I want to create a shortcut in Windows that will reboot my PC directly into the GRUB menu

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1178
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 122 times
Been thanked: 206 times

Re: [O/S] Hide GRUB menu and access it via shortcut on windows

#2 Post by wizard10000 »

minxty wrote: 2024-10-22 13:43...how to completely hide the GRUB menu at startup and boot windows by default.
The way to do this is to set grub's timeout at zero by editing /etc/default/grub, setting the timeout to zero and updating grub. These actions need to be done as root. You'd modify GRUB_TIMEOUT= and set the value to zero.

But - this might not be a great idea because it will deny you access to grub's recovery console, which may be needed if you have a Linux issue that prevents the machine from running normally. It will also deprive you of an additional method to get into BIOS.

Inside that same file you'll find GRUB_DEFAULT="0" which tells grub which menu entry to boot by default, counting from zero. You'll need to look at your grub menu to tell which number this would be.
Instead, I want to create a shortcut in Windows that will reboot my PC directly into the GRUB menu
I'm afraid this is not possible.

If you want to boot Windows first but still have some control over booting Linux I'd suggest setting GRUB_DEFAULT to your Windows install and set GRUB_TIMEOUT to something shorter than the default. I personally set GRUB_TIMEOUT to three seconds so I have enough time to move my grub selection from the default if I need to.

Hope this helps -
we see things not as they are, but as we are.
-- anais nin

minxty
Posts: 3
Joined: 2024-10-22 13:41
Has thanked: 1 time

Re: [O/S] Hide GRUB menu and access it via shortcut on windows

#3 Post by minxty »

wizard10000 wrote: 2024-10-22 15:59
minxty wrote: 2024-10-22 13:43...how to completely hide the GRUB menu at startup and boot windows by default.
The way to do this is to set grub's timeout at zero by editing /etc/default/grub, setting the timeout to zero and updating grub. These actions need to be done as root. You'd modify GRUB_TIMEOUT= and set the value to zero.

But - this might not be a great idea because it will deny you access to grub's recovery console, which may be needed if you have a Linux issue that prevents the machine from running normally. It will also deprive you of an additional method to get into BIOS.

Inside that same file you'll find GRUB_DEFAULT="0" which tells grub which menu entry to boot by default, counting from zero. You'll need to look at your grub menu to tell which number this would be.
Instead, I want to create a shortcut in Windows that will reboot my PC directly into the GRUB menu
I'm afraid this is not possible.

If you want to boot Windows first but still have some control over booting Linux I'd suggest setting GRUB_DEFAULT to your Windows install and set GRUB_TIMEOUT to something shorter than the default. I personally set GRUB_TIMEOUT to three seconds so I have enough time to move my grub selection from the default if I need to.

Hope this helps -
so, there is no any way to hide grub menu fully and access it through other methods? or is there way to make smth like reboot to linux link on main system

User avatar
wizard10000
Global Moderator
Global Moderator
Posts: 1178
Joined: 2019-04-16 23:15
Location: southeastern us
Has thanked: 122 times
Been thanked: 206 times

Re: [O/S] Hide GRUB menu and access it via shortcut on windows

#4 Post by wizard10000 »

minxty wrote: 2024-10-22 16:32so, there is no any way to hide grub menu fully and access it through other methods? or is there way to make smth like reboot to linux link on main system
Windows can't write to the Linux partition where grub's configuration is stored.
we see things not as they are, but as we are.
-- anais nin

Post Reply