Just for the record, these lines:
find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst
will attempt to find the first occurrence of any among:
/menu.lst
/boot/grub/menu.lst
/grub/menu.lst
(only on volumes belonging to "hard disk like" devices).
Volumes will be scanned in a given order, starting from (hd0,0), then (hd0,1).... then (hd1,0) etc.
The "embedded menu" in grldr or in grub.exe can be edited alright (and booting might be faster).
If you prefer you can "install" or "hard code" the path to the menu.lst.
If you edit the "embedded menu" to something *like*:
default 0 timeout 0 title just boot configfile (hd0,0)/menu.lst
the actual booting time might be noticeably faster.
Editing the embedded menu.lst isn't particularly difficult.
You can extract from grub.exe the last bytes starting from "pxe detect" with a hex editor (to know how long exactly is the space "dedicated" to the menu), then create a new menu.lst, use the hex editor to merge the new menu.lst on a new file the same size as the one you extracted earlier.
In batch, this would be easily done using gsar and the tools from the dsfok toolkit, sometjhing *like*:
@ECHO OFF SETLOCAL ENABLEEXTENSIONS SET Source=grub.exe SET menu_offset= FOR /F "tokens=2 delims=:" %%A IN ('gsar -b -spxe:x20detect %Source%^|FIND /v "match"') DO SET /A menu_offset=%%A SET menu_offset IF EXIST embmenu.txt DEL embmenu.txt FOR /F "tokens=2 delims= " %%A IN ('dsfo %Source% %menu_offset% 0 embmenu.txt 2^>^&1') DO SET /A menu_size=%%A SET menu_size edit embmenu.txt ECHO DO YOU WANT TO REPLACE THE EMBEDDED MENU with embmenu.txt? SET Confirm=NO SET /P Confirm=Enter YES (CAPITAL LETTERS) to confirm: IF %Confirm%.==YES. GOTO :do_patch ECHO Nothing to do .... PAUSE GOTO :EOF :do_patch fsz embmenu.txt %menu_size% dsfi %Source% %menu_offset% 0 embmenu.txt PAUSE
should do nicely.
Please understand that once you have removed the leading "pxe detect" the batch won' t work anymore on the edited grub.exe.
@Steve6375
Possibly one of the things to ask Chenall would be to add a "header", something *like*:
embeddedmenulstbegin:
or maybe there is already somewhere in grldr and grub.exe (at a given offset) that represents a pointer to the actual beginning of the embedded menu.lst?
Wonko