分页: 1 / 1

关于操作系统启动顺序

发表于 : 2007-11-18 12:41
hammerya
装了UBUNTU后,启动电脑在操作系统启动列表上UBUNTU为默认第一个操作系统,平时用XP用得比较多,所以想请问一下,怎么修改这个启动顺序,把XP改成默认

发表于 : 2007-11-18 13:55
yaoms
编辑/boot/grub/menu.lst 文件,将windows段调到前面。不过注意,一定不要写错。

发表于 : 2007-11-18 14:05
chattan
一定要小心!

发表于 : 2007-11-18 14:09
yiding_he
不用那么麻烦。打开 /boot/grub/menu.lst,找到“default 0”那一行,将0改为你需要的数字。0表示菜单里的第一项,后面的依此类推。

发表于 : 2007-11-18 15:53
hammerya
thank you
i'm in ubuntu now and i've no chinese input.......
i'll try,haha :D

发表于 : 2007-11-18 15:59
hammerya
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=68c3f293-7f90-4394-a4d6-2a24c6c8b79d ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=68c3f293-7f90-4394-a4d6-2a24c6c8b79d ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Ubuntu, memtest86+
root (hd0,6)
kernel /boot/memtest86+.bin
quiet

### 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 Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1








those are the part of the file named mune.lst

发表于 : 2007-11-18 16:01
hammerya
should i just change the pasition of paragraphs of the ubuntu OS and WINDOWS XP? :(

发表于 : 2007-11-18 16:05
shugoal
补一句 先打个命令

代码: 全选

sudo cp /boot/gurb/menu.lst /boot/grub/menu.lst.back
做个备份!

发表于 : 2007-11-18 16:17
hammerya
shugoal 写了:补一句 先打个命令

代码: 全选

sudo cp /boot/gurb/menu.lst /boot/grub/menu.lst.back
做个备份!

thank you

发表于 : 2007-11-18 16:25
hammerya
i cann't save the file

发表于 : 2007-11-18 16:36
PhoenixJ

代码: 全选

sudo gedit /boot/grub/menu.lst
将default 0段设置为default 3

发表于 : 2007-11-18 16:46
bigbird
shugoal 写了:补一句 先打个命令

代码: 全选

sudo cp /boot/gurb[/color]/menu.lst /boot/grub/menu.lst.back
做个备份!
呵呵,看到您有个疏忽,应该是
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.back