2024年4月16日发(作者:)

CentOS GRUB更改GRUB启动菜单

原文地址:/jzbgjsy/article/details/5337425

一、为什么需要更改CentOS GRUB呢?

1.当CentOS更新新的内核后,GRUB会自动加上新的kernel开机选项,导致开机选项

越来越多,想将不必要的开机选项刪除.

GRUB预设开机为CentOS,你可以想将预设开机改成Windows.

3.修改预设CentOS GRUB等待时間.

4.预设不显示GRUB menu,直接進入Windows.

二、设置

开啟CentOS GRUB开机选项档 gedit /boot/grub/

1.当CentOS更新新的kernel后,CentOS GRUB会自动加上新的kernel开机选项,导

致开机选项越来越多,想将不必要的开机选项刪除.

以下为我所要的开机选项,不需要者可自行刪除之

## ## 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/-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/-2.6.20-16-generic

# This entry automatically added by the Debian installer for a non-linux OS