Ubuntu GRUB開機選項修改

系统 Linux
假如你有以上需求,就得手動修改Ubuntu GRUB開機選項.Solution開啟Ubuntu GRUB開機選項檔sudo gedit /boot/grub/menu.lstQ1.當Ubuntu更新新的kernel後,Ubuntu GRUB會自動加上新的kernel開機選項,導致開機選項越來越多,想將不必要的開機選項刪除.

特别值得一提的是Ubuntu GRUB有很多值得学习的地方,这里我们主要介绍Ubuntu GRUB,包括介绍Ubuntu GRUB等方面。Ubuntu GRUB負責管理啟動Linux還是Windows,該如何修改Ubuntu GRUB開機選項呢?

Introduction為什麼需要更改Ubuntu GRUB呢?
1.當Ubuntu更新新的kernel後,Ubuntu GRUB會自動加上新的kernel開機選項,導致開機選項越來越多,想將不必要的開機選項刪除.
2.Ubuntu GRUB預設開機為Ubuntu,你可以想將預設開機改成Windows.
3.修改預設Ubuntu GRUB等待時間.
4.預設不顯示GRUB menu,直接進入Windows.

假如你有以上需求,就得手動修改Ubuntu GRUB開機選項.Solution開啟Ubuntu GRUB開機選項檔sudo gedit /boot/grub/menu.lstQ1.當Ubuntu更新新的kernel後,Ubuntu 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 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.

Q2.Ubuntu 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. 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.

default  2預設default為 0,表示開機用Ubuntu開機,因為在我的電腦Windows為第三個選項,故default為2Q3.修改預設Ubuntu GRUB等待時間.A3.修改

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

timeout 3預設為10秒鐘,我改成等待3秒鐘Q4.預設不顯示Ubuntu GRUB menu,直接進入Windows.

## hiddenmenu  
# Hides the menu by default (press ESC to see the menu)  
hiddenmenu 
  • 1.
  • 2.
  • 3.

預設會顯示Ubuntu GRUB menu,若你不想顯示menu,要當按下ESC才顯示,請將hiddenmenu前的#拿掉

【编辑推荐】

  1. Ubuntu grub利用安装光盘硬盘安装ISO文件
  2. Ubuntu GRUB密码设置可分为全局密码和菜单密码
  3. 重装系统后Ubuntu grub的选项
  4. Ubuntu GRUB全局密码和菜单密码
  5. Ubuntu GRUB系统引导器
责任编辑:佚名 来源: CSDN
相关推荐

2010-03-02 16:58:38

Ubuntu 8.10

2010-06-13 09:03:41

Grub安装Ubunt

2010-06-13 16:32:19

Linux Grub命

2010-01-04 11:30:07

Ubuntu GRUB

2010-06-12 10:31:44

Ubuntu Grub

2010-06-13 12:32:58

Ubuntu Grub

2010-06-13 10:11:46

Ubuntu Grub

2010-06-13 09:27:18

Grub安装Ubunt

2010-03-05 13:54:15

Ubuntu文本安裝

2010-01-04 11:36:05

Ubuntu GRUB

2010-06-13 11:12:49

Ubuntu 9.10

2010-06-17 11:35:24

Ubuntu 修复Gr

2010-06-17 09:39:07

Ubuntu Grub

2010-06-17 10:13:28

Grub命令启动Ubu

2010-06-12 10:03:20

Ubuntu Grub

2010-06-13 12:59:15

Ubuntu xp G

2010-06-13 13:11:18

Ubuntu xp G

2010-05-25 10:11:06

ubuntu Grub

2010-06-12 14:04:16

Grub.conf

2017-03-15 20:25:34

LinuxGRUB启动背景
点赞
收藏

51CTO技术栈公众号