Hi, this is my first post here so I apologize in case this is the wrong section.
I've been working for a while on a multi-recovery live DVD/USB and from the start I decided to use grub4dos. The final result allowed me to include tool such as Trinity Rescue Kit, Parted Magic, Kaspersky Rescue CD and other tools. A problem I faced from the start was that many distros use syslinux, even if it's not so easy to use if you plan to move files around.
My idea of setup, for many distros, is this:
- make a subdirectory
- put all the ISO contents in that subdirectory
- build a menu.lst file (or tweak the existing one to point to the correct subdirectory)
- Add an entry in the root menu.lst file
Step 3 is what takes most of the time if you are about to convert a syslinux file with, say, 20 entries. This is why I decided to write a Python script called syslinux2menulst. You can download it on Google Code:
http://code.google.c...slinux2menulst/
Here is the usage:
usage: syslinux2menulst.py [-h] FILE PATH DIRECTORY Convert a syslinux/isolinux file to a GRUB menu.lst. positional arguments: FILE Input file PATH Absolute path in the disk structure, e.g. /menu.lst DIRECTORY Output root directory (will be created if not present) optional arguments: -h, --help show this help message and exit
An example of execution, for RIPLinuX, would be:
syslinux2menulst.py syslinux.cfg /partedmagic/menu-pmagic.lst ./output
In this case the output would be something like:
WARNING: ignoring unknown entry ---- LABEL localboot MENU LABEL ^5. Local boot TEXT HELP Bypass the SYSLINUX loader, and use the boot loader on your hard disk. ENDTEXT localboot 0x80 ---- WARNING: ignoring unknown entry ---- LABEL reboot MENU LABEL ^6. Reboot TEXT HELP Restart the computer. ENDTEXT COM32 /boot/syslinux/reboot.c32 ---- Saved file ./output/partedmagic/menu-pmagic_0.lst Saved file ./output/partedmagic/menu-pmagic_1.lst Saved file ./output/partedmagic/menu-pmagic_2.lst Saved file ./output/partedmagic/menu-pmagic_3.lst Saved file ./output/partedmagic/menu-pmagic.lst
Some entries may need manual tweaking, but the rest (including the submenus) should work without much trouble. All the entries are tweaked so that they work after the files have been put in the partedmagic directory.
I will be glad to hear from you if you have any feedback or suggestion. Thank you.