Question : PXE Booting to Ghost with Multiple NIC Drivers

Trying to PXE Boot Into Ghost to Image machines. I have multiple computers with different Network Cards. I am able to get to the menu submenus just fine. For example I would like to image a Dell GX-260.
I select Dell GX-260 from the menu but it loads the Dell GX-240 NIC drivers (EL90X) even though the config.sys file says to go to the (E1000). But if you edit the Autoexec.bat file and put the E1000 driver first in the list then it will load that driver. Seems to only load the first driver for all sub menu item models of computers. Thanks in advance.

Autoexec.bat file--------------------------------------------------------------

@echo off
set prompt=$p$g
SET skip=NO

if "%config%" == "DSB_GX260" GOTO _DSB_GX240
if "%config%" == "DSB_GX260" GOTO _DSB_GX260
if "%config%" == "DSB_GX280" GOTO _DSB_GX280
if "%config%" == "DSB_GX260" GOTO _DSB_GX620
if "%config%" == "DSB_GX745" GOTO _DSB_GX745
if "%config%" == "DSB_NM_B" GOTO _DSB_NM_B
if "%config%" == "DSB_NM_W" GOTO _DSB_NM_W
if "%config%" == "DSB_LENOVO_R52" GOTO _DSB_LENOVO_R52
if "%config%" == "DSB_DC7600" GOTO _DSB_DC7600
if "%config%" == "GHOST_B57" GOTO _GHOST_B57
if "%config%" == "GHOST_E100B" GOTO _GHOST_E100B
if "%config%" == "GHOST_EL90X" GOTO _GHOST_EL90X
if "%config%" == "GHOST_E1000" GOTO _GHOST_E1000
if "%config%" == "GHOST_YUKND" GOTO _GHOST_YUKND
if "%config%" == "GHOST_RTSND" GOTO _GHOST_RTSND

:_DSB_GX240
SET imgfile=G:\Dell\GX240\XP-BASE.GHO
SET nic=EL90X
SET ghostimage=Dell GX240 DSB
GOTO _next

:_DSB_GX260
SET imgfile=G:\Dell\GX260\XP-BASE.GHO
SET nic=E1000
SET ghostimage=Dell GX260 DSB
GOTO _next

:_DSB_GX280
SET imgfile=G:\Dell\GX280\XP-BASE.GHO
SET nic=B57
SET ghostimage=Dell GX280 DSB
GOTO _next

:_DSB_GX745
SET imgfile=G:\Dell\GX745\XP-BASE.GHO
SET nic=B57
SET ghostimage=Dell GX745 DSB
GOTO _next

:_DSB_NM_B
SET imgfile=G:\NM\NM-B\XP-BASE.GHO
SET nic=E1000
SET ghostimage=Northern Micro Black
GOTO _next

:_DSB_NM_W
SET imgfile=G:\NM\NM-W\XP-BASE.GHO
SET nic=E1000
SET ghostimage=Northern Micro White
GOTO _next


:_DSB_LENOVO_R52
SET imgfile=G:\LENOVO\R52\XP-BASE.GHO
SET nic=B57
SET ghostimage=IBM Lenovo R52 DSB
GOTO _next

:_DSB_DC7600
SET imgfile=G:\HP\dc7600\XP-BASE.GHO
SET nic=B57
SET ghostimage=HP dc7600 DSB
GOTO _next


:_GHOST_E1000
SET skip=YES
SET nic=E1000
GOTO _next

:_GHOST_B57
SET skip=YES
SET nic=B57
GOTO _next

:_GHOST_E100B
SET skip=YES
SET nic=E100B
GOTO _next

:_GHOST_EL90X
SET skip=YES
SET nic=EL90X
GOTO _next


:_GHOST_YUKND
SET skip=YES
SET nic=YUKND
GOTO _next

:_GHOST_RTSND
SET skip=YES
SET nic=RTSND
GOTO _next


:_next
set srcdrv=
\bin\bootdrv.com
if errorlevel 0 set srcdrv=a:
if errorlevel 1 set srcdrv=b:
if errorlevel 2 set srcdrv=c:
if errorlevel 3 set srcdrv=d:
if errorlevel 4 set srcdrv=e:
if errorlevel 5 set srcdrv=f:
if errorlevel 6 set srcdrv=g:
if errorlevel 7 set srcdrv=h:
if errorlevel 8 set srcdrv=i:
if errorlevel 9 set srcdrv=j:
if "%srcdrv%" == "" set srcdrv=a:

:_goram
set ramdrv=q:
path=%srcdrv%\bin;%srcdrv%\

rem Setup the ramdisk
if exist %ramdrv%\bin\extract.exe goto _skipcp
rem load a 8MB ramdisk
echo AUTOEXEC: Setting up Ramdisk at drive %ramdrv%
xmsdsk 16384 %ramdrv% /y /t
if errorlevel 1 goto _ramok
rem xmsdsk returns errorlevel 0 for error
goto _abort
:_ramok
md %ramdrv%\bin
md %ramdrv%\tmp
set temp=%ramdrv%\tmp
set tmp=%ramdrv%\tmp
if exist %ramdrv%\bin\extract.exe goto _skipcp
echo AUTOEXEC: Copying some files to ramdisk
copy %srcdrv%\command.com %ramdrv%\bin
set comspec=%ramdrv%\bin\command.com
copy %srcdrv%\bin\extract.exe %ramdrv%\bin
:_skipcp
set path=%ramdrv%\bin;%ramdrv%\
if not exist %srcdrv%\bin\smartdrv.cab goto _nosdrv2
echo AUTOEXEC: Loading high smartdrv.exe from smartdrv.cab
extract /y /l %ramdrv%\ /e %srcdrv%\bin\smartdrv.cab
if errorlevel 1 goto _unpackerr
if exist %ramdrv%\bin\smartdrv.exe lh %ramdrv%\bin\smartdrv.exe
if exist %ramdrv%\smartdrv.exe lh %ramdrv%\smartdrv.exe

:_nosdrv2
extract /y /l %ramdrv%\ /e %srcdrv%\bin\modboot.cab > %tmp%\extract.out
if errorlevel 1 goto _unpackerr
if exist %tmp%\extract.out del %tmp%\extract.out
if exist %ramdrv%\bin\modboot.bat goto _modboot
echo.
echo AUTOEXEC: Missing file "%ramdrv%\bin\modboot.bat"
goto _abort
:_unpackerr
if exist %tmp%\extract.out type %tmp%\extract.out
if exist %tmp%\extract.out del %tmp%\extract.out
echo.
echo AUTOEXEC: Error while unpacking "%srcdrv%\bin\modboot.cab"
goto _abort
:_modboot
%ramdrv%
cd \
%ramdrv%\bin\modboot.bat
:_abort
echo AUTOEXEC: Aborted...
echo.
pause
rem flow into "_end"
:_end

Config.sys file-----------------------------------------------------------------------

[menu]

Submenu=NM, Image Northern Micro PC's
submenu=HP, Image HP PC's
Submenu=Dell, Image Dell PC's
submenu=Laptops, Image Laptops
submenu=GHOST, Run Ghost only

[NM]
menuitem=DSB_NM_B, Install XP Baseline load - Black NM
menuitem=DSB_NM_W, Install XP Baseline load - White NM

[HP]
menuitem=DSB_DC7600, Install XP Baseline load - HP dc7600

[Dell]
menuitem=DSB_GX240, Install XP Baseline load - Dell GX240
menuitem=DSB_GX260, Install XP Baseline load - Dell GX260
menuitem=DSB_GX280, Install XP Baseline load - Dell GX280
menuitem=DSB_GX620, Install XP Baseline load - Dell GX620
menuitem=DSB_GX745, Install XP Baseline load - Dell GX745



[Laptops]
submenu=Lenovo, Image Lenovo laptop
submenu=Toshiba, Run Ghost on Tecras
submenu=TOUGH, Run Ghost on Tough Book

[Toshiba]
menuitem=GHOST_E100B, Launch Ghost - Tecra S1
menuitem=GHOST_YUKND, Launch Ghost - Tecra S3 S4

[TOUGH]
menuitem=GHOST_RTSND, Launch Ghost - Panasonic Toughbook

[Lenovo]
menuitem=DSB_LENOVO_R52, Install standard Baseline load - IBM Lenovo R52

[GHOST]
menuitem=GHOST_B57, Launch Ghost - IBM Lenovo, HP dc7600, Dell GX280
menuitem=GHOST_E1000, Launch Ghost - Dell GX260
menuitem=GHOST_EL90X, Launch Ghost - Dell GX240
menuitem=GHOST_E100B, Launch Ghost - Northern Micro

[DSB_NM_B]
[DSB_NM_W]
[DSB_GX240]
[DSB_GX260]
[DSB_GX280]
[DSB_GX620]
[DSB_GX745]
[DSB_LENOVO_R52]
[DSB_DC7600]
[GHOST_B57]
[GHOST_E1000]
[GHOST_EL90X]
[GHOST_E100B]
[GHOST_YUKND]
[GHOST_RTSND]


[COMMON]
switches=/f /n
break=off
dos=high,umb
files=50
buffers=20
lastdrive=z
device=\bin\himem.sys /testmem:off
device=\bin\emm386.exe /v h=128 noems
shell=\command.com /e:2048 /p
devicehigh=\bin\ifshlp.sys

Answer : PXE Booting to Ghost with Multiple NIC Drivers

The only thing I can think of is that maybe the Config name strings are too long in the COnfig and autoexex options.

Try shortening them.

I hope this helps !
Random Solutions  
 
programming4us programming4us