1.\" $OpenBSD: cdboot.8,v 1.8 2012/10/29 17:25:29 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: October 29 2012 $ 29.Dt CDBOOT 8 i386 30.Os 31.Sh NAME 32.Nm cdboot 33.Nd 34i386-specific second-stage CD-specific bootstrap 35.Sh DESCRIPTION 36.Nm 37is a modified version of the i386 second-stage bootstrap program, 38.Xr boot 8 , 39configured to be run by the 40.Ox 41El Torito CD-ROM boot sector 42.Pa cdbr . 43.Nm 44will look for an 45.Pa /etc/boot.conf 46configuration 47file on the CD-ROM. 48If it finds one, it processes the commands within it. 49.Pa boot.conf 50processing can be skipped by holding down either Control key as 51.Nm 52starts. 53.Pp 54.Nm 55then sits in a loop, 56processing commands given by the user. 57It accepts all the commands accepted by 58.Xr boot 8 . 59.Pp 60If no commands are given for a short time, 61.Nm 62will then attempt to load an 63.Ox 64kernel from the CD. 65It first looks for the install kernel 66.Pa bsd.rd 67in the standard i386 release directory 68(e.g.\& 69.Pa /3.6/i386/bsd.rd ) , 70then for 71.Pa /bsd . 72It may be told to boot an alternative kernel, 73either by commands in the 74.Pa boot.conf 75file, 76or by commands typed by the user at the 77.Ic boot> 78prompt. 79.Sh FILES 80.Bl -tag -width /usr/mdec/cdbootxx -compact 81.It Pa /usr/mdec/cdboot 82CD-specific second-stage bootstrap 83.It Pa /etc/boot.conf 84.Nm 85configuration file (read from CD) 86.El 87.Sh EXAMPLES 88Boot the install kernel: 89.Pp 90.Dl boot> bsd.rd 91.Sh SEE ALSO 92.Xr boot 8 , 93.Xr boot_i386 8 , 94.Xr mkhybrid 8 95.Sh STANDARDS 96.Rs 97.%A Curtis E. Stevens 98.%A Stan Merkin 99.%D January 25, 1995 100.%N Version 1.0 101.%T "El Torito Bootable CD-ROM Format Specification" 102.Re 103.Sh HISTORY 104The 105.Nm 106program first appeared in 107.Ox 3.6 . 108.Sh CAVEATS 109By default, many CD creation programs restrict filenames to 110the MS-DOS 8.3 format. 111Unless this is changed, 112.Nm 113will not be able to read its 114.Xr boot.conf 5 115file. 116For example, with 117.Xr mkhybrid 8 118the 119.Fl l 120option should be specified. 121.Sh BUGS 122The 123.Ic ls 124command does not work on ISO 9660 (cd9660) filesystems, 125which are used on most CDs. 126