1 .TH SYSLINUX 1 "19 July 2010" "SYSLINUX"
3 syslinux \- install the \s-1SYSLINUX\s+1 bootloader on a FAT filesystem
9 \fBSyslinux\fP is a boot loader for the Linux operating system which
10 operates off an MS-DOS/Windows FAT filesystem. It is intended to
11 simplify first-time installation of Linux, and for creation of rescue
12 and other special-purpose boot disks.
14 In order to create a bootable Linux floppy using \fBSyslinux\fP, prepare a
15 normal MS-DOS formatted floppy. Copy one or more Linux kernel files to
16 it, then execute the command:
18 .B syslinux \-\-install /dev/fd0
20 This will alter the boot sector on the disk and copy a file named
22 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
32 followed by any kernel parameters. The \s-1SYSLINUX\s+1 bootloader
33 does not need to know about the kernel file in advance; all that is
34 required is that it is a file located in the root directory on the
37 \fBSyslinux\fP supports the loading of initial ramdisks (initrd) and the
38 bzImage kernel format.
41 \fB\-i\fP, \fB\-\-install\fP
42 Install \s-1SYSLINUX\s+1 on a new medium, overwriting any previously
45 \fB\-U\fP, \fB\-\-update\fP
46 Install \s-1SYSLINUX\s+1 on a new medium if and only if a version of
47 \s-1SYSLINUX\s+1 is already installed.
49 \fB\-s\fP, \fB\-\-stupid\fP
50 Install a "safe, slow and stupid" version of \s-1SYSLINUX\s+1. This version may
51 work on some very buggy BIOSes on which \s-1SYSLINUX\s+1 would otherwise fail.
52 If you find a machine on which the \-s option is required to make it boot
53 reliably, please send as much info about your machine as you can, and include
56 \fB\-f\fP, \fB\-\-force\fP
57 Force install even if it appears unsafe.
59 \fB\-r\fP, \fB\-\-raid\fB
60 RAID mode. If boot fails, tell the BIOS to boot the next device in
61 the boot sequence (usually the next hard disk) instead of stopping
62 with an error message. This is useful for RAID-1 booting.
64 \fB\-d\fP, \fB\-\-directory\fP \fIsubdirectory\fP
65 Install the \s-1SYSLINUX\s+1 control files in a subdirectory with the
66 specified name (relative to the root directory on the device).
68 \fB\-t\fP, \fB\-\-offset\fP \fIoffset\fP
69 Indicates that the filesystem is at an offset from the base of the
72 \fB\-\-once\fP \fIcommand\fP
73 Declare a boot command to be tried on the first boot only.
75 \fB\-O\fP, \fB\-\-clear-once\fP
76 Clear the boot-once command.
78 \fB\-H\fP, \fB\-\-heads\fP \fIhead-count\fP
79 Override the detected number of heads for the geometry.
81 \fB\-S\fP, \fB\-\-sectors\fP \fIsector-count\fP
82 Override the detected number of sectors for the geometry.
84 \fB\-z\fP, \fB\-\-zipdrive\fP
85 Assume zipdrive geometry (\fI\-\-heads 64 \-\-sectors 32).
87 .SS "Configuration file"
88 All the configurable defaults in \s-1SYSLINUX\s+1 can be changed by putting a
91 in the install directory of the boot disk. This
92 is a text file in either UNIX or DOS format, containing one or more of
93 the following items (case is insensitive for keywords).
95 This list is out of date.
97 In the configuration file blank lines and comment lines beginning
98 with a hash mark (#) are ignored.
100 \fBdefault\fP \fIkernel\fP [ \fIoptions ...\fP ]
101 Sets the default command line. If \fBsyslinux\fP boots automatically,
102 it will act just as if the entries after "default" had been typed in
103 at the "boot:" prompt.
105 If no DEFAULT or UI statement is found, or the configuration file is missing
106 entirely, \s-1SYSLINUX\s+1 drops to the boot: prompt with an error message (if
107 NOESCAPE is set, it stops with a "boot failed" message; this is also the case
108 for PXELINUX if the configuration file is not found.)
110 NOTE: Until \s-1SYSLINUX\s+1 3.85, if no configuration file is present, or no
111 "default" entry is present in the configuration file, the default is
114 Even earlier versions of \s-1SYSLINUX\s+1 used to automatically
115 append the string "auto" to whatever the user specified using
116 the DEFAULT command. As of version 1.54, this is no longer
117 true, as it caused problems when using a shell as a substitute
118 for "init." You may want to include this option manually.
120 .BI append " options ..."
121 Add one or more \fIoptions\fP to the kernel command line. These are added both
122 for automatic and manual boots. The options are added at the very beginning of
123 the kernel command line, usually permitting explicitly entered kernel options
124 to override them. This is the equivalent of the
132 .BI append\ options\ ...
136 Indicates that if \fIlabel\fP is entered as the kernel to boot, \fBsyslinux\fP should
137 instead boot \fIimage\fP, and the specified "append" options should be used
138 instead of the ones specified in the global section of the file (before the
139 first "label" command.) The default for \fIimage\fP is the same as \fIlabel\fP,
140 and if no "append" is given the default is to use the global entry (if any).
141 Use "append -" to use no options at all. Up to 128 "label" entries are
145 Labels are mangled as if they were DOS filenames, and must be unique after
146 mangling. For example, two labels "v2.1.30" and "v2.1.31" will not be
149 The "image" doesn't have to be a Linux kernel; it can be a boot sector or a
150 COMBOOT file (see below.)
153 .BI implicit\ flag_val
154 If \fIflag_val\fP is 0, do not load a kernel image unless it has been
155 explicitly named in a "label" statement. The default is 1.
158 Indicates how long to wait at the "boot:" prompt until booting automatically, in
159 units of 1/10 s. The timeout is cancelled as soon as the user types anything
160 on the keyboard, the assumption being that the user will complete the command
161 line already begun. A timeout of zero will disable the timeout completely,
162 this is also the default. The maximum possible timeout value is 35996;
163 corresponding to just below one hour.
165 \fBserial\fP \fIport\fP [ \fIbaudrate\fP ]
166 Enables a serial port to act as the console. "port" is a number (0 = /dev/ttyS0
167 = COM1, etc.); if "baudrate" is omitted, the baud rate defaults to 9600 bps.
168 The serial parameters are hardcoded to be 8 bits, no parity, 1 stop bit.
170 For this directive to be guaranteed to work properly, it
171 should be the first directive in the configuration file.
174 Load a font in .psf format before displaying any output (except the copyright
175 line, which is output as ldlinux.sys itself is loaded.) \fBsyslinux\fP only loads
176 the font onto the video card; if the .psf file contains a Unicode table it is
177 ignored. This only works on EGA and VGA cards; hopefully it should do nothing
181 Install a simple keyboard map. The keyboard remapper used is \fIvery\fP
182 simplistic (it simply remaps the keycodes received from the BIOS, which means
183 that only the key combinations relevant in the default layout \- usually U.S.
184 English \- can be mapped) but should at least help people with AZERTY keyboard
185 layout and the locations of = and , (two special characters used heavily on the
186 Linux kernel command line.)
189 .BR keytab-lilo.pl (8)
192 distribution can be used to create such keymaps.
194 .BI display\ filename
195 Displays the indicated file on the screen at boot time (before the boot:
196 prompt, if displayed). Please see the section below on DISPLAY files. If the
197 file is missing, this option is simply ignored.
200 If \fIflag_val\fP is 0, display the "boot:" prompt only if the Shift or Alt key
201 is pressed, or Caps Lock or Scroll lock is set (this is the default). If
202 \fIflag_val\fP is 1, always display the "boot:" prompt.
214 Displays the indicated file on the screen when a function key is pressed at the
215 "boot:" prompt. This can be used to implement pre-boot online help (presumably
216 for the kernel command line options.)
219 When using the serial console, press \fI<Ctrl-F><digit>\fP to get to
220 the help screens, e.g. \fI<Ctrl-F>2\fP to get to the f2 screen. For
221 f10-f12, hit \fI<Ctrl-F>A\fP, \fI<Ctrl-F>B\fP, \fI<Ctrl-F>C\fP. For
222 compatiblity with earlier versions, f10 can also be entered as
224 .SS "Display file format"
225 DISPLAY and function-key help files are text files in either DOS or UNIX
226 format (with or without \fI<CR>\fP). In addition, the following special codes
229 \fI<FF>\fP = \fI<Ctrl-L>\fP = ASCII 12
230 Clear the screen, home the cursor. Note that the screen is
231 filled with the current display color.
233 \fI<SI><bg><fg>\fP, \fI<SI>\fP = \fI<Ctrl-O>\fP = ASCII 15
234 Set the display colors to the specified background and foreground colors, where
235 \fI<bg>\fP and \fI<fg>\fP are hex digits, corresponding to the standard PC
239 .ta \w'5 = dark purple 'u
240 0 = black 8 = dark grey
241 1 = dark blue 9 = bright blue
242 2 = dark green a = bright green
243 3 = dark cyan b = bright cyan
244 4 = dark red c = bright red
245 5 = dark purple d = bright purple
247 7 = light grey f = white
250 Picking a bright color (8-f) for the background results in the
251 corresponding dark color (0-7), with the foreground flashing.
253 colors are not visible over the serial console.
255 \fI<CAN>\fPfilename\fI<newline>\fP, \fI<CAN>\fP = \fI<Ctrl-X>\fP = ASCII 24
256 If a VGA display is present, enter graphics mode and display
257 the graphic included in the specified file. The file format
258 is an ad hoc format called LSS16; the included Perl program
259 "ppmtolss16" can be used to produce these images. This Perl
260 program also includes the file format specification.
262 The image is displayed in 640x480 16-color mode. Once in
263 graphics mode, the display attributes (set by \fI<SI>\fP code
264 sequences) work slightly differently: the background color is
265 ignored, and the foreground colors are the 16 colors specified
266 in the image file. For that reason, ppmtolss16 allows you to
267 specify that certain colors should be assigned to specific
270 Color indicies 0 and 7, in particular, should be chosen with
271 care: 0 is the background color, and 7 is the color used for
272 the text printed by \s-1SYSLINUX\s+1 itself.
274 \fI<EM>\fP, \fI<EM>\fP = \fI<Ctrl-U>\fP = ASCII 25
275 If we are currently in graphics mode, return to text mode.
277 \fI<DLE>\fP..\fI<ETB>\fB, \fI<Ctrl-P>\fP..\fI<Ctrl-W>\fP = ASCII 16-23
278 These codes can be used to select which modes to print a
279 certain part of the message file in. Each of these control
280 characters select a specific set of modes (text screen,
281 graphics screen, serial port) for which the output is actually
285 Character Text Graph Serial
286 ------------------------------------------------------
287 <DLE> = <Ctrl-P> = ASCII 16 No No No
288 <DC1> = <Ctrl-Q> = ASCII 17 Yes No No
289 <DC2> = <Ctrl-R> = ASCII 18 No Yes No
290 <DC3> = <Ctrl-S> = ASCII 19 Yes Yes No
291 <DC4> = <Ctrl-T> = ASCII 20 No No Yes
292 <NAK> = <Ctrl-U> = ASCII 21 Yes No Yes
293 <SYN> = <Ctrl-V> = ASCII 22 No Yes Yes
294 <ETB> = <Ctrl-W> = ASCII 23 Yes Yes Yes
299 <DC1>Text mode<DC2>Graphics mode<DC4>Serial port<ETB>
301 ... will actually print out which mode the console is in!
303 \fI<SUB>\fP = \fI<Ctrl-Z>\fP = ASCII 26
304 End of file (DOS convention).
305 .SS Comboot Images and other operating systems
306 This version of \fBsyslinux\fP supports chain loading of other operating
307 systems (such as MS-DOS and its derivatives, including Windows 95/98),
308 as well as COMBOOT-style standalone executables (a subset of DOS .COM
309 files; see separate section below.)
311 Chain loading requires the boot sector of the foreign operating system
312 to be stored in a file in the root directory of the filesystem.
313 Because neither Linux kernels, boot sector images, nor COMBOOT files
314 have reliable magic numbers, \fBsyslinux\fP will look at the file
315 extension. The following extensions are recognised:
318 .ta \w'none or other 'u
319 none or other Linux kernel image
320 CBT COMBOOT image (not runnable from DOS)
321 BSS Boot sector (DOS superblock will be patched in)
323 COM COMBOOT image (runnable from DOS)
326 For filenames given on the command line, \fBsyslinux\fP will search for the
327 file by adding extensions in the order listed above if the plain
328 filename is not found. Filenames in KERNEL statements must be fully
331 A COMBOOT file is a standalone executable in DOS .COM format. They
332 can, among other things, be produced by the Etherboot package by
333 Markus Gutschke and Ken Yap. The following requirements apply for
334 these files to be sufficiently "standalone" for \fBsyslinux\fP to be able to
337 The program must not execute any DOS calls (since there is no
338 DOS), although it may call the BIOS. The only exception is that
339 the program may execute INT 20h (Terminate Program) to return to
340 the \fBsyslinux\fP prompt. Note especially that INT 21h AH=4Ch, INT 21h
341 AH=31h or INT 27h are not supported.
343 Only the fields pspInt20 at offset 00h, pspNextParagraph at offset 02h and
344 pspCommandTail at offset 80h (contains the arguments from the \fBsyslinux\fP command
345 line) in the PSP are supported. All other fields will contain zero.
347 The program must not modify any main memory outside its 64K segment if it
348 returns to \fBsyslinux\fP via INT 20h.
350 \fBSyslinux\fP currently doesn't provide any form of API for the use of
351 COMBOOT files. If there is need, a future version may contain an INT
352 interface to some \fBsyslinux\fP functions; please contact me if you have a
353 need or ideas for such an API.
354 .SS Novice protection
355 \fBSyslinux\fP will attempt to detect if the user is trying to boot on a 286
356 or lower class machine, or a machine with less than 608K of low ("DOS")
357 RAM (which means the Linux boot sequence cannot complete). If so, a
358 message is displayed and the boot sequence aborted. Holding down the
359 Ctrl key while booting disables this feature.
361 The compile time and date of a specific \fBsyslinux\fP version can be obtained
362 by the DOS command "type ldlinux.sys". This is also used as the
363 signature for the LDLINUX.SYS file, which must match the boot sector
365 Any file that \fBsyslinux\fP uses can be marked hidden, system or readonly if
366 so is convenient; \fBsyslinux\fP ignores all file attributes. The \s-1SYSLINUX\s+1
367 installed automatically sets the readonly attribute on LDLINUX.SYS.
369 \s-1SYSLINUX\s+1 can be used to create bootdisk images for El
370 Torito-compatible bootable CD-ROMs. However, it appears that many
371 BIOSes are very buggy when it comes to booting CD-ROMs. Some users
372 have reported that the following steps are helpful in making a CD-ROM
373 that is bootable on the largest possible number of machines:
375 Use the -s (safe, slow and stupid) option to \s-1SYSLINUX\s+1
377 Put the boot image as close to the beginning of the
378 ISO 9660 filesystem as possible.
380 A CD-ROM is so much faster than a floppy that the -s option shouldn't
381 matter from a speed perspective.
383 Of course, you probably want to use ISOLINUX instead. See the
386 .SS Booting from a FAT partition on a hard disk
387 \s-1SYSLINUX\s+1 can boot from a FAT filesystem partition on a hard
388 disk (including FAT32). The installation procedure is identical to the
389 procedure for installing it on a floppy, and should work under either
390 DOS or Linux. To boot from a partition, \s-1SYSLINUX\s+1 needs to be
391 launched from a Master Boot Record or another boot loader, just like
392 DOS itself would. A sample master boot sector (\fBmbr.bin\fP) is
393 included with \s-1SYSLINUX\s+1.
395 I would appreciate hearing of any problems you have with \s-1SYSLINUX\s+1. I
396 would also like to hear from you if you have successfully used \s-1SYSLINUX\s+1,
397 especially if you are using it for a distribution.
399 If you are reporting problems, please include all possible information
400 about your system and your BIOS; the vast majority of all problems
401 reported turn out to be BIOS or hardware bugs, and I need as much
402 information as possible in order to diagnose the problems.
404 There is a mailing list for discussion among \s-1SYSLINUX\s+1 users and for
405 announcements of new and test versions. To join, send a message to
406 majordomo@linux.kernel.org with the line:
408 .B subscribe syslinux
410 in the body of the message. The submission address is syslinux@linux.kernel.org.
413 .BR keytab-lilo.pl (8),
418 This manual page is a modified version of the original \fBsyslinux\fP
419 documentation by H. Peter Anvin <hpa@zytor.com>. The conversion to a manpage
420 was made by Arthur Korn <arthur@korn.ch>.