|
发表于 2009-11-16 21:24:43
|
显示全部楼层
我也用两个硬盘,但从来没有问题,用UUID 那是最好 ,但可能GRUB0.97不支持,但GRUB2肯定支持
hda 装Debian,grub装在hda的MBR,然后启动后显示grub界面后,再选择启动sda上的GRUB进而启动sda上的DEBIAN 系统
sda 装 XP+Debian, grub装在sda的MBR,attached a captured partitioned table
这是sda硬盘上部分menu.lst内容
title Debian GNU/Linux, kernel 2.6.30-2-686
root (hd1,1)
kernel /vmlinuz-2.6.30-2-686 root=/dev/sda6 ro
initrd /initrd.img-2.6.30-2-686
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
下面是我升级到GRUB2后sda部分menu.lst内容的配置
### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, Linux 2.6.30-2-686" {
insmod ext2
set root=(hd1,2)
search --no-floppy --fs-uuid --set 0d1e8198-10e5-4ee8-a632-312128849c42
linux /vmlinuz-2.6.30-2-686 root=UUID=b59f6954-6cc1-4a8e-a6f7-2d10bd7b2cbc ro quiet vga=792
initrd /initrd.img-2.6.30-2-686
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
# 下面是直接跳回hda硬盘上的grub
menuentry "Debian_EXT4" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0)
chainloader +1
}
menuentry "Windows XP_Started via F8 通过F8选择启动 " {
insmod ntfs
set root=(hd0,1)
chainloader +1
}
menuentry "Windows XP_Started via chianloader " {
insmod ntfs
set root=(hd1,1)
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/40_custom ### |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|