It is currently Tue Nov 25, 2014 4:15 pm

All times are UTC - 8 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Syslinux submenus
PostPosted: Wed Feb 18, 2009 2:58 pm 
Offline

Joined: Wed Feb 18, 2009 2:47 pm
Posts: 2
Location: Indiana
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:
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 18, 2009 4:06 pm 
Offline

Joined: Fri Jan 11, 2008 2:52 pm
Posts: 1278
It works for me (integrated in UBCD50b11).

Maybe your syslinux is to old.
See for the relevant part at: http://www.ultimatebootcd.com/forums/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/


Top
 Profile  
 
 Post subject: More Info
PostPosted: Thu Feb 19, 2009 8:51 am 
Offline

Joined: Wed Feb 18, 2009 2:47 pm
Posts: 2
Location: Indiana
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 19, 2009 9:14 am 
Offline

Joined: Fri Jan 11, 2008 2:52 pm
Posts: 1278
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:
LABEL GParted Live
MENU LABEL GParted Live (Default settings)

To:
Code:
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/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group