Syslinux submenus

Try looking for help here if you are having problems with the Ultimate Boot CD.

Moderators: Icecube, StopSpazzing

Locked
Message
Author
elispop122003
Posts: 2
Joined: Wed Feb 18, 2009 2:47 pm
Location: Indiana
Contact:

Syslinux submenus

#1 Post by elispop122003 » Wed Feb 18, 2009 2:58 pm

I have been working on getting a submenu working. For some reason I have not been able to get it to work. Here is my code, if anyone can help me it would be greatly appreciated.

Code: Select all

MENU BEGIN ^0. GParted
  LABEL GParted Live
    MENU LABEL GParted Live (Default settings)
    MENU INDENT 5
    kernel /live/vmlinuz1
    append initrd=/live/initrd1.img boot=live union=aufs noswap noprompt vga=791 ip=frommedia nolocales
    TEXT HELP
    * GParted live version: 0.4.1-2. Live version maintainer: Steven Shiau
    * Disclaimer: GParted live comes with ABSOLUTE NO WARRANTY
    ENDTEXT

  LABEL Live (To RAM)
    MENU LABEL GParted Live (To RAM. Boot media can be removed later)
    MENU INDENT 5
    kernel /live/vmlinuz1
    append initrd=/live/initrd1.img boot=live union=aufs noswap noprompt vga=791 toram ip=frommedia nolocales
    TEXT HELP
    All the programs will be copied to RAM, so you can
    remove boot media (CD or USB flash drive) later
    ENDTEXT

  LABEL Live w/o framebuffer
    MENU LABEL GParted Live (Safe graphic settings, vga=normal)
    MENU INDENT 5
    kernel /live/vmlinuz1
    append initrd=/live/initrd1.img boot=live union=aufs noswap noprompt ip=frommedia nolocales vga=normal
    TEXT HELP
    Disable console frame buffer support
    ENDTEXT

  LABEL Live failsafe mode
    MENU LABEL GParted Live (Failsafe mode)
    MENU INDENT 5
    kernel /live/vmlinuz1
    append initrd=/live/initrd1.img boot=live union=aufs noswap noprompt acpi=off irqpoll noapic noapm nodma nomce nolapic nosmp ip=frommedia              nolocales vga=normal
    TEXT HELP
    acpi=off irqpoll noapic noapm nodma nomce nolapic 
    nosmp vga=normal
    ENDTEXT 

  LABEL memtest
    # MENU HIDE
    MENU LABEL Memory test using Memtest86+
    MENU INDENT 5
    kernel /live/memtest
    TEXT HELP
    Run memory test using Memtest86+
    ENDTEXT
    
  LABEL local
    MENU HIDE
    # MENU LABEL Local operating system in harddrive (if available)
    # MENU INDENT 5
    # MENU PASSWD
    # 2 method to boot local device:
    # (1) For localboot 0, it is decided by boot order in BIOS, so uncomment the follow 1 line if you want this method:
    # localboot 0
    # (2) For chain.c32, you can assign the boot device.
    # Ref: extlinux.doc from syslinux
    # Syntax: APPEND [hd|fd]<number> [<partition>]
    # [<partition>] is optional.
    # Ex:
    # Second partition (2) on the first hard disk (hd0);
    # Linux would *typically* call this /dev/hda2 or /dev/sda2, then it's "APPEND hd0 2"
    #
    kernel chain.c32
    append hd0
    TEXT HELP
    Boot local OS from first hard disk if it's available
    ENDTEXT
    # Note! *.bin is specially purpose for syslinux, 
    # Do NOT use memtest.bin, use memtest instead of memtest.bin
LABEL Parent
MENU LABEL ^0. Return to Main Menu
MENU EXIT
MENU END

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#2 Post by Icecube » Wed Feb 18, 2009 4:06 pm

It works for me (integrated in UBCD50b11).

Maybe your syslinux is to old.
See for the relevant part at: viewtopic.php?t=912

Did you post your whole config file?
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

elispop122003
Posts: 2
Joined: Wed Feb 18, 2009 2:47 pm
Location: Indiana
Contact:

More Info

#3 Post by elispop122003 » Thu Feb 19, 2009 8:51 am

I think I need to add some more info about my issue. I am currently using UBCD4WIN v. 3.22. I have attempted to implement a sub-menu and I have also tried to just indent using MENU INDENT after the label. Both ways had the same effect. Here is an example of the menu:

1. item
2. item
3. item
4. gparted
1. submenu
2. submenu 2
3. submenu 3
0. exit

It fails to initiate the submenu. Also, selecting option 4 will instead run option 3.

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#4 Post by Icecube » Thu Feb 19, 2009 9:14 am

Note that this forum is for UBCD (for dos).

Post some screenshots and the whole config file.

LABEL statements can't have spaces in their name. I am not sure if the menusystem looks at it to or not.
Change:

Code: Select all

LABEL GParted Live
 MENU LABEL GParted Live (Default settings) 
To:

Code: Select all

LABEL GParted_Live
 MENU LABEL GParted Live (Default settings) 
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

Locked