opensuse grub如何引导第二块硬盘上的windows xp

opensuse装在第一块硬盘上
WINDOWS XP系统在第二块硬盘的第一分区上,默认启动从第一块硬盘启动,刚开始在menu.lst中添加内容如下:
title Desktop -- Microsoft Windows XP Professional
    rootnoverify (hd1,0)
    makeactive
    chainloader +1

显示器一直显示出“
title Desktop -- Microsoft Windows XP Professional
    rootnoverify (hd1,0)
    makeactive
    chainloader +1
并保持不变,无错误提示
保持不变,无法正常进入WINDOWS XP系统,最后经过一番折腾,最后解决了问题,添加的内容如下:
title Desktop -- Microsoft Windows XP Professional
    rootnoverify (hd1,0)
    map (hd1,0) (hd0,0)
    map (hd0,0) (hd1,0)
    makeactive
    chainloader +1
主要就是添加了map指令。
查到资料,修改原因如下:
If you have installed DOS (or Windows) on a non-first hard disk, you have to use the disk swapping technique, because that OS cannot boot from any disks but the first one. The workaround used in GRUB is the command map (see map), like this:

grub> map (hd0) (hd1)
grub> map (hd1) (hd0)

就是hd0的分区变成了hd1的,而hd1的分区变成了hd0的,用map命令可以虚拟掉换两硬盘的id.

你可能感兴趣的:(opensuse grub如何引导第二块硬盘上的windows xp)