返回列表 發帖

【角色茶桌】—— GRUB 2

GRUB 2与GRUB Legacy分别非常大,所以特别开一幅帖子说说。

如果你对GRUB 2有经验,欢迎跟帖讨论。


角色

The command "update-grub" will read the following files

1) /etc/default/grub (default settings)
2) files in /etc/grub.d directory which contains
     00_header
     05_debian_theme
     10_linux
     20_memtest86+
     30_os-prober
     40_custom

where 40_custom contains any customised menuentries that we want.

TOP

因为以前没有太多的时候去理解grub-2,所以对Ubuntu的安装有抗拒,特别是default menu是什么?不错最近再次看,那么我们可以总结出来。

default=0,怎样改其他呢?

/etc/default/grub which contains

GRUB_DEFAULT=0

where GRUB_DEFAULT defines which number of menuentry in /boot/grub/grub.cfg. The first occurrence is 0. The second one is 1.

After you have editd /etc/default/grub for the GRUB_DEFAULT, then you execute "update-grub". The file /boot/grub/grub.cfg will be modified.

TOP

GNU GRUB Manual 1.99 链接

TOP

返回列表