1 .TH SYSLINUX 1 "Oct 7, 2000"
3 syslinux \- bootloader for Linux using MS-DOS floppies
5 .BR syslinux " [ " \-s " ] [ " \-f " ] [ " \-o
10 \fBSyslinux\fP is a boot loader for the Linux operating system which
11 operates off an MS-DOS/Windows FAT filesystem. It is intended to
12 simplify first-time installation of Linux, and for creation of rescue
13 and other special-purpose boot disks.
15 In order to create a bootable Linux floppy using \fBSyslinux\fP, prepare a
16 normal MS-DOS formatted floppy. Copy one or more Linux kernel files to
17 it, then execute the command:
21 This will alter the boot sector on the disk and copy a file named
22 LDLINUX.SYS into its root directory.
24 On boot time, by default, the kernel will be loaded from the image named
25 LINUX on the boot floppy. This default can be changed, see the section
26 on the \fBsyslinux\fP configuration file.
28 If the Shift or Alt keys are held down during boot, or the Caps or Scroll
29 locks are set, \fBsyslinux\fP will display a
31 -style "boot:" prompt. The user can then type a kernel file name followed by
32 any kernel parameters. The \fBsyslinux\fP loader does not need to know about the
33 kernel file in advance; all that is required is that it is a file located in
34 the root directory on the disk.
36 \fBSyslinux\fP supports the loading of initial ramdisks (initrd) and the
37 bzImage kernel format.
41 Install a "safe, slow and stupid" version of \fBsyslinux\fP. This version may
42 work on some very buggy BIOSes on which \fBsyslinux\fP would otherwise fail.
43 If you find a machine on which the \-s option is required to make it boot
44 reliably, please send as much info about your machine as you can, and include
47 .SS "Configuration file"
48 All the configurable defaults in \fBsyslinux\fP can be changed by putting a
49 file called SYSLINUX.CFG in the root directory of the boot floppy. This
50 is a text file in either UNIX or DOS format, containing one or more of
51 the following items (case is insensitive for keywords).
53 In the configuration file blank lines and comment lines beginning
54 with a hash mark (#) are ignored.
56 \fBdefault\fP \fIkernel\fP [ \fIoptions ...\fP ]
57 Sets the default command line. If \fBsyslinux\fP boots automatically, it will act
58 just as if the entries after "default" had been typed in at the "boot:" prompt.
60 If no configuration file is present, or no "default" entry is present in the
61 configuration file, the default is "linux auto".
63 NOTE: Earlier versions of SYSLINUX used to automatically
64 append the string "auto" to whatever the user specified using
65 the DEFAULT command. As of version 1.54, this is no longer
66 true, as it caused problems when using a shell as a substitute
67 for "init." You may want to include this option manually.
69 .BI append " options ..."
70 Add one or more \fIoptions\fP to the kernel command line. These are added both
71 for automatic and manual boots. The options are added at the very beginning of
72 the kernel command line, usually permitting explicitly entered kernel options
73 to override them. This is the equivalent of the
81 .BI append\ options\ ...
85 Indicates that if \fIlabel\fP is entered as the kernel to boot, \fBsyslinux\fP should
86 instead boot \fIimage\fP, and the specified "append" options should be used
87 instead of the ones specified in the global section of the file (before the
88 first "label" command.) The default for \fIimage\fP is the same as \fIlabel\fP,
89 and if no "append" is given the default is to use the global entry (if any).
90 Use "append -" to use no options at all. Up to 128 "label" entries are
94 Labels are mangled as if they were DOS filenames, and must be unique after
95 mangling. For example, two labels "v2.1.30" and "v2.1.31" will not be
98 The "image" doesn't have to be a Linux kernel; it can be a boot sector or a
99 COMBOOT file (see below.)
102 .BI implicit\ flag_val
103 If \fIflag_val\fP is 0, do not load a kernel image unless it has been
104 explicitly named in a "label" statement. The default is 1.
107 Indicates how long to wait at the "boot:" prompt until booting automatically, in
108 units of 1/10 s. The timeout is cancelled as soon as the user types anything
109 on the keyboard, the assumption being that the user will complete the command
110 line already begun. A timeout of zero will disable the timeout completely,
111 this is also the default. The maximum possible timeout value is 35996;
112 corresponding to just below one hour.
114 \fBserial\fP \fIport\fP [ \fIbaudrate\fP ]
115 Enables a serial port to act as the console. "port" is a number (0 = /dev/ttyS0
116 = COM1, etc.); if "baudrate" is omitted, the baud rate defaults to 9600 bps.
117 The serial parameters are hardcoded to be 8 bits, no parity, 1 stop bit.
119 For this directive to be guaranteed to work properly, it
120 should be the first directive in the configuration file.
123 Load a font in .psf format before displaying any output (except the copyright
124 line, which is output as ldlinux.sys itself is loaded.) \fBsyslinux\fP only loads
125 the font onto the video card; if the .psf file contains a Unicode table it is
126 ignored. This only works on EGA and VGA cards; hopefully it should do nothing
130 Install a simple keyboard map. The keyboard remapper used is \fIvery\fP
131 simplistic (it simply remaps the keycodes received from the BIOS, which means
132 that only the key combinations relevant in the default layout \- usually U.S.
133 English \- can be mapped) but should at least help people with AZERTY keyboard
134 layout and the locations of = and , (two special characters used heavily on the
135 Linux kernel command line.)
138 .BR keytab-lilo.pl (8)
141 distribution can be used to create such keymaps.
143 .BI display\ filename
144 Displays the indicated file on the screen at boot time (before the boot:
145 prompt, if displayed). Please see the section below on DISPLAY files. If the
146 file is missing, this option is simply ignored.
149 If \fIflag_val\fP is 0, display the "boot:" prompt only if the Shift or Alt key
150 is pressed, or Caps Lock or Scroll lock is set (this is the default). If
151 \fIflag_val\fP is 1, always display the "boot:" prompt.
161 Displays the indicated file on the screen when a function key is pressed at the
162 "boot:" prompt. This can be used to implement pre-boot online help (presumably
163 for the kernel command line options.) there is currently no way to bind file
164 names to F11 and F12. Please see the section below on display files.
167 When using the serial console, press \fI<Ctrl-F><digit>\fP to get to the help
168 screens, e.g. \fI<Ctrl-F>2\fP to get to the f2 screen, and \fI<Ctrl-F>0\fP for
170 .SS "Display file format"
171 DISPLAY and function-key help files are text files in either DOS or UNIX
172 format (with or without \fI<CR>\fP). In addition, the following special codes
175 \fI<FF>\fP = \fI<Ctrl-L>\fP = ASCII 12
176 Clear the screen, home the cursor. Note that the screen is
177 filled with the current display color.
179 \fI<SI><bg><fg>\fP, \fI<SI>\fP = \fI<Ctrl-O>\fP = ASCII 15
180 Set the display colors to the specified background and foreground colors, where
181 \fI<bg>\fP and \fI<fg>\fP are hex digits, corresponding to the standard PC
185 .ta \w'5 = dark purple 'u
186 0 = black 8 = dark grey
187 1 = dark blue 9 = bright blue
188 2 = dark green a = bright green
189 3 = dark cyan b = bright cyan
190 4 = dark red c = bright red
191 5 = dark purple d = bright purple
193 7 = light grey f = white
196 Picking a bright color (8-f) for the background results in the
197 corresponding dark color (0-7), with the foreground flashing.
199 colors are not visible over the serial console.
201 \fI<CAN>\fPfilename\fI<newline>\fP, \fI<CAN>\fP = \fI<Ctrl-X>\fP = ASCII 24
202 If a VGA display is present, enter graphics mode and display
203 the graphic included in the specified file. The file format
204 is an ad hoc format called LSS16; the included Perl program
205 "ppmtolss16" can be used to produce these images. This Perl
206 program also includes the file format specification.
208 The image is displayed in 640x480 16-color mode. Once in
209 graphics mode, the display attributes (set by \fI<SI>\fP code
210 sequences) work slightly differently: the background color is
211 ignored, and the foreground colors are the 16 colors specified
212 in the image file. For that reason, ppmtolss16 allows you to
213 specify that certain colors should be assigned to specific
216 Color indicies 0 and 7, in particular, should be chosen with
217 care: 0 is the background color, and 7 is the color used for
218 the text printed by SYSLINUX itself.
220 \fI<EM>\fP, \fI<EM>\fP = \fI<Ctrl-U>\fP = ASCII 25
221 If we are currently in graphics mode, return to text mode.
223 \fI<DLE>\fP..\fI<ETB>\fB, \fI<Ctrl-P>\fP..\fI<Ctrl-W>\fP = ASCII 16-23
224 These codes can be used to select which modes to print a
225 certain part of the message file in. Each of these control
226 characters select a specific set of modes (text screen,
227 graphics screen, serial port) for which the output is actually
231 Character Text Graph Serial
232 ------------------------------------------------------
233 <DLE> = <Ctrl-P> = ASCII 16 No No No
234 <DC1> = <Ctrl-Q> = ASCII 17 Yes No No
235 <DC2> = <Ctrl-R> = ASCII 18 No Yes No
236 <DC3> = <Ctrl-S> = ASCII 19 Yes Yes No
237 <DC4> = <Ctrl-T> = ASCII 20 No No Yes
238 <NAK> = <Ctrl-U> = ASCII 21 Yes No Yes
239 <SYN> = <Ctrl-V> = ASCII 22 No Yes Yes
240 <ETB> = <Ctrl-W> = ASCII 23 Yes Yes Yes
245 <DC1>Text mode<DC2>Graphics mode<DC4>Serial port<ETB>
247 ... will actually print out which mode the console is in!
249 \fI<SUB>\fP = \fI<Ctrl-Z>\fP = ASCII 26
250 End of file (DOS convention).
251 .SS Comboot Images and other operating systems
252 This version of \fBsyslinux\fP supports chain loading of other operating
253 systems (such as MS-DOS and its derivatives, including Windows 95/98),
254 as well as COMBOOT-style standalone executables (a subset of DOS .COM
255 files; see separate section below.)
257 Chain loading requires the boot sector of the foreign operating system
258 to be stored in a file in the root directory of the filesystem.
259 Because neither Linux kernels, boot sector images, nor COMBOOT files
260 have reliable magic numbers, \fBsyslinux\fP will look at the file
261 extension. The following extensions are recognised:
264 .ta \w'none or other 'u
265 none or other Linux kernel image
266 CBT COMBOOT image (not runnable from DOS)
267 BSS Boot sector (DOS superblock will be patched in)
269 COM COMBOOT image (runnable from DOS)
272 For filenames given on the command line, \fBsyslinux\fP will search for the
273 file by adding extensions in the order listed above if the plain
274 filename is not found. Filenames in KERNEL statements must be fully
277 A COMBOOT file is a standalone executable in DOS .COM format. They
278 can, among other things, be produced by the Etherboot package by
279 Markus Gutschke and Ken Yap. The following requirements apply for
280 these files to be sufficiently "standalone" for \fBsyslinux\fP to be able to
283 The program must not execute any DOS calls (since there is no
284 DOS), although it may call the BIOS. The only exception is that
285 the program may execute INT 20h (Terminate Program) to return to
286 the \fBsyslinux\fP prompt. Note especially that INT 21h AH=4Ch, INT 21h
287 AH=31h or INT 27h are not supported.
289 Only the fields pspInt20 at offset 00h, pspNextParagraph at offset 02h and
290 pspCommandTail at offset 80h (contains the arguments from the \fBsyslinux\fP command
291 line) in the PSP are supported. All other fields will contain zero.
293 The program must not modify any main memory outside its 64K segment if it
294 returns to \fBsyslinux\fP via INT 20h.
296 \fBSyslinux\fP currently doesn't provide any form of API for the use of
297 COMBOOT files. If there is need, a future version may contain an INT
298 interface to some \fBsyslinux\fP functions; please contact me if you have a
299 need or ideas for such an API.
300 .SS Novice protection
301 \fBSyslinux\fP will attempt to detect if the user is trying to boot on a 286
302 or lower class machine, or a machine with less than 608K of low ("DOS")
303 RAM (which means the Linux boot sequence cannot complete). If so, a
304 message is displayed and the boot sequence aborted. Holding down the
305 Ctrl key while booting disables this feature.
307 The compile time and date of a specific \fBsyslinux\fP version can be obtained
308 by the DOS command "type ldlinux.sys". This is also used as the
309 signature for the LDLINUX.SYS file, which must match the boot sector
311 Any file that \fBsyslinux\fP uses can be marked hidden, system or readonly if
312 so is convenient; \fBsyslinux\fP ignores all file attributes. The SYSLINUX
313 installed automatically sets the readonly attribute on LDLINUX.SYS.
315 SYSLINUX can be used to create bootdisk images for El
316 Torito-compatible bootable CD-ROMs. However, it appears that many
317 BIOSes are very buggy when it comes to booting CD-ROMs. Some users
318 have reported that the following steps are helpful in making a CD-ROM
319 that is bootable on the largest possible number of machines:
321 Use the -s (safe, slow and stupid) option to SYSLINUX
323 Put the boot image as close to the beginning of the
324 ISO 9660 filesystem as possible.
326 A CD-ROM is so much faster than a floppy that the -s option shouldn't
327 matter from a speed perspective.
328 .SS Booting from a FAT partition on a hard disk
329 SYSLINUX can boot from a FAT12 or FAT16 filesystem partition on a hard
330 disk (FAT32, introduced in Windows 95 OSR-2, is not supported,
331 however.) The installation procedure is identical to the procedure
332 for installing it on a floppy, and should work under either DOS or
333 Linux. To boot from a partition, SYSLINUX needs to be launched from a
334 Master Boot Record or another boot loader, just like DOS itself would.
336 SYSLINUX is unsafe to use on any filesystem that extends past cylinder
337 1024. This is a fundamental limitation of the standard BIOS API.
339 SYSLINUX will not work (and will refuse to install) on filesystems
340 with a cluster size of more than 16K (typically means a filesystem of
343 I would appreciate hearing of any problems you have with SYSLINUX. I
344 would also like to hear from you if you have successfully used SYSLINUX,
345 especially if you are using it for a distribution.
347 If you are reporting problems, please include all possible information
348 about your system and your BIOS; the vast majority of all problems
349 reported turn out to be BIOS or hardware bugs, and I need as much
350 information as possible in order to diagnose the problems.
352 There is a mailing list for discussion among SYSLINUX users and for
353 announcements of new and test versions. To join, send a message to
354 majordomo@linux.kernel.org with the line:
356 .B subscribe syslinux
358 in the body of the message. The submission address is syslinux@linux.kernel.org.
361 .BR keytab-lilo.pl (8),
366 This manual page is a modified version of the original \fBsyslinux\fP
367 documentation by H. Peter Anvin <hpa@zytor.com>. The conversion to a manpage
368 was made by Arthur Korn <arthur@korn.ch>.