安装了xp和squeeze debian后,想把默认的启动系统更改为xp,查了些资料,大部分都是错的(因为debian版本的不同)
以下为错误的解决方式:
在squeeze debian的grub目录下是不存在menu.lst这个文件的。正确的更改方式如下:
在终端输入:
gedit /etc/default/grub
grub文件里 GRUB_DEFAULT=0 这一项是默认启动的操作系统, 0 代表第一个操作系统, 1 代表第二个操作系统,依此类推。
如果想默认启动第三个操作系统就把 0 改为 2 。
GRUB_TIMEOUT=5 这一项是进入系统的等待时间,默认为 5 秒。
修改好后,保存关闭,在终端输入:
sudo update-grub
更新grub
在http://wiki.debian.org/Grub#Debian_Squeeze_and_later中可以看出,这是因为squeeze版和以前的版本(如lenny)引导软件有些不同所致。
Configuring Grub
Configuring grub v1
The configuration file is /boot/grub/menu.lst
Under Debian, the grub configuration file is updated automatically, when you install a new kernel. This is done automatically byupdate-grub.
You can edit the settings in /boot/grub/menu.lst. Make sure you read the comments,/usr/share/doc/grub/README.Debian.gz for more information and the update-grub(8) manpage from your distribution.
Configuring grub v2
The configuration file is /boot/grub/grub.cfg, but you shouldn't edit it directly. This file is generated by grub v2'supdate-grub(8), based on:
-
The script snippets in /etc/grub.d/
-
The configuration file /etc/default/grub
To configure grub "v2", you should edit/etc/default/grub, then run update-grub. Advanced configuration are achieved by modifying the snippets in/etc/grub.d/.
Also check the Grub2 page for more detailed configuration instructions, ideas and suggestions.
其他有用外链:http://forums.debian.net/viewtopic.php?f=17&t=60328