root/man/syslinux.1

Revision da8f5b3b344723050ccaa0edd5dc62dc9a950d58, 16.8 KB (checked in by H. Peter Anvin <hpa@…>, 18 months ago)

man: remove long-since-obsolete note about name mangling

We haven't mangled label names for a very long time...

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