|
yewuqiu 于 2016-1-4 21:35 编辑
无忧论坛有阴也有阳版主及红毛樱木提供的办法,很好的解决了问题,可以指定从任意一块硬盘启动,如下:
把1-5块硬盘编号,1、2、3、4、5号,然后再把空白的记事本文件分别命名为1、2、3、4、5,形成
1.txt 2.txt 3.txt 4.txt 5.txt共五个文件(这5个文件只是供GRUB4DOS定位硬盘,因此你可以随便用5个特征文件即可,最好是改名为1disk\2disk\3disk\4disk\5disk,即不带后缀),把这5个文件分别复制到1-5号硬盘的系统分区的根目录下:
1.txt——对应放在1号硬盘根目录下
2.txt——对应放在2号硬盘根目录下
3.txt——对应放在3号硬盘根目录下
4.txt——对应放在4号硬盘根目录下
5.txt——对应放在5号硬盘根目录下
然后再在menu.lst菜单上写上:
title 从最后一块本地硬盘启动Win7/Win8/Win10系统
rootnoverify (hd-1,0)
chainloader /bootmgr
紫色部分也可以写为:
title 从5号本地硬盘启动Win7/Win8/Win10系统
find --set-root /5.txt
chainloader /bootmgr
即紫色和蓝色2选1即可(选蓝色时记得根目录下放5.txt等特征文件)
title 从1号本地硬盘启动Win7/Win8/Win10系统
find --set-root /1.txt
chainloader /bootmgr
title 从2号本地硬盘启动Win7/Win8/Win10系统
find --set-root /2.txt
chainloader /bootmgr
title 从3号本地硬盘启动Win7/Win8/Win10系统
find --set-root /3.txt
chainloader /bootmgr
title 从4号本地硬盘启动Win7/Win8/Win10系统
find --set-root /4.txt
chainloader /bootmgr
我写好的菜单
# 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.
#
# It must be UTF-8 encoding for multi-lingual support. Font lines can be
# appended to the file. The font lines should be in the unifont.hex format.
color blue/green yellow/red white/magenta white/magenta
timeout 10
## menu border color
color border=0xEEFFEE
## set vbe mode
graphicsmode -1 640:800 480:600 24:32 || graphicsmode -1 -1 -1 24:32
font /CNfont.gz
## loading splashimage
splashimage /boot/grub/splashimage.xpm || splashimage /boot/grub/splashimage.bmp
default /default
## Menu AutoNumber
write 0x8274 0x2001
title 从SATA5(最后一块)本地硬盘启动Win7/Win8/Win10系统
rootnoverify (hd-1,0)
chainloader /bootmgr
title 从SATA1本地硬盘启动Win7/Win8/Win10系统
find --set-root /1disk
chainloader /bootmgr
title 从SATA2本地硬盘启动Win7/Win8/Win10系统
find --set-root /2disk
chainloader /bootmgr
title 从SATA3本地硬盘启动Win7/Win8/Win10系统
find --set-root /3disk
chainloader /bootmgr
title 从SATA4本地硬盘启动Win7/Win8/Win10系统
find --set-root /4disk
chainloader /bootmgr
title 微PE_X64
find --set-root --ignore-floppies --ignore-cd /WePE_64_V1.0.iso
map /WePE_64_V1.0.iso (0xff)
map --hook
chainloader (0xff)
title DiskGenius 4.7.2.153
map --mem /DiskGenius.ima (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title GRUB4DOS命令行
commandline
title reboot (重启)
reboot
title halt (关机)
halt
# In the end, font lines for unicode chars in unifont.hex format.
# It should include all unicode chars used in the above menu code.
# Surely normal ASCII chars are not necessary to be included here.
复制代码
注意要另存为UTF-8编码的文本文件
TF卡内文件等如下:
|
|