| 
 | 
5#
 
 
 楼主 |
发表于 2011-11-3 23:10:38
|
只看该作者
 
 
 
老大。我的意思是想怎么在img启动前就加载了eltorito.sys驱动。而不是在img里驱动它!config.sys是在IMG里的! 
因为grub4dos里运行的img是可写入的。好象是先运行了memdisk创建一个软盘一样的效果!从而导致了eltorito.sys以为是IMG在驱动它,所以认为这种引导不是bootdevices。 
在易启动里如果不用memdisk的话在我这试的全部机子都可以驱动得了。可会出现 
 
 
因为现在有的笔记本硬盘第一个分区会是隐藏的。我就想在IMG里加入判断活动分区的批处理 
@echo off 
dpit 1 /find:all /noext /ghost /y>A:\dpt_gho.txt 
type A:\dpt_gho.txt|find /i "yes">A:\dpt_act.txt 
if errorlevel 1  goto gho_1 
if errorlevel 0  goto gho_2 
goto ext 
:gho_1 
del *.txt 
dpit 2 /find:all /noext /ghost /y>A:\dpt_gho.txt 
type A:\dpt_gho.txt|find /i "yes">A:\dpt_act.txt 
if errorlevel 1  goto err 
if errorlevel 0  goto gho_2 
goto ext 
:gho_2 
strings act=read A:\dpt_act.txt,1 
strings sys=left %act%,3 
strings cp=left %sys%,1 
goto ext 
:err 
call err.bat |   
 
 
 
 |