CentOS GRUB负责管理启动Linux
创始人
2024-06-20 19:31:20
0

CentOS GRUB负责是CentOS用户必须学习使用的,由于CentOS GRUB还有很多人不会应用所以由我来简述说明下,至于管用否就看人品了.如何修改CentOS GRUB的开机选项? (OS) (Linux) (Ubuntu) (CentOS) 。CentOS Linux的使用者也不会遇到任何的版权问题。CentOS面向那些需要企业级操作系统稳定性的人们,而且并不存在认证和支持方面的开销。

Abstract CentOS GRUB负责管理启动Linux还是Windows,該如何修改GRUB开机选项呢?
Introduction
为什么需要更改CentOS GRUB呢?
1.当Ubuntu更新新的kernel后,GRUB会自动加上新的kernel开机选项,导致开机选项越来越多,想将不必要的开机选项刪除.
2.CentOS GRUB预设开机为Ubuntu,你可以想将预设开机改成Windows.
3.修改预设CentOS GRUB等待时間.
4.预设不显示GRUB menu,直接進入Windows.
假如你有以上需求,就得手动修改GRUB开机选项.
Solution

开啟CentOS GRUB开机选项档sudo gedit /boot/grub/menu.lst

Q1.当Ubuntu更新新的kernel后,CentOS GRUB会自动加上新的kernel开机选项,导致开机选项越来越多,想将不必要的开机选项刪除.
A1.以下为我所要的开机选项,不需要者可自行刪除之## ## 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预设开机为Ubuntu,你可以想将预设开机改成Windows.
A2.修改
## 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
预设default为 0,表示开机用Ubuntu开机,因为在我的电脑Windows为第三個选项,故default为2

Q3.修改预设CentOS GRUB等待时间.
A3.修改
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout        3
预设为10秒钟,我改成等待3秒钟

Q4.预设不显示CentOS GRUB menu,直接進入Windows.
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
预设会显示GRUB menu,若你不想显示menu,要当按下ESC才显示,请将hiddenmenu前的#拿掉

【编辑推荐】

  1. centos管理相关系统应用
  2. CentOS用户创建及FXP传输
  3. centos安装配置proftp系统软件文件
  4. 概述CentOS Memcached安装及运行检测
  5. CentOS lighttpd安装及网站目录配置

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
Windows恶意软件20年“... 在Windows的早期年代,病毒游走于系统之间,偶尔删除文件(但被删除的文件几乎都是可恢复的),并弹...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
着眼MAC地址,解救无法享受D... 在安装了DHCP服务器的局域网环境中,每一台工作站在上网之前,都要先从DHCP服务器那里享受到地址动...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...