使用grub for dos来引导双系统(zz)
2008-06-22 13:00
399 查看
我用的是双硬盘,分别装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
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
相关文章推荐
- grubfordos 引导linux 和windows方法
- windows 7 下引导grub for dos、linux
- Grub for DOS 的下载和使用_天涯何处(转载)
- Grub for Dos引导linuz安装
- 重装WIN7之后使用Ubuntu LiveCD修复grub2双系统引导
- centos安装或修复grub并使用grub引导系统
- Grub for Dos引导安装和启动linux
- 使用GRUB引导linux和winxp双系统
- 使用GRUB引导系统的一些方法
- Grub for Dos 引导我的Fedora8
- Ubuntu和windows双系统安装GRUB引导出现grub rescue救援模式,导致不能进入系统
- 初学者指南:GRUB-系统引导管理器
- fedora8使用小记之四:学习_系统引导过程及硬盘分区结构论述
- 如何在重装Windows后,使用Grub引导linux(转linuxfans)
- 系统存储过程sp_MSforeachtable的使用说明
- 使用windows 7 系统安装盘 DOS普通用户提权为管理员
- linux使用--9.grub各种引导的恢复
- Win10 SSD+HDD 安装ubuntu双系统,引导grub
- 如何使用grub硬盘安装fedora和ubuntu两个主流linux系统
- Ubuntu与Win7双系统内 grub引导的错误的解决