xref: /openbsd/sys/arch/i386/stand/cdboot/cdboot.8 (revision 73471bf0)
1.\"	$OpenBSD: cdboot.8,v 1.10 2016/03/30 06:58:06 jmc Exp $
2.\" Copyright (c) 2004 Tom Cosgrove
3.\" Copyright (c) 2003 Matthias Drochner
4.\" Copyright (c) 1999 Doug White
5.\" All rights reserved.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions
9.\" are met:
10.\" 1. Redistributions of source code must retain the above copyright
11.\"    notice, this list of conditions and the following disclaimer.
12.\" 2. Redistributions in binary form must reproduce the above copyright
13.\"    notice, this list of conditions and the following disclaimer in the
14.\"    documentation and/or other materials provided with the distribution.
15.\"
16.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.Dd $Mdocdate: March 30 2016 $
29.Dt CDBOOT 8 i386
30.Os
31.Sh NAME
32.Nm cdboot
33.Nd i386-specific second-stage CD-specific bootstrap
34.Sh DESCRIPTION
35.Nm
36is a modified version of the i386 second-stage bootstrap program,
37.Xr boot 8 ,
38configured to be run by the
39.Ox
40El Torito CD-ROM boot sector
41.Pa cdbr .
42.Nm
43will look for an
44.Pa /etc/boot.conf
45configuration
46file on the CD-ROM.
47If it finds one, it processes the commands within it.
48.Pa boot.conf
49processing can be skipped by holding down either Control key as
50.Nm
51starts.
52.Pp
53.Nm
54then sits in a loop,
55processing commands given by the user.
56It accepts all the commands accepted by
57.Xr boot 8 .
58.Pp
59If no commands are given for a short time,
60.Nm
61will then attempt to load an
62.Ox
63kernel from the CD.
64It first looks for the install kernel
65.Pa bsd.rd
66in the standard i386 release directory
67(e.g.\&
68.Pa /3.6/i386/bsd.rd ) ,
69then for
70.Pa /bsd .
71It may be told to boot an alternative kernel,
72either by commands in the
73.Pa boot.conf
74file,
75or by commands typed by the user at the
76.Ic boot>
77prompt.
78.Sh FILES
79.Bl -tag -width /usr/mdec/cdbootxx -compact
80.It Pa /usr/mdec/cdboot
81CD-specific second-stage bootstrap
82.It Pa /etc/boot.conf
83.Nm
84configuration file (read from CD)
85.El
86.Sh EXAMPLES
87Boot the install kernel:
88.Pp
89.Dl boot> bsd.rd
90.Sh SEE ALSO
91.Xr boot 8 ,
92.Xr boot_i386 8 ,
93.Xr mkhybrid 8
94.Sh STANDARDS
95.Rs
96.%A Curtis E. Stevens
97.%A Stan Merkin
98.%D January 25, 1995
99.%N Version 1.0
100.%T "El Torito Bootable CD-ROM Format Specification"
101.Re
102.Sh HISTORY
103The
104.Nm
105program first appeared in
106.Ox 3.6 .
107.Sh CAVEATS
108By default, many CD creation programs restrict filenames to
109the MS-DOS 8.3 format.
110Unless this is changed,
111.Nm
112will not be able to read its
113.Xr boot.conf 8
114file.
115For example, with
116.Xr mkhybrid 8
117the
118.Fl l
119option should be specified.
120.Sh BUGS
121The
122.Ic ls
123command does not work on ISO 9660 (cd9660) filesystems,
124which are used on most CDs.
125