syslinux常用功能表命令

來源:互聯網
上載者:User

syslinux常用功能表命令 PROMPT 0 TIMEOUT 100    菜單停留時間,計時單位1/10秒(必填項) DEFAULT vesamenu.c32  菜單視窗 MENU BACKGROUND bsck.png 運行視窗背景圖片(640x480)(必填項) FONT zh.psf      字型 MENU WIDTH 80        功能表列寬度   MENU MARGIN 16       子功能表水平位置,數字越大越往右移 MENU HELPMSGROW 19   協助文字的垂直位置 MENU ROWS 16         菜單條數   這個數值要小於HELPMSGROW TABMSGROW CMDLINEROW TIMEOUTROW 等的數值,否則菜單條不能完全顯示 MENU TABMSGROW 20 [TAB] 的高度 MENU CMDLINEROW 21 命令列高度 MENU TIMEOUTROW 22 倒計時高度 MENU HSHIFT 1 方框向右移動 MENU VSHIFT 1 方框向下移動 # MENU RESOLUTION 800 600 指定背景圖大小 menu color border           30;44      #00000000 #00000000 none  菜單邊框           透明 menu color title            1;36;44    #FFFFFFFF #00000000 none  頂部標題文字顏色   其中#FFFFFFFF為前景色彩,後六位為白色的16進位代碼FFFFFF   #00000000為背景色,透明 menu color sel              30;37      #FF00FF00 #00000000 none  選定子功能表顏色     綠色 menu color unsel            37;44      #FFFFFFFF #00000000 none  未選定子功能表顏色   白色 menu color help             37;40      #FFFFFFFF #00000000 none  菜單注釋文字顏色   白色 menu color cmdline          37;40      #FFFF0000 #00000000 none  TAB命令列顏色      紅色 menu color msg07            37;40      #FFFFFF00 #00000000 none  F1顯示顏色         黃 menu color timeout          37;40      #FFFF0000 #00000000 none  剩餘時間秒數顏色   紅色 menu color timeout_msg      37;40      #FFFFFF00 #00000000 none  剩餘時間字型顏色   黃 menu color hotkey           1;37;44    #ffffff00 #00000000 none  快速鍵顏色         黃 menu color hotsel           1;7;37;40  #FF00FF00 #00000000 none  選定快速鍵顏色     綠色   MENU AUTOBOOT #         設定倒計時     MENU TABMSG 按[TAB]編輯選項     設定TAB提示  MENU TITLE 電腦維護工具盤       設定頂部標題  LABEL hd0   MENU LABEL [^1] 啟動硬碟第一分區      ^定義快速鍵 ...1為快速鍵 MENU INDENT 2                   #向右縮排2 kernel chain.c32 hd0,1  MENU DEFAULT    預設啟動菜單  LABEL pe MENU LABEL [^2] 啟動WINDOWS PE系統 MENU INDENT 2 kernel /boot/bin/H3_LNXXP.BIN TEXT HELP                   零體積PE 831grldr              設定協助提示,此文字的位置和顯示的效果一樣                   NANOPE_V2008  pe.bin                                ENDTEXT LABEL GHOST MENU LABEL [^3] 運行GHOST 備份恢複 MENU INDENT 2 kernel /boot/syslinux/memdisk  append initrd=/boot/img/ghostc.img  LABEL DOS1 MENU LABEL [^4] 邁思DOS工具箱加強版 MENU INDENT 2 kernel /boot/syslinux/memdisk  append initrd=/boot/img/maxdos.img  LABEL DOS2 MENU LABEL [^5] DOS時代菜鳥工具箱 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] 啟動GRUBDOS MENU INDENT 2 kernel /boot/bin/ldntldr append initrd=/boot/bin/grldr  LABEL slax MENU LABEL [^7] 啟動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] 啟動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] 安裝LINUX系統 MENU INDENT 2 kernel /boot/linux/m/vmlinuz append initrd=/boot/linux/m/initrd.img  LABEL bz31     MENU LABEL [^G] 啟動G4L備份恢複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] 啟動GEEXBOX1.2.4 MENU INDENT 2         CONFIG /geexbox/boot/isolinux.cfg  LABEL reboot MENU LABEL [^R] 重新啟動 MENU INDENT 2 kernel /boot/syslinux/reboot.c32  F1 syslinux.cfg       #FF0000FF    設定F1鍵顯示syslinuc.cfg     #FF0000FF為背景色 藍色 F2 pe.txt             #FF0000FF  F4 img.txt            #FF0000FF F9 linux.txt          #FF0000FF 》》》》》》》》》》》》》》》》》》》》》》》》》》》 ◆MENU DISABLE(Only valid after a LABEL statement.)Makes the entry unselectable.僅用於LABEL語句後面,使用該項功能表項目不可選擇(即能看不能用)。 ◆MENU SEPARATORInsert an empty line in the menu.在菜單中插入一個空行 ◆MENU INDENT count(Only valid after a LABEL statement.)Will add "count" spaces in front of the displayed menu entry.僅在LABEL語句後有效。使用該命令,可在顯示時將功能表項目之前加上conut個空格。 ◆MENU DEFAULT(Only valid after a LABEL statement.)Indicates that this entry should be the default for this僅在LABLE語句後有效,指定預設功能表項目 ◆TEXT HELPHelp text ...... which can span multiple linesENDTEXT(Only valid after a LABEL statement.)Specifies a help text that should be displayed when a particularselection is highlighted.particular submenu. See also the DEFAULT directive below.僅在LABEL語句後有效,用於在該功能表項目被選定高亮時顯示其中的文本資訊(可為多行)◆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 included Perl scripts "sha1pass" or "md5pass" toencrypt passwords. MD5 passwords are compatible with mostUnix password file utilities; SHA-1 passwords are probablyunique to Syslinux; SHA-2 passwords are compatible with veryrecent Linux distributions. Obviously, 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 password (see below.) If passwd is an empty string, this menu entry can only beunlocked with the master password.僅在LABEL語句後有效,用於對該菜單加一特定密碼。 ◆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.設定主密碼,用於對任意功能表項目加密碼。需要按 [Tab] 及 [Esc]鍵進入輸入介面。 ◆注意,syslinux/isolinux/pxelinux自4.0版開始支援快速鍵直接進入子功能表。格式如下:MENU IMMEDIATE僅用於LABEL語句後面。  ◆最近發現syslinux中boot命令非常好用。(參見http://bbs.wuyou.com/viewthread.php?tid=188217&page=2#pid2173525)比如想不進菜單直接啟動grldr 這一g4d內建功能表,可以這樣使用: QUOTE: default alabel aboot /grldr這樣,實際上沒有使用任何.c32檔案就達到目的了,涉及到的只有引導syslinux的pbr、ldlinux.sys、/boot/syslinux/syslinux.cfg及那個grldr。 一個最重要的好處是:boot命令對副檔名不敏感,比如0PE的內建功能表為0PE.BIN或者grldr,以前在pxelinux網啟時,使用kernel命令的對象必須是.0檔案,如kernel /0PE.0,如果使用boot命令,現在只要 boot /0pe.bin 或 boot /grldr 或者 boot /0pe.0均可。即boot命令適應性還是很強的。 ◆如果想載入ISO檔案,可參考下面的命令: QUOTE:  LABEL xxxISOMENU LABEL < ^1 > XXXLINUX memdiskINITRD /****.isoAPPEND iso raw或者: QUOTE: label XXXkernel /memdisk raw iso initrd=/XXX.iso ◆如果想載入IMG檔案,可參考下面的命令: QUOTE: LABEL maxdosMENU LABEL [^1] MaxDOS 8MENU IMMEDIATEkernel /BOOT/SYSLINUX/MEMDISK c=194 h=2 s=36 floppyappend initrd=/BOOT/IMGS/MAXDOS.IMG注意當IMG大小超過2.88M後,需要加上CHS參數。此參數的數值確定可用工具,也可通過winimage查看。具體搜尋下吧。  ◆啟動PE的seupldr.bin檔案,在syslinux下通常是加上一個ldntldr的標頭檔,再kernel之。當合盤時,grub4dos啟動的是沒有標頭檔的setupldr.bin,為了節省檔案及空間,可以使用如下命令達到syslinux啟動PE的要求: QUOTE: LABEL xxxMENU LABEL [^2] xxxxxxMENU IMMEDIATEkernel /BOOT/LDNTLDRappend initrd=/BOOT/SETUPLDR.BIN這樣的效果等同於 kernel (LDNTLDR+SETUPLDR.BIN)紅字的MENU IMMEDIATE僅4.0以上版本支援。 ◆啟動子功能表 QUOTE: LABEL XXXMENU LABEL [^3] XXXMENU IMMEDIATEconfig /BOOT/SYSLINUX/3.CFG3.CFG即為子功能表。 ◆啟動bootmgr: QUOTE: LABEL bootmgrMENU LABEL [^B] BOOTMGRMENU IMMEDIATEkernel /BOOT/LDNTLDRappend initrd=/BOOTMGR◆啟動hd0,1上nt5系統: QUOTE: LABEL localbootMENU LABEL [^N] nt5MENU IMMEDIATEkernel /BOOT/SYSLINUX/CHAIN.C32 hd0,1append ntldr=/ntldr這裡,需要存在/BOOT/SYSLINUX/CHAIN.C32這一檔案。 ◆啟動本地硬碟上系統: QUOTE: LABEL localbootMENU LABEL [^L] local bootMENU IMMEDIATElocalboot 0x80◆啟動(bios)下一裝置: QUOTE: LABEL nextMENU LABEL [^N] nextMENU IMMEDIATElocalboot -1◆關機: QUOTE: LABEL poweroffMENU LABEL [^S] poweroffMENU IMMEDIATEkernel /BOOT/SYSLINUX/POWEROFF.COM這裡,需要存在/BOOT/SYSLINUX/POWEROFF.COM這一檔案。  ◆重啟: QUOTE: LABEL rebootMENU LABEL [^R] rebootMENU IMMEDIATEkernel /BOOT/SYSLINUX/REBOOT.C32這裡,需要存在/BOOT/SYSLINUX/REBOOT.C32這一檔案。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.