由于win7系統啟動的引導方式于xp系統不同, 通過反復試驗于網上搜索的多種方法,總算找到了下述辦法:
使用 grldr + menu.lst 引導 linux系統和win7.
首選備份bcd(為此付出了多次重裝win7的慘痛代價...):
/createstore 创建一个新的空白启动配置数据文件。
bcdedit /createstore C:\Data\BCD 创建BCD启动配置数据文件储存到“C:\DATA\”文件夹。
/export 备份启动配置数据文件。
bcdedit /export "C:\Data\BCD Backup" 备份BCD启动配置文件到“C:\Data\”文件夹,并以“BCD Backup”命名。
/import 还原启动配置数据文件。
bcdedit /import "C:\Data\BCD Backup" 从“C:\Data\”文件夹恢复BCD启动配置文件。
然後拷貝准備好的 grldr 和 menu.lst 到C 盤根目錄下.
重啟電腦...見到了久違的menu.lst菜單...
注: 附上自己的menu.lst菜單樣本:
******************************************************************
default 17
timeout 3
title Zenwalk Linux
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda8
initrd /boot/initrd.splash
title Puppy Linux puppy431 copy
root (hd0,0)
kernel /puppy431/vmlinuz PSUBDIR=puppy431 pfix=noram
initrd /puppy431/initrd.gz
title Puppy Linux puppy431 ram
root (hd0,0)
kernel /puppy431/vmlinuz PSUBDIR=puppy431 pfix=ram
initrd /puppy431/initrd.gz
title Zenwalk install
root (hd0,7)
kernel /zenwalk/kernels/ata/bzImage load_ramdisk=1 prompt_ramdisk=0 rw root=/dev/null SLACK_KERNEL=ata vga=788
initrd /zenwalk/isolinux/initrd.img
title Puppy Linux puppy412ide copy
root (hd0,0)
kernel /puppy412ide/vmlinuz PMEDIA=idehd PSUBDIR=puppy412ide pfix=noram
initrd /puppy412ide/initrd.gz
title Puppy Linux puppy412ide ram
root (hd0,0)
kernel /puppy412ide/vmlinuz PMEDIA=idehd PSUBDIR=puppy412ide pfix=ram
initrd /puppy412ide/initrd.gz
title LXDE Puppy411 copy
root (hd0,7)
kernel /lxdepuppy411/vmlinuz PMEDIA=idehd PSUBDIR=lxdepuppy411 pfix=noram
initrd /lxdepuppy411/initrd.gz
title LXDE Puppy411 ram
root (hd0,6)
kernel /lxdepuppy411/vmlinuz PMEDIA=idehd PSUBDIR=lxdepuppy411 pfix=ram
initrd /lxdepuppy411/initrd.gz
title Slitaz 2.0 RAM
root (hd0,7)
#kernel /Slitaz/boot/bzImage root=/dev/null vga=normal autologin
kernel /Slitaz/boot/bzImage root=/dev/nul
initrd /Slitaz/boot/rootfs.gz
title SliTaz GNU/Linux (IDE) (Kernel vmlinuz-2.6.25.5-slitaz)
root (hd0,8)
kernel /boot/vmlinuz-2.6.25.5-slitaz root=/dev/hda9
title Slax Copy
root (hd0,0)
# kernel /boot/vmlinuz root=/dev/ram0 rw max_loop=255 init=linuxrc load_ramdisk=1 ramdisk_size=6666 slax changes=/mnt/hda2/slax/copy/xfs.dat vga=normal autoexec=startx
# kernel /boot/vmlinuz root=/dev/ram0 rw copy2ram max_loop=255 ramdisk_size=6666 autoexec=xconf;telinit~4 changes=/mnt/hda2/slax/copy/xfs.dat
kernel /boot/vmlinuz root=/dev/ram0 rw max_loop=255 ramdisk_size=6666 autoexec=xconf;telinit~4 changes=/mnt/hda1/slax/copy/65M-1-xfs.dat
initrd /boot/initrd.gz
title Slax RAM
root (hd0,0)
# kernel /boot/vmlinuz root=/dev/ram0 rw max_loop=255 init=linuxrc load_ramdisk=1 ramdisk_size=6666 slax vga=normal autoexec=startx
kernel /boot/vmlinuz root=/dev/ram0 rw max_loop=255 ramdisk_size=6666 autoexec=xconf;telinit~4
initrd /boot/initrd.gz
title CDlinux
root (hd0,0)
# kernel /IDECDlinux/CDlinux/bzImage quiet CDL_LANG=zh_CN.UTF-8 CDL_DEV=/dev/sda1
kernel /CDlinux/bzImage quiet CDL_LANG=zh_CN.UTF-8
initrd /CDlinux/initrd
title MandrivaLINUX
root (hd0,1)
kernel /Mandriva/boot/vmlinuz root=/dev/nul vga=788
initrd /Mandriva/boot/cdrom/initrd.gz
title WinPE-net
root (hd0,0)
kernel /ldntldr
initrd /setupldr.bin
#initrd /ntldr
title FreeDOS
root (hd0,0)
kernel /memdisk
initrd /balder.img
title WINDOWS NT/2003/XP
map (hd0) (hd0)
map (hd0) (hd1)
root (hd0,0)
chainloader (hd0,0)+1
boot
rootnoverify (hd0,0)
chainloader +1
clear
title VISTA
find --set-root /bootmgr
chainloader /bootmgr
clear
title setup otehr IDE
fallback 6
root (hd0,1)
chainloader +1
title setup cdrom
cdrom --init
map --hook
chainloader (cd0)
boot
title reoot
reboot
clear
title halt
halt
******************************************************************
使用 grldr + menu.lst 引導 linux系統和win7.
首選備份bcd(為此付出了多次重裝win7的慘痛代價...):
/createstore 创建一个新的空白启动配置数据文件。
bcdedit /createstore C:\Data\BCD 创建BCD启动配置数据文件储存到“C:\DATA\”文件夹。
/export 备份启动配置数据文件。
bcdedit /export "C:\Data\BCD Backup" 备份BCD启动配置文件到“C:\Data\”文件夹,并以“BCD Backup”命名。
/import 还原启动配置数据文件。
bcdedit /import "C:\Data\BCD Backup" 从“C:\Data\”文件夹恢复BCD启动配置文件。
然後拷貝准備好的 grldr 和 menu.lst 到C 盤根目錄下.
重啟電腦...見到了久違的menu.lst菜單...
注: 附上自己的menu.lst菜單樣本:
******************************************************************
default 17
timeout 3
title Zenwalk Linux
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda8
initrd /boot/initrd.splash
title Puppy Linux puppy431 copy
root (hd0,0)
kernel /puppy431/vmlinuz PSUBDIR=puppy431 pfix=noram
initrd /puppy431/initrd.gz
title Puppy Linux puppy431 ram
root (hd0,0)
kernel /puppy431/vmlinuz PSUBDIR=puppy431 pfix=ram
initrd /puppy431/initrd.gz
title Zenwalk install
root (hd0,7)
kernel /zenwalk/kernels/ata/bzImage load_ramdisk=1 prompt_ramdisk=0 rw root=/dev/null SLACK_KERNEL=ata vga=788
initrd /zenwalk/isolinux/initrd.img
title Puppy Linux puppy412ide copy
root (hd0,0)
kernel /puppy412ide/vmlinuz PMEDIA=idehd PSUBDIR=puppy412ide pfix=noram
initrd /puppy412ide/initrd.gz
title Puppy Linux puppy412ide ram
root (hd0,0)
kernel /puppy412ide/vmlinuz PMEDIA=idehd PSUBDIR=puppy412ide pfix=ram
initrd /puppy412ide/initrd.gz
title LXDE Puppy411 copy
root (hd0,7)
kernel /lxdepuppy411/vmlinuz PMEDIA=idehd PSUBDIR=lxdepuppy411 pfix=noram
initrd /lxdepuppy411/initrd.gz
title LXDE Puppy411 ram
root (hd0,6)
kernel /lxdepuppy411/vmlinuz PMEDIA=idehd PSUBDIR=lxdepuppy411 pfix=ram
initrd /lxdepuppy411/initrd.gz
title Slitaz 2.0 RAM
root (hd0,7)
#kernel /Slitaz/boot/bzImage root=/dev/null vga=normal autologin
kernel /Slitaz/boot/bzImage root=/dev/nul
initrd /Slitaz/boot/rootfs.gz
title SliTaz GNU/Linux (IDE) (Kernel vmlinuz-2.6.25.5-slitaz)
root (hd0,8)
kernel /boot/vmlinuz-2.6.25.5-slitaz root=/dev/hda9
title Slax Copy
root (hd0,0)
# kernel /boot/vmlinuz root=/dev/ram0 rw max_loop=255 init=linuxrc load_ramdisk=1 ramdisk_size=6666 slax changes=/mnt/hda2/slax/copy/xfs.dat vga=normal autoexec=startx
# kernel /boot/vmlinuz root=/dev/ram0 rw copy2ram max_loop=255 ramdisk_size=6666 autoexec=xconf;telinit~4 changes=/mnt/hda2/slax/copy/xfs.dat
kernel /boot/vmlinuz root=/dev/ram0 rw max_loop=255 ramdisk_size=6666 autoexec=xconf;telinit~4 changes=/mnt/hda1/slax/copy/65M-1-xfs.dat
initrd /boot/initrd.gz
title Slax RAM
root (hd0,0)
# kernel /boot/vmlinuz root=/dev/ram0 rw max_loop=255 init=linuxrc load_ramdisk=1 ramdisk_size=6666 slax vga=normal autoexec=startx
kernel /boot/vmlinuz root=/dev/ram0 rw max_loop=255 ramdisk_size=6666 autoexec=xconf;telinit~4
initrd /boot/initrd.gz
title CDlinux
root (hd0,0)
# kernel /IDECDlinux/CDlinux/bzImage quiet CDL_LANG=zh_CN.UTF-8 CDL_DEV=/dev/sda1
kernel /CDlinux/bzImage quiet CDL_LANG=zh_CN.UTF-8
initrd /CDlinux/initrd
title MandrivaLINUX
root (hd0,1)
kernel /Mandriva/boot/vmlinuz root=/dev/nul vga=788
initrd /Mandriva/boot/cdrom/initrd.gz
title WinPE-net
root (hd0,0)
kernel /ldntldr
initrd /setupldr.bin
#initrd /ntldr
title FreeDOS
root (hd0,0)
kernel /memdisk
initrd /balder.img
title WINDOWS NT/2003/XP
map (hd0) (hd0)
map (hd0) (hd1)
root (hd0,0)
chainloader (hd0,0)+1
boot
rootnoverify (hd0,0)
chainloader +1
clear
title VISTA
find --set-root /bootmgr
chainloader /bootmgr
clear
title setup otehr IDE
fallback 6
root (hd0,1)
chainloader +1
title setup cdrom
cdrom --init
map --hook
chainloader (cd0)
boot
title reoot
reboot
clear
title halt
halt
******************************************************************
- 28792 次点击
(附繁体翻译)Pup2Usb好像也可以......
一样啊!
Best wishes.
menu.lst文件
title Linux
root (hd0,5)
kernel (hd0,5)/boot/vmlinuz boot=casper iso-scan/filename=/ubuntu-9.10-desktop-amd64.iso ro quiet splash locale=zh_CN.UTF-8
initrd (hd0,5)/boot/initrd.lz
放在以下位置
E:\boot\grub
在c盘建个boot.ini
内容是
[boot loader]
timeout=1
default=c:\g2ldr.mbr
[operating systems]
C:\g2ldr.mbr="Linux"
然后在E:\boot\grub (可以是任意盘)建个menu.lst文件 了、内容用楼主的就可以
title windows7
root (hd0,0)
chainloader /bootmgr
boot
title linux
root (hd0,1)
kernel ....
initrd ...
boot
title windowsxp
root (0,1)
chainloader /ntldr
boot
发表新评论