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

CentOS GRUB is responsible for how to manage startup Linux

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

CentOS GRUB is responsible for how to manage startup Linux. I believe many inexperienced people are at a loss about this. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

CentOS GRUB is responsible for CentOS users must learn to use, because there are still many people can not use CentOS GRUB, so let me briefly explain, as to whether it works depends on character. How to modify the boot option of CentOS GRUB? (OS) (Linux) (Ubuntu) (CentOS). Users of CentOS Linux will not encounter any copyright problems. CentOS is aimed at those who need the stability of enterprise-class operating systems, and there is no overhead in authentication and support.

Abstract CentOS GRUB is responsible for managing whether to launch Linux or Windows. How can I modify the GRUB boot option?

Introduction

Why do you need to change CentOS GRUB?

1. When Ubuntu updates the new kernel, GRUB will automatically add a new kernel boot option, resulting in more and more boot options and want to remove unnecessary boot options.

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

3. Modify the preset CentOS GRUB wait time.

4. Do not display GRUB menu by default, enter Windows directly.

If you have the above requirements, you will have to manually modify the GRUB boot option.

Solution

Open the CentOS GRUB boot option file sudo gedit / boot/grub/menu.lst

Q1. When Ubuntu updates the new kernel, CentOS GRUB will automatically add a new kernel boot option, resulting in more and more boot options and want to remove unnecessary boot options.

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

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.CentOS GRUB default boot to 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.

Default 2

The default default is 0, which means to boot with Ubuntu. Because Windows is the third option on my computer, default is 2.

Q3. Modify the preset CentOS 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

The default is 10 seconds. I changed it to wait 3 seconds.

Q4. Do not display CentOS GRUB menu by default, enter Windows directly.

# # hiddenmenu

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

Hiddenmenu

GRUB menu will be displayed by default. If you do not want to display menu, it will only be displayed when you press ESC. Please remove the # before hiddenmenu.

After reading the above, have you mastered how CentOS GRUB is responsible for managing the startup of Linux? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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