HomeLinuxTips on how to Entry the GRUB Menu in Digital Machine

Tips on how to Entry the GRUB Menu in Digital Machine


Most trendy VMs are configured to skip the GRUB bootloader for a seamless expertise.

Nevertheless, you would possibly must entry the GRUB menu at instances. For instance, if you wish to change again to the older kernel or get into restoration mode for resetting the password.

💡

Reboot your VM and hold the Shift key pressed when it’s booting up once more. This could provide the GRUB menu.

On this fast article, I might be displaying you two methods to entry the GRUB menu in Linux operating in a digital machine:

  • A brief answer (when it’s important to entry GRUB a couple of times)
  • A everlasting answer (will present GRUB at each boot)

As many of the customers are usually not going to work together with the grub every day, I’ll begin with a brief answer in which you’ll entry the grub with none tweaks.

📋

I’ve used Ubuntu within the tutorial right here however the steps must be legitimate for different Linux distributions as effectively.

Entry the GRUB bootloader in VM (Fast manner)

If you wish to entry the GRUB often, that is presupposed to be one of the best ways because it doesn’t require any configuration.

Simply reboot your system and hold the shift key pressed.

That is it!

You’ll have your grub menu with none time restrict:

Accessing grub menu in VM using shift key
Maintain the Shift key pressed whereas booting to entry Grub in VM

Fairly easy manner. Is not it?

However it is going to work for that particular boot solely. So what if you wish to have the grub on each boot? Seek advice from the given technique.

🚧

This technique requires altering Grub config file within the command line. Please guarantee that you’re snug doing the edits within the terminal.

If it’s important to take care of the grub menu to entry the opposite working techniques or change boot from the older kernels typically, this technique is only for you.

To make the grub accessible at each boot, you will need to make adjustments within the configuration file.

First, open the grub config file utilizing the next command:

sudo nano /and so forth/default/grub

Right here, change the GRUB_TIMEOUT_STYLE=hidden to the GRUB_TIMEOUT_STYLE=menu:

change grub timeout style

Subsequent, in the identical config file, specify for what number of seconds you need the grub to be displayed.

I’d advocate 5 seconds because it appears to stability between not too lengthy and brief (yep, fairly relatable):

GRUB_TIMEOUT=5
configure grub timeout in ubuntu

And eventually, you may save the adjustments and exit from the nano textual content editor.

To activate the adjustments you made to the config file, replace the grub utilizing the next command:

sudo update-grub

That is it. Reboot your system and the grub must be there for five seconds.

How about theming GRUB?

You’ll get the grub bootloader in many of the Linux distros as it’s fairly easy to configure and will get the job executed.

However by default, it is nothing aside from the black background and plain textual content. So we made a information on how one can make it look dope:

Customise Grub to Get a Higher Expertise With Linux

Couple of Grub configuration tweaks to get higher expertise with multi-boot Linux system utilizing Grub Customizer GUI instrument.

I hope you can see this information useful and you probably have any queries, let me know within the feedback.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments