Linux 之 chainloader

title = Windows

root (hd0,0)

chainloader +1  //这里要注意格式!chainloader 后面有一个空格,+和1之间没有,

boot

 

修改/boot/grub/menu.1st
default=1
timeout=10
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
        root (hd0,0)
        kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /boot/initrd-2.4.20-8.img
title Windows2000
        map (hd0) (hd1)
        map (hd1) (hd0)
        rootnoverify (hd1,0)
        chainloader +1
        makeactive
        boot

 

在linux下fdisk -l的情况:
[root@redhat /]# fdisk -l 

posted @ 2009-12-05 19:06  Alamps  阅读(788)  评论(0编辑  收藏  举报