[问题已解决]怎样修改grub?
发表于 : 2006-11-25 15:12
我有两块硬盘,分别装了ubuntu与windows xp ,需要说明的是这两个系统都是分开装的,即装xp时把主盘电源拨下,装ubuntu时把从盘拔下,现在ubuntu在主盘上,怎样修改grub使得可以在启动时选择操作系统?
代码: 全选
# menu.lst - See: grub(8), info grub, update-grub(8)
default 5
timeout 5
hiddenmenu
title Ubuntu, kernel 2.6.15-27-386
root (hd0,0)
kernel /vmlinuz-2.6.15-27-386 root=/dev/hda3 ro quiet splash vga=792
initrd /initrd.img-2.6.15-27-386
savedefault
boot
title Ubuntu, kernel 2.6.15-27-386 (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.6.15-27-386 root=/dev/hda3 ro single
initrd /initrd.img-2.6.15-27-386
boot
title Ubuntu, kernel 2.6.15-26-386
root (hd0,0)
kernel /vmlinuz-2.6.15-26-386 root=/dev/hda3 ro quiet splash vga=792
initrd /initrd.img-2.6.15-26-386
savedefault
boot
title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.6.15-26-386 root=/dev/hda3 ro single
initrd /initrd.img-2.6.15-26-386
boot
title Ubuntu, memtest86+
root (hd0,0)
kernel /memtest86+.bin
boot
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1