Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to modify the Ubuntu GRUB boot option

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to modify the Ubuntu GRUB boot option. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Why does Introduction need to change Ubuntu GRUB?

1. When Ubuntu updates the new kernel, Ubuntu GRUB automatically adds new kernel boot options, resulting in more and more boot options. You want to delete unnecessary boot options.

2.Ubuntu GRUB default boot is Ubuntu, you can want to change the default boot to Windows.

3. Modify the default Ubuntu GRUB wait time.

4. Default does not show GRUB menu, enter Windows directly.

If you have the above requirements, you have to manually modify the Ubuntu GRUB boot option. solution to open the Ubuntu GRUB boot project file sudo gedit / boot/grub/menu.lstQ1. When Ubuntu updates the new kernel, Ubuntu GRUB automatically adds new kernel boot options, resulting in more and more boot options. You want to delete unnecessary boot options.

A1. Here are the boot options I want. If you don't need it, you can delete the End Default Options by yourself.

Title Ubuntu, kernel 2.6.20-16-generic root (hd0,6) kernel / boot/vmlinuz-2.6.20-16-generic root=UUID=b923ef76-3246-411c-8095-7bca666b13a5 ro quiet splash initrd / boot/initrd.img-2.6.20-16-generic quiet savedefault title Ubuntu Kernel 2.6.20-16-generic (recovery mode) root (hd0,6) kernel / boot/vmlinuz-2.6.20-16-generic root=UUID=b923ef76-3246-411c-8095-7bca666b13a5 ro single initrd / boot/initrd.img-2.6.20-16-generic # This entry automatically added by the Debian installer for a non-linux OS # on / dev/sda1 title Microsoft Windows XP Professional root (hd0,0) savedefault makeactive chainloader + 1

Q2.Ubuntu GRUB default boot is Ubuntu, you can want to change the default boot to Windows.A2. Modify

# # default num # Set the default entry to the entry number NUM. Numbering starts from 0, and # the entry number 0 is the default if the command is not used. # # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not change this entry to 'saved' or your # array will desync and will not let you boot your system.

The default default of default 2 is 0, which means to boot with Ubuntu. Since Windows is the third option on my computer, default is 2Q3. Modify the default Ubuntu GRUB wait time .A3. Modify

# # timeout sec # Set a timeout, in SEC seconds, before automatically booting the default entry # (normally the first entry defined).

Timeout 3 defaults to 10 seconds, and I change it to wait 3 seconds for Q4. Default does not show Ubuntu GRUB menu, enter Windows directly.

# # hiddenmenu # Hides the menu by default (press ESC to see the menu) hiddenmenu

Ubuntu GRUB menu is displayed by default. If you do not want to display menu, do not show it until you press ESC. Remove the # in front of hiddenmenu.

Thank you for reading! This is the end of this article on "how to modify Ubuntu GRUB startup options". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report