Perhaps you want to run both grub4dos (menu.lst) and syslinux (syslinux.cfg) menus from the same bootable USB drive?
Perhaps you want to boot to a linux OS via syslinux (or isolinux) but load a grub4dos menu from the menu?
Once syslinux runs, it will look for a syslinux.cfg file (which is the menu file). If your payload (e.g. linux OS) does not have one, then look for a isolinux.cfg file and copy and rename it to syslinux.cfg.
See Syslinux wiki here.
You can easily load syslinux from a grub4dos menu using rmprepusb as follows:
Method 1This method simply installs grub4dos to the MBR (master boot record) and syslinux to the PBR (partition boot record).
1. Format a USB drive using RMPrepUSB as FAT32 and Boot as HDD (use Win7/bootmgr boot option though it does not really matter which one you use)
2. Use the Install Syslinux button in RMPrepUSB to install syslinux (if you want to install an earlier version then simply copy the appropriate syslinux.exe from the Syslinux folder in the RMPrepUSB folder (press F3) to the RMPrepUSB folder and overwrite the syslinux.exe that is already there)
3. Now install grub4dos to the Master Boot Record by clicking on the RMPrepUSB Install grub4dos button and say YES when prompted. Then press ENTER to copy across the grldr file when prompted.
4. Finally add an entry to your grub4dos menu.lst file (just press F4 in RMPrepUSB to load it into Notepad):
Method 2An alternative is to chainload from a syslinux/isolinux bin file as follows:
1. Format a USB drive using RMPrepUSB as FAT32 and Boot as HDD (use Win7/bootmgr boot option, although it does not really matter which one you use).
2. In RMPrepUSB press F3 to open Explorer, hold down the SHIFT key and right-click on any folder (e.g. the LANG folder) and select 'Open command windows here'. When a command prompt appears, type:
where X: is the drive letter of your target USB drive. This creates the boot file syslinux.bin onto drive X: which contains the syslinux boot code. It also creates the bootfile ldlinux.sys on drive X: (the file attributes are set to Hidden, ReadOnly and System so may not be visible in Windows Explorer).
You will need to add a \syslinux.cfg file and any extra files required, such as vesamenu.c32 and any other payload files required by your cfg menu.
If you already have an isolinux.cfg file, simply rename it to syslinux.cfg.
If you want the default syslinux.cfg file to be in a different folder other than the root of the USB drive, add a -d parameter, e.g. to use \syslinuxzboot\syslinux.cfg use the command:
(if you want to install an earlier version like version 3 - e.g. if you get 'not a COM32R image' error when using syslinux version 4) then simply use the cd command to change to the appropriate version which is located in the RMPrepUSB\Syslinux folder structure).
Note: If you already have a syslinux.bin or isolinux.bin file present in your payload OS, then you may not need to create the syslinux.bin file.
3. Now install grub4dos to the Master Boot Record by clicking on the RMPrepUSB Install grub4dos button and say YES when prompted. Then press ENTER to copy across the grldr file when prompted.
4. Finally add an entry to your grub4dos menu.lst file (just press F4 in RMPrepUSB to load menu.lst in Notepad):
Note: If you boot to syslinux.bin and get an error message about 'no UI or DEFAULT', it means either it cannot find the syslinux.cfg file or the syslinux.cfg file does not contain a 'default' statement.
Make sure that a syslinux.cfg file is present. If you have an isolinux.cfg file, then simply rename it to syslinux.cfg.
You can use the menu below to get back to grub4dos (see 'Run grub4dos from Syslinux').
Start isolinux from grub4dosIf you have some linux files on your CD and it has an isolinux folder, then to run syslinux from a grub4dos menu, try
If you see the error below...
with a USB drive, try using syslinux.bin and Method 2 above. Run grub4dos from SyslinuxIf you wish to boot to syslinux and then from the syslinux.cfg menu you want to run grub4dos, simply use RMPrepUSB to install syslinux and use the following syslinux menu entry in your syslinux.cfg file.
You also need to make sure that you copy over the grub.exe file from the grub4dos (featured) download to the root of the USB drive.
You can also specify the menu file using an additional line of
or even specify grub4dos commands, for example
Or instead, you can try one of these (and copy over the grldr file):
To boot to Windows Vista/7/8/WinPE v2,3,4 etc. which is located on a 2nd partition of the boot drive, try this (no menu.lst is needed) default Win8ToGo DOS based imagesIf you are loading one ISO in grub4dos and then chaining to syslinux which loads another 2nd ISO and then find that the DOS payload does not see the first grub4dos ISO ("no CD found!"), then this is probably due to mixing grub4dos map commands with syslinux memdisk. In this case try changing your grub4dos menu so that it uses memdisk to load an ISO file rather than a map command - e.g. title UBCD\n try
You will need to add the file memdisk to your boot device. Convert a syslinux.cfg file to a menu.lst fileThis is taken from a post by Wonko the Sane (aka jaclaz)
Example syslinux/isolinux entry
When converted to grub4dos we get:
label becomes title
The initrd command must be used to specify the initial ram filesystem loader file. kernel remains kernel followed by the path to the kernel file There is no direct equivalent to the append command in grub4dos, because grub4dos it parses ANYTHING after the kernel file, as parameters to be passed to the Linux kernel (same thing append does) but you need to remove the initrd parameter from the kernel parameter list. After a grub4dos command there should be a space (and NOT an = sign, though it's parser allows it). A file or device in grub4dos is always a "qualified" path, when you write /images/pmagic/bzImage you are actually writing ()/images/pmagic/bzImage or in "pseudocode" <current root>/images/pmagic/bzImage. Say that your current root is (pd), then by writing /images/pmagic/bzImage you are actually writing (pd)/images/pmagic/bzImage and of course if you omit the leading slash what you get makes NO sense (pd)images/pmagic/bzImage
Assumes chain.c32 is in the root...Some versions of MS-DOS may not work using this command. It is always better to use a MS-DOS image file and boot from that if possible, or use a PBR boot sector (xxx.bss) or try using grub4dos... LABEL dos via memdisk
Note: You can create a .BSS file using the RMPrepUSB Drive->File function. Ensure that the drive boots correctly (to IO.SYS or NTLDR or KERNEL.SYS or whatever) and check that the Partition Boot Record (PBR) is correct by using the Drive Info button and entering P1 for the first sector of the partition - it should have the name of the boot file in it (usually near the end - e.g. IO.SYS). To make a .BSS file, use the Drive->File button and then choose a name for the file (e.g. DOS.BSS), start=P1, length=1SEC, FIle start byte=0.
To load grub4dos from grub try
set opt='chainloader (hd0,1)+1; boot' See here for details.
|
