📄 syslinux.doc
字号:
Lock escapes. Use this (together with PROMPT 0) to force the default boot alternative.F1 filenameF2 filename ...etc...F9 filenameF0 filename Displays the indicated file on the screen when a function key is pressed at the boot: prompt. This can be used to implement pre-boot online help (presumably for the kernel command line options.) Note that F10 MUST be entered in the config file as "F0", not "F10", and that there is currently no way to bind file names to F11 and F12. Please see the section below on DISPLAY files. When using the serial console, press <Ctrl-F><digit> to get to the help screens, e.g. <Ctrl-F><2> to get to the F2 screen, and <Ctrl-F><0> for the F10 one.Blank lines are ignored.Note that the configuration file is not completely decoded. Syntaxdifferent from the one described above may still work correctly in thisversion of SYSLINUX, but may break in a future one. ++++ DISPLAY FILE FORMAT ++++DISPLAY and function-key help files are text files in either DOS or UNIXformat (with or without <CR>). In addition, the following special codesare interpreted:<FF> <FF> = <Ctrl-L> = ASCII 12 Clear the screen, home the cursor. Note that the screen is filled with the current display color.<SI><bg><fg> <SI> = <Ctrl-O> = ASCII 15 Set the display colors to the specified background and foreground colors, where <bg> and <fg> are hex digits, corresponding to the standard PC display attributes: 0 = black 8 = dark grey 1 = dark blue 9 = bright blue 2 = dark green a = bright green 3 = dark cyan b = bright cyan 4 = dark red c = bright red 5 = dark purple d = bright purple 6 = brown e = yellow 7 = light grey f = white Picking a bright color (8-f) for the background results in the corresponding dark color (0-7), with the foreground flashing. Colors are not visible over the serial console.<CAN>filename<newline> <CAN> = <Ctrl-X> = ASCII 24 If a VGA display is present, enter graphics mode and display the graphic included in the specified file. The file format is an ad hoc format called LSS16; the included Perl program "ppmtolss16" can be used to produce these images. This Perl program also includes the file format specification. The image is displayed in 640x480 16-color mode. Once in graphics mode, the display attributes (set by <SI> code sequences) work slightly differently: the background color is ignored, and the foreground colors are the 16 colors specified in the image file. For that reason, ppmtolss16 allows you to specify that certain colors should be assigned to specific color indicies. Color indicies 0 and 7, in particular, should be chosen with care: 0 is the background color, and 7 is the color used for the text printed by SYSLINUX itself.<EM> <EM> = <Ctrl-Y> = ASCII 25 If we are currently in graphics mode, return to text mode.<DLE>..<ETB> <Ctrl-P>..<Ctrl-W> = ASCII 16-23 These codes can be used to select which modes to print a certain part of the message file in. Each of these control characters select a specific set of modes (text screen, graphics screen, serial port) for which the output is actually displayed: Character Text Graph Serial ------------------------------------------------------ <DLE> = <Ctrl-P> = ASCII 16 No No No <DC1> = <Ctrl-Q> = ASCII 17 Yes No No <DC2> = <Ctrl-R> = ASCII 18 No Yes No <DC3> = <Ctrl-S> = ASCII 19 Yes Yes No <DC4> = <Ctrl-T> = ASCII 20 No No Yes <NAK> = <Ctrl-U> = ASCII 21 Yes No Yes <SYN> = <Ctrl-V> = ASCII 22 No Yes Yes <ETB> = <Ctrl-W> = ASCII 23 Yes Yes Yes For example: <DC1>Text mode<DC2>Graphics mode<DC4>Serial port<ETB> ... will actually print out which mode the console is in!<SUB> <SUB> = <Ctrl-Z> = ASCII 26 End of file (DOS convention).<BEL> <BEL> = <Ctrl-G> = ASCII 7 Beep the speaker. ++++ COMMAND LINE KEYSTROKES ++++The command line prompt supports the following keystrokes:<Enter> boot specified command line<BackSpace> erase one character<Ctrl-U> erase the whole line<Ctrl-V> display the current SYSLINUX version<Ctrl-W> erase one word<Ctrl-X> force text mode<F1>..<F10> help screens (if configured)<Ctrl-F><digit> equivalent to F1..F10<Ctrl-C> interrupt boot in progress<Esc> interrupt boot in progress ++++ COMBOOT IMAGES AND OTHER OPERATING SYSTEMS ++++This version of SYSLINUX supports chain loading of other operatingsystems (such as MS-DOS and its derivatives, including Windows 95/98),as well as COMBOOT-style standalone executables (a subset of DOS .COMfiles; see separate section below.)Chain loading requires the boot sector of the foreign operating systemto be stored in a file in the root directory of the filesystem.Because neither Linux kernels, boot sector images, nor COMBOOT fileshave reliable magic numbers, SYSLINUX will look at the file extension.The following extensions are recognized (case insensitive): none or other Linux kernel image .0 PXE bootstrap program (NBP) [PXELINUX only] .bin "CD boot sector" [ISOLINUX only] .bs Boot sector [SYSLINUX only] .bss Boot sector, DOS superblock will be patched in [SYSLINUX only] .c32 COM32 image (32-bit COMBOOT) .cbt COMBOOT image (not runnable from DOS) .com COMBOOT image (runnable from DOS) .img Disk image [ISOLINUX only]For filenames given on the command line, SYSLINUX will search for thefile by adding extensions in the order listed above if the plainfilename is not found. Filenames in KERNEL statements must be fullyqualified. ++++ BOOTING DOS (OR OTHER SIMILAR OPERATING SYSTEMS) ++++This section applies to SYSLINUX only, not to PXELINUX or ISOLINUX.See isolinux.doc for an equivalent procedure for ISOLINUX.This is the recommended procedure for creating a SYSLINUX disk thatcan boot either DOS or Linux. This example assumes the drive is A: inDOS and /dev/fd0 in Linux; for other drives, substitute theappropriate drive designator. ---- Linux procedure ----1. Make a DOS bootable disk. This can be done either by specifying the /s option when formatting the disk in DOS, or by running the DOS command SYS (this can be done under DOSEMU if DOSEMU has direct device access to the relevant drive): format a: /s or sys a:2. Boot Linux. Copy the DOS boot sector from the disk into a file: dd if=/dev/fd0 of=dos.bss bs=512 count=13. Run SYSLINUX on the disk: syslinux /dev/fd04. Mount the disk and copy the DOS boot sector file to it. The file *must* have extension .bss: mount -t msdos /dev/fd0 /mnt cp dos.bss /mnt5. Copy the Linux kernel image(s), initrd(s), etc to the disk, and create/edit syslinux.cfg and help files if desired: cp vmlinux /mnt cp initrd.gz /mnt6. Unmount the disk (if applicable.) umount /mnt ---- DOS/Windows procedure ----To make this installation in DOS only, you need the utility copybs.com(included with SYSLINUX) as well as the syslinux.com installer. Ifyou are on an WinNT-based system (WinNT, Win2k, WinXP or later), usesyslinux.exe instead.1. Make a DOS bootable disk. This can be done either by specifying the /s option when formatting the disk in DOS, or by running the DOS command SYS: format a: /s or sys a:2. Copy the DOS boot sector from the disk into a file. The file *must* have extension .bss: copybs a: a:dos.bss3. Run SYSLINUX on the disk: syslinux a:4. Copy the Linux kernel image(s), initrd(s), etc to the disk, and create/edit syslinux.cfg and help files if desired: copy vmlinux a: copy initrd.gz a: ++++ COMBOOT EXECUTABLES ++++SYSLINUX supports simple standalone programs, using a file formatsimilar to DOS ".com" files. A 32-bit version, called COM32, is alsoprovided. A simple API provides access to a limited set of filesystemand console functions.See the file comboot.doc for more information on COMBOOT and COM32programs. ++++ NOVICE PROTECTION ++++SYSLINUX will attempt to detect booting on a machine with too littlememory, which means the Linux boot sequence cannot complete. If so, amessage is displayed and the boot sequence aborted. Holding down theCtrl key while booting disables this feature.Any file that SYSLINUX uses can be marked hidden, system or readonlyif so is convenient; SYSLINUX ignores all file attributes. TheSYSLINUX installed automatically sets the readonly/hidden/systemattributes on LDLINUX.SYS. ++++ NOTES ON BOOTABLE CD-ROMS ++++SYSLINUX can be used to create bootdisk images for ElTorito-compatible bootable CD-ROMs. However, it appears that manyBIOSes are very buggy when it comes to booting CD-ROMs. Some usershave reported that the following steps are helpful in making a CD-ROMthat is bootable on the largest possible number of machines: a) Use the -s (safe, slow and stupid) option to SYSLINUX; b) Put the boot image as close to the beginning of the ISO 9660 filesystem as possible.A CD-ROM is so much faster than a floppy that the -s option shouldn'tmatter from a speed perspective.Of course, you probably want to use ISOLINUX instead. See isolinux.doc. ++++ BOOTING FROM A FAT FILESYSTEM PARTITION ON A HARD DISK ++++SYSLINUX can boot from a FAT filesystem partition on a hard disk(including FAT32). The installation procedure is identical to theprocedure for installing it on a floppy, and should work under eitherDOS or Linux. To boot from a partition, SYSLINUX needs to be launchedfrom a Master Boot Record or another boot loader, just like DOS itselfwould.Under DOS, you can install a standard simple MBR on the primary harddisk by running the command: FDISK /MBRThen use the FDISK command to mark the appropriate partition active.A simple MBR, roughly on par with the one installed by DOS (butunencumbered), is included in the SYSLINUX distribution. To installit under Linux, simply type: cat mbr.bin > /dev/XXX... where /dev/XXX is the device you wish to install it on.Under DOS or Win32, you can install the SYSLINUX MBR with the -moption to the SYSLINUX installer, and use the -a option to mark thecurrent partition active: syslinux -ma c:Note that this will also install SYSLINUX on the specified partition. ++++ HARDWARE INFORMATION +++I have started to maintain a web page of hardware with knownproblems. There are, unfortunately, lots of broken hardware outthere; especially early PXE stacks (for PXELINUX) have lots ofproblems.A list of problems, and workarounds (if known), is maintained at: http://syslinux.zytor.com/hardware.php ++++ BOOT LOADER IDS USED ++++The Linux boot protocol supports a "boot loader ID", a single bytewhere the upper nybble specifies a boot loader family (3 = SYSLINUX)and the lower nybble is version or, in the case of SYSLINUX, media: 0x31 = SYSLINUX 0x32 = PXELINUX 0x33 = ISOLINUX 0x34 = EXTLINUX ++++ BUG REPORTS ++++I would appreciate hearing of any problems you have with SYSLINUX. Iwould also like to hear from you if you have successfully used SYSLINUX,*especially* if you are using it for a distribution.If you are reporting problems, please include all possible informationabout your system and your BIOS; the vast majority of all problemsreported turn out to be BIOS or hardware bugs, and I need as muchinformation as possible in order to diagnose the problems.There is a mailing list for discussion among SYSLINUX users and forannouncements of new and test versions. To join, or to browse thearchive, go to: http://www.zytor.com/mailman/listinfo/syslinuxPlease DO NOT send HTML messages or attachments to the mailing list(including multipart/alternative or similar.) All such messages willbe bounced.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -