Board logo

標題: 【角色茶桌】—— GRUB 2 [打印本頁]

作者: 角色    時間: 2011-9-16 21:11     標題: 【角色茶桌】—— GRUB 2

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

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


角色
作者: 角色    時間: 2011-9-16 21:54

GNU GRUB Manual 1.99 链接
作者: 角色    時間: 2012-6-5 00:10

因为以前没有太多的时候去理解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.
作者: 角色    時間: 2012-6-5 00:16

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.




歡迎光臨 電訊茶室 (http://www.telecom-cafe.com/forum/) Powered by Discuz! 7.2