我首先安装的是win7系统,后来因为实验室需要又装了个debian系统,从而变成双系统,但装完debian之后,开机启动默认进入debian系统,而不是我想要得win7系统,所以需要设置一下,方法如下:
进入debian系统,编辑/boot/grub/menu.list文件
找到default 0,这表示开机默认启动菜单中第一个系统,也就是下面列表的第一个title,而win7在最后面,也就是第四个title,所以将default 0 修改为default 3,保存重启系统即可默认进入WIN7系统。
## ## End Default Options ##
title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd0,7)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda8 ro quiet
initrd /boot/initrd.img-2.6.26-2-686
title Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda8 ro single
initrd /boot/initrd.img-2.6.26-2-686
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1