grub4dos引导Win7和linux双系统

1、下载win7 iso;

2、下载grub4dos;

3、使用ultraiso制作U盘启动盘;

4、将grub4dos下的如下文件拷贝至C盘

grldr, grldr.mbr, menu.lst, grub.exe?

 

新建boot.ini

[Boot Loader]
Timeout=5
Default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[Operating Systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Win 7" /noexecute=optin /fastdetect
c:\grldr.mbr="GRUB4DOS"

特别注意:

这里的关键点是一定要有那对引号,这和xp 不同,xp 下可以写成
c:\grldr.mbr=GRUB4DOS

而win7 一定要写成
c:\grldr.mbr="GRUB4DOS"

 

附件menu.lst

# This is a sample menu.lst file. You should make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install GRLDR boot strap code to MBR with the bootlace.com
# utility under DOS/Win9x or Linux.

color blue/green yellow/red white/magenta white/magenta
timeout 30
default /default

title find and load NTLDR of Windows NT/2K/XP
fallback 1
find --set-root /ntldr
chainloader /ntldr
savedefault --wait=2

title find and load CMLDR, the Recovery Console of Windows NT/2K/XP
fallback 2
find --set-root /cmldr
chainloader /cmldr
#####################################################################
# write string "cmdcons" to memory 0000:7C03 in 2 steps:
#####################################################################
# step 1. Write 4 chars "cmdc" at 0000:7C03
write 0x7C03 0x63646D63
# step 2. Write 3 chars "ons" and an ending null at 0000:7C07
write 0x7C07 0x00736E6F
savedefault --wait=2

title find and load IO.SYS of Windows 9x/Me
fallback 3
find --set-root /io.sys
chainloader /io.sys
savedefault --wait=2

title find and boot Mandriva with menu.lst already installed
fallback 4
find --set-root /etc/mandriva-release
savedefault --wait=2
configfile /boot/grub/menu.lst

title find and boot Linux with menu.lst already installed
fallback 5
find --set-root /sbin/init
savedefault --wait=2
configfile /boot/grub/menu.lst

title commandline
savedefault --wait=2
commandline

title floppy (fd0)
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2

title back to dos
savedefault --wait=2
quit

title reboot
savedefault --wait=2
reboot

title halt
savedefault --wait=2
halt

title memdrive duplicated from floppy image file (hd0,0)/sbm.bin
map --mem (hd0,0)/sbm.bin (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
savedefault --wait=2

title memdrive based on win98 partition (hd0,6)
map --mem (hd0,6)+1 (hd0)
# map --mem (hd0,0)/win98.gz (hd0)
map --hook
chainloader (hd0)+1
rootnoverify (hd0)
savedefault --wait=2

#title Install Fedora 10
#kernel (hd0,0)/vmlinuz
#initrd (hd0,0)/initrd.img

title Install Fedora 12 DVD
root (hd0,0)
kernel /vmlinuz
initrd /initrd.img

title Install Gentoo(text)
root (hd0,0)
kernel /gentoo root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot=/dev/sdb5
initrd /gentoo.igz

title Install Gentoo(Graph)
root (hd0,0)
kernel /gentoo root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot=/dev/sdb5
initrd /gentoo.igz vga=791 splash=silent,theme:livecd-2007.0 console=tty1 quiet

 

你可能感兴趣的:(grub4dos引导Win7和linux双系统)