使用grub for dos来引导双系统(zz)
我用的是双硬盘,分别装xp和mandrake,以前都是在bios中设置双引导很不方便(我不想覆盖xp的mbr).自从找到grub for
dos后引导双系统真是太方便了。下载:Grub_for_dos-0.2.0pre12.tar.gz文件,解压后把 grub 和 GRLDR
两个文件拷贝到 c: 盘的根下。在boot.ini中增加一行:c:\GRLDR=“start
grub”.重启后选择此项,它会自动搜索boot/grub/menu.lst文件,以后就像是在linux下一样。压缩包中自带boot/grub
/menu.lst文件,可以把它也放在c: 盘的根下,这样就会自动加载。不过要根据自己的情况加以修改。以下是我的menu.lst文件。
# This is a sample menu.lst file. You should make some changes to it.
# Added items for installing GRUB [ which is on your DOS drive C: ] to MBR
color black/cyan yellow/cyan
timeout 60
default 0
title DOS/Win9x/Me/NT/2K/XP on (hd0,0)
root (hd0,0)
chainloader +1
title Mandrake Linux on (hd1,0)
kernel (hd1,0)/vmlinuz root=/dev/hdb2 devfs=mount acpi=ht resume=/dev/hdb3
initrd (hd1,0)/initrd.img
title Red Hat Linux on (hd0,8)
kernel (hd0,8)/boot/vmlinuz root=/dev/hda9
title floppy on (fd0)
root (fd0)
chainloader +1
title DOS/Win9x on (hd1,0) -- Do not use this to start WinMe/2K or later
pause Warning: drive map used. Press any key to start DOS/Win9x on (hd1,0)...
root (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader +1
title DOS/Win9x on (hd2,0) -- Do not use this to start WinMe/2K or later
pause Warning: drive map used. Press any key to start DOS/Win9x on (hd2,0) ...
root (hd2,0)
map (hd2) (hd0)
map (hd0) (hd2)
makeactive
chainloader +1
title install GRUB on (hd0,0) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,0)/boot/grub/ to MBR. Press any key to begin...
root (hd0,0)
setup (hd0)
pause GRUB install OK! Press any key to reboot your machine...
reboot
title install GRUB on (hd0,1) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,1)/boot/grub/ to MBR. Press any key to begin...
root (hd0,1)
setup (hd0)
pause GRUB install OK! Press any key to reboot your machine...
reboot
title install GRUB on (hd0,2) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,2)/boot/grub/ to MBR. Press any key to begin...
root (hd0,2)
setup (hd0)
pause GRUB install OK! Pre
# This is a sample menu.lst file. You should make some changes to it.
# Added items for installing GRUB [ which is on your DOS drive C: ] to MBR
color black/cyan yellow/cyan
timeout 60
default 0
title DOS/Win9x/Me/NT/2K/XP on (hd0,0)
root (hd0,0)
chainloader +1
title Mandrake Linux on (hd1,0)
kernel (hd1,0)/vmlinuz root=/dev/hdb2 devfs=mount acpi=ht resume=/dev/hdb3
initrd (hd1,0)/initrd.img
title Red Hat Linux on (hd0,8)
kernel (hd0,8)/boot/vmlinuz root=/dev/hda9
title floppy on (fd0)
root (fd0)
chainloader +1
title DOS/Win9x on (hd1,0) -- Do not use this to start WinMe/2K or later
pause Warning: drive map used. Press any key to start DOS/Win9x on (hd1,0)...
root (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader +1
title DOS/Win9x on (hd2,0) -- Do not use this to start WinMe/2K or later
pause Warning: drive map used. Press any key to start DOS/Win9x on (hd2,0) ...
root (hd2,0)
map (hd2) (hd0)
map (hd0) (hd2)
makeactive
chainloader +1
title install GRUB on (hd0,0) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,0)/boot/grub/ to MBR. Press any key to begin...
root (hd0,0)
setup (hd0)
pause GRUB install OK! Press any key to reboot your machine...
reboot
title install GRUB on (hd0,1) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,1)/boot/grub/ to MBR. Press any key to begin...
root (hd0,1)
setup (hd0)
pause GRUB install OK! Press any key to reboot your machine...
reboot
title install GRUB on (hd0,2) to MBR (hd0) and reboot. Password: danger
pause You requested to install GRUB onto MBR. We highly recommend you NOT to do so, basically for two reasons: 1. For some non-MS-compatible boot loaders(in case you might be using), the install is INDEED dangerous and may cause your whole disk(and all your operating systems on it) unaccessible. 2. Even if you are using(in MBR)an MS-compatible boot loader such as LILO and GRUB, you may encounter problems like hard-disk-boot-failure when you move or delete the /boot/grub/stage2 file, or even when disk defragmentation operations are made. Press any key to continue...
pause A password prompt will confirm that you want the operation anyway. Press any key to continue...
password danger
pause This will install GRUB in (hd0,2)/boot/grub/ to MBR. Press any key to begin...
root (hd0,2)
setup (hd0)
pause GRUB install OK! Pre