Syslinux common menu commands

Source: Internet
Author: User
Syslinux common menu command PROMPT0TIMEOUT100 menu stay time, timing unit: 1/10 seconds (mandatory) defaultvesamenu.c32menu single window menubackgroundbsck.png running window background image (640x480) (required) FONTzh. psf... commonly used syslinux menu command PROMPT 0 TIMEOUT 100 menu stay time, the unit of time is 1/10 seconds (required) DEFAULT vesamenu. c32 MENU window menu background bsck.png running window BACKGROUND image (640x480) (required) FONT zh. psf font menu width 80 MENU bar width menu margin 16 sub-MENU horizontal position, the larger the number, the greater the shift to the right menu helpmsgrow 19 help text vertical position menu rows 16 MENU number this value is less than HELPMSGROW TABM Sgrow cmdlinerow timeoutrow, otherwise, the MENU bar cannot completely display the height of menu tabmsgrow 20 [TAB] MENU bar linerow 21 command line height menu timeoutrow 22 countdown height menu hshift 1 box to the right move menu vshift 1 box down # MENU RESOLUTION 800 600 specify the background image size menu color border 30; 44 #00000000 #00000000 none menu border transparent menu color title 1; 36; 44 # FFFFFFFF #00000000 none top title text color where # FFFFFFFF is the foreground color, the last six digits are the white hexadecimal code FFFFFF #00000000 is the background color, transparent menu color sel 30; 37 # FF00FF00 #00000000 none selected sub-menu color green menu color unsel 37; 44 # FFFFFFFF #00000000 none unselected sub-menu color white menu color help 37; 40 # FFFFFFFF #00000000 none menu comment text color white menu color sans line 37; 40 # FFFF0000 #00000000 none TAB command line color red menu color msg07 37; 40 # FFFFFF00 #00000000 none F1 display color yellow menu color timeout 37; 40 # FFFF0000 #00000000 none remaining time seconds color red menu color timeout_msg 37; 40 # FFFFFF00 #00000000 none remaining time font color yellow menu color Hotkey 1; 37; 44 # ffffff00 #00000000 none shortcut key color yellow menu color hotsel 1; 7; 37; 40 # FF00FF00 #00000000 none selected shortcut key color green menu autoboot # set countdown menu tabmsg Press [TAB] edit option set TAB prompt menu title computer maintenance tool disk set top title label hd0 menu label [^ 1] start the first partition of the hard disk ^ define the shortcut key... 1 is shortcut menu indent 2 # INDENT to the right 2 kernel chain. c32 hd0, 1 menu default Start menu label pe menu label [^ 2] start windows pe System menu indent 2 kernel/boot/bin/H3_LNXXP.BIN TEXT HELP Zero-volume PE 831 grldr sets the help prompt. The text position is the same as that shown in NANOPE_V2008 pe. bin endtext label ghost menu label [^ 3] run GHOST backup to restore menu indent 2 kernel/boot/syslinux/memdisk append initrd =/boot/img/ghostc. img LABEL DOS1 menu label [^ 4] enhanced menu indent 2 kernel/boot/syslinux/memdisk append initrd =/boot/img/maxdos. img LABEL DOS2 menu label [^ 5] in the DOS era rookie toolkit menu indent 2 kernel/boot/syslinux/memdisk c = 147 h = 5 s = 36 Floppy append initrd =/boot/img/DTS834.IMA LABEL grldr menu label [^ 6] start grubdos menu indent 2 kernel/boot/bin/ldntldr append initrd =/boot/bin/grldr LABEL slax menu label [^ 7] start SLAX6.1.2 menu indent 2 KERNEL/boot/linux/slax/vmlinuz APPEND initrd =/boot/linux/slax/initrd.gz ramdisk_size = 6666 root =/dev/ ram0 rw autoexec = xconf; telinit ~ 4 locale = CHS.UTF-8 LABEL cdlinux menu label [^ 8] start CDlinux 0.9.5 menu indent 2 kernel/boot/linux/CDlinux/bzImage append initrd =/boot/linux/CDlinux/initrd quiet CDL_LANG = zh_CN.UTF-8 CDL_AMOUNT = yes LABEL linux menu label [^ 9] install LINUX system menu indent 2 kernel/boot/linux/m/vmlinuz append initrd =/boot/linux/m/initrd. img LABEL bz31 menu label [^ G] start G4L backup to restore linux menu indent 2 KERNEL/boot/linux/g4l/bz31 APPEND initrd =/boot/linux/g4l/ramdisk.gz ramdisk_size = 65536 root =/dev/ram0 LABEL geexbox menu label [^ B] start GEEXBOX1.2.4 MENU INDENT 2 CONFIG/geexbox/boot/isolinux. cfg LABEL reboot menu label [^ R] restart menu indent 2 kernel/boot/syslinux/reboot. c32 F1 syslinux. cfg # FF0000FF sets the F1 key to display syslinuc. cfg # FF0000FF: Blue F2 pe.txt # FF0000FF F4 img.txt # FF0000FF F9 linux.txt # FF0000FF"" "◆ Menu disable (Only valid after a LABEL statement.) Makes the entry unselectable. it is Only used after the LABEL statement. this MENU item cannot be selected (that is, it can be viewed and cannot be used ). ◆ MENU SEPARATORInsert an empty line in the menu. insert a blank line into the MENU ◆ menu indent count (Only valid after a LABEL statement .) will add "count" spaces in front of the displayed menu entry. valid only after the LABEL statement. With this command, you can add a conut space before the menu items when displaying them. ◆ Menu default (Only valid after a LABEL statement .) indicates that this entry shocould be the default for this is only valid after the LABLE statement. specify the default menu item ◆ TEXT HELPHelp text ...... which can span multiple linesENDTEXT (Only valid after a LABEL statement .) specifies a help text that shoshould be displayed when a particle selection is highlighted. particle submenu. see also the DEFAULT directive below. valid only after the LABEL statement, used to display when the menu item is selected for highlight Display the text information (multiple rows can be used) ◆ menu passwd passwd (Only valid after a LABEL statement .) sets a password on this menu entry. "passwd" can be either acleartext password or a password encrypted with one of thefollowing algorithms: MD5 (Signature: $1 $) SHA-1 (Signature: $4 $) SHA-2-256 (Signature: $5 $) SHA-2-512 (Signature: $6 $) Use the specified Ded Perl scripts "sha1pass" or "md5pass" toencrypt passwords. MD5 passwords are com Patible with mostUnix password file utilities; SHA-1 passwords are probablyunique to Syslinux; SHA-2 passwords are compatible with veryrecent Linux distributions. obviusly, if you don't encryptyour passwords they will not be very secure at all. if you are using passwords, you want to make sure you also usethe settings "NOESCAPE 1", "PROMPT 0", and either set "ALLOWOPTIONS 0" or use a master passwo Rd (see below.) If passwd is an empty string, this menu entry can only beunlocked with the master password. it is only valid after the LABEL statement and is used to add a specific password to the menu. ◆ Menu master passwd passwd Sets a master password. this password can be used to boot anymenu entry, and is required for the [Tab] and [Esc] keys towork. set the master password to add a password to any menu item. Press [Tab] and [Esc] to enter the input page. ◆ Note: syslinux/isolinux/pxelinux supports shortcut keys to go to the sub-menu directly from version 4.0. The format is as follows: menu immediate is only used after the LABEL statement. ◆ Recently, boot commands in syslinux are very useful. (See http://bbs.wuyou.com/viewthread.php?tid=188217&page=2#pid2173525 For example, if you want to directly start the grldr g4d built-in menu without entering the menu, you can use QUOTE: default alabel into T/grldr. In fact, no. the c32 file is used for the purpose. only the pbr and ldlinux of syslinux are guided. sys,/boot/syslinux. cfg and the grldr. One of the most important advantages is that the boot command is not sensitive to the extension. for example, the built-in menu of 0PE is 0PE. BIN or grldr. Previously, when the pxelinux network was started, the object using the kernel command must be. 0 file, such as kernel/0PE. 0. if you use the boot command, you only need boot/0pe. bin or boot/grldr or boot/0pe. 0. That is, the boot command is highly adaptable. ◆ To load the ISO file, refer to the following command: QUOTE: LABEL xxxISOMENU LABEL <^ 1> XXXLINUX memdiskINITRD /****. isoAPPEND iso raw or: QUOTE: label XXXkernel/memdisk raw iso initrd =/XXX. iso ◆ to load the imgfile, refer to the following command: QUOTE: LABEL maxdosMENU LABEL [^ 1] MaxDOS 8 MENU IMMEDIATEkernel/BOOT/SYSLINUX/MEMDISK c = 194 h = 2 s = 36 floppyappend initrd =/BOOT/IMGS/MAXDOS. IMG note that when the IMG size exceeds 2.88M, you need to add the CHS parameter. The value of this parameter can be used to determine the available tools, or you can view it through winimage. Search for details. ◆ Start the PE seupldr. binfile. in syslinux, a ldntldr header file is usually added and then kernel. When the disk is merged, grub4dos starts the setupldr without header files. bin. to save files and space, run the following command to enable syslinux PE: QUOTE: LABEL xxxMENU LABEL [^ 2] xxxxxxMENU IMMEDIATEkernel/BOOT/LDNTLDRappend initrd =/BOOT/SETUPLDR. BIN is equivalent to kernel (LDNTLDR + SETUPLDR. BIN) the red-letter menu immediate is only supported in versions later than 4.0. ◆ Start menu QUOTE: label xxxmenu label [^ 3] XXXMENU IMMEDIATEconfig/BOOT/SYSLINUX/3. worker 3.cfg is the sub menu. ◆ Start bootmgr: QUOTE: LABEL bootmgrMENU LABEL [^ B] BOOTMGRMENU IMMEDIATEkernel/BOOT/LDNTLDRappend initrd =/BOOTMGR ◆ Start hd0, 1 nt5 system: QUOTE: LABEL localbootMENU LABEL [^ N]? Nt5MENU IMMEDIATEkernel/BOOT/SYSLINUX/CHAIN. C32 hd0, 1 append ntldr =/ntldr here, the/BOOT/SYSLINUX/CHAIN. C32 file must exist. ◆ Start the system on the local hard disk: QUOTE: LABEL localbootMENU LABEL [^ L]? Local bootMENU IMMEDIATElocalboot 0x80 ◆ Start (bios) next device: QUOTE: LABEL nextMENU LABEL [^ N] nextMENU IMMEDIATElocalboot-1 ◆ shutdown: QUOTE: LABEL poweroffMENU LABEL [^ S] poweroffMENU IMMEDIATEkernel/BOOT/SYSLINUX/POWEROFF. COM./BOOT/SYSLINUX/POWEROFF is required. COM file. ◆ Restart: QUOTE: LABEL rebootMENU LABEL [^ R] rebootMENU IMMEDIATEkernel/BOOT/SYSLINUX/REBOOT. C32. The/BOOT/SYSLINUX/REBOOT. C32 file must exist.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.