18fae3551SRodney W. Grimes.\" Copyright (c) 1991, 1993 28fae3551SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 38fae3551SRodney W. Grimes.\" 48fae3551SRodney W. Grimes.\" This code is derived from software written and contributed 58fae3551SRodney W. Grimes.\" to Berkeley by William Jolitz. 68fae3551SRodney W. Grimes.\" 7d16b647eSJoerg Wunsch.\" Almost completely rewritten for FreeBSD 2.1 by Joerg Wunsch. 8d16b647eSJoerg Wunsch.\" 98fae3551SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 108fae3551SRodney W. Grimes.\" modification, are permitted provided that the following conditions 118fae3551SRodney W. Grimes.\" are met: 128fae3551SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 138fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 148fae3551SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 158fae3551SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 168fae3551SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 178fae3551SRodney W. Grimes.\" 3. All advertising materials mentioning features or use of this software 188fae3551SRodney W. Grimes.\" must display the following acknowledgement: 198fae3551SRodney W. Grimes.\" This product includes software developed by the University of 208fae3551SRodney W. Grimes.\" California, Berkeley and its contributors. 218fae3551SRodney W. Grimes.\" 4. Neither the name of the University nor the names of its contributors 228fae3551SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 238fae3551SRodney W. Grimes.\" without specific prior written permission. 248fae3551SRodney W. Grimes.\" 258fae3551SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 268fae3551SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 278fae3551SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 288fae3551SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 298fae3551SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 308fae3551SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 318fae3551SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 328fae3551SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 338fae3551SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 348fae3551SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 358fae3551SRodney W. Grimes.\" SUCH DAMAGE. 368fae3551SRodney W. Grimes.\" 378fae3551SRodney W. Grimes.\" @(#)boot_i386.8 8.2 (Berkeley) 4/19/94 388fae3551SRodney W. Grimes.\" 399448def9SPhilippe Charnier.\" $Id: boot_i386.8,v 1.12 1998/07/09 06:24:21 phk Exp $ 40d16b647eSJoerg Wunsch.\" 418fae3551SRodney W. Grimes.Dd April 19, 1994 428fae3551SRodney W. Grimes.Dt BOOT 8 i386 438fae3551SRodney W. Grimes.Os 448fae3551SRodney W. Grimes.Sh NAME 458fae3551SRodney W. Grimes.Nm boot 468fae3551SRodney W. Grimes.Nd 478fae3551SRodney W. Grimessystem bootstrapping procedures 488fae3551SRodney W. Grimes.Sh DESCRIPTION 498fae3551SRodney W. Grimes.Sy Power fail and crash recovery. 508fae3551SRodney W. GrimesNormally, the system will reboot itself at power-up or after crashes. 518fae3551SRodney W. GrimesAn automatic consistency check of the file systems will be performed, 528fae3551SRodney W. Grimesand unless this fails, the system will resume multi-user operations. 538fae3551SRodney W. Grimes.Pp 548fae3551SRodney W. Grimes.Sy Cold starts. 55d16b647eSJoerg WunschMost 386 568fae3551SRodney W. Grimes.Tn "PC AT" 57d16b647eSJoerg Wunschclones attempt to boot the floppy disk drive 0 (otherwise known as 58d16b647eSJoerg Wunschdrive A:) first, and failing that, attempt to boot the hard disk 59c65c062fSBruce Evansdrive 0 (otherwise known as drive C:, 60c65c062fSBruce Evansor (confusingly) hard disk drive 1, or drive 0x80 in the BIOS). 61c65c062fSBruce EvansSome BIOSes let you change this default sequence or may include a CD-ROM 62c65c062fSBruce Evansdrive as a boot device. 63c65c062fSBruce EvansAfter the boot blocks have been loaded, 64c65c062fSBruce Evansyou should see a prompt similar to the following: 65c65c062fSBruce Evans.Bd -literal 66c65c062fSBruce Evans>> FreeBSD BOOT @ 0x10000: 640/7168 k of memory, internal console 67c65c062fSBruce EvansBoot default: 0:wd(0,a)kernel 68c65c062fSBruce Evans 69c65c062fSBruce Evansboot: 70c65c062fSBruce Evans.Ed 71c65c062fSBruce Evans.Pp 72c65c062fSBruce Evans(You may see some tips printed on the screen too.) 73c65c062fSBruce Evans.Pp 74c65c062fSBruce EvansThe automatic boot will attempt to load 75d16b647eSJoerg Wunsch.Pa /kernel 76d16b647eSJoerg Wunschfrom partition 77d16b647eSJoerg Wunsch.Ql a 78d16b647eSJoerg Wunschof either the floppy or the hard disk. 79d16b647eSJoerg WunschThis boot may be aborted by typing any character on the keyboard 80d16b647eSJoerg Wunschat the 81c65c062fSBruce Evans.Ql boot: 82d16b647eSJoerg Wunschprompt. At this time, the following input will be accepted: 83c65c062fSBruce Evans.Bl -tag -width 10x 84d16b647eSJoerg Wunsch.It \&? 85d16b647eSJoerg WunschGive a short listing of the files in the root directory of the default 86d16b647eSJoerg Wunschboot device, as a hint about available boot files. 87862a7e9cSPoul-Henning Kamp.It Op bios_drive:interface(unit,part) Op filename Op Fl abCcDdghPrsv 88d16b647eSJoerg WunschSpecify boot file and flags. 89c65c062fSBruce Evans.Bl -tag -width 10x -compact 90c65c062fSBruce Evans.It bios_drive 91c65c062fSBruce EvansThe drive number as recognized by the BIOS. 92c65c062fSBruce Evans0 for the first drive, 1 for the second drive, etc. 93c65c062fSBruce Evans.It interface 94c65c062fSBruce EvansThe type of controller to boot from. Note that the controller is required 95d16b647eSJoerg Wunschto have BIOS support since the BIOS services are used to load the 96d16b647eSJoerg Wunschboot file image. 978fae3551SRodney W. Grimes.Pp 98c65c062fSBruce EvansThe supported interfaces are: 99c65c062fSBruce Evans.Bl -tag -width "wdXX" -compact 100d16b647eSJoerg Wunsch.It wd 101d16b647eSJoerg WunschST506, IDE, ESDI, RLL disks on a WD100[2367] or lookalike 1028fae3551SRodney W. Grimescontroller 103d16b647eSJoerg Wunsch.It fd 104d16b647eSJoerg Wunsch5 1/4" or 3 1/2" High density floppies 105d16b647eSJoerg Wunsch.It sd 106d16b647eSJoerg WunschSCSI disk on any supported SCSI controller 107c65c062fSBruce Evans.\".It cd 108c65c062fSBruce Evans.\"boot from CDROM 109d16b647eSJoerg Wunsch.El 110d16b647eSJoerg Wunsch.It unit 111c65c062fSBruce EvansThe unit number of the drive on the interface being used. 112c65c062fSBruce Evans0 for the first drive, 1 for the second drive, etc. 113d16b647eSJoerg Wunsch.It part 114d16b647eSJoerg WunschThe partition letter inside the BSD portion of the disk. See 115d16b647eSJoerg Wunsch.Xr disklabel 8 . 116d16b647eSJoerg WunschBy convention, only partition 117d16b647eSJoerg Wunsch.Ql a 118d16b647eSJoerg Wunschcontains a bootable image. If sliced disks are used 119d16b647eSJoerg Wunsch.Pq Dq fdisk partitions , 120d16b647eSJoerg Wunschonly the first BSD slice can be used to boot from. The partition 121c65c062fSBruce Evansletter always refers to the first slice. 122c65c062fSBruce Evans.It filename 123c65c062fSBruce EvansThe pathname of the file to boot (relative to the root directory 124c65c062fSBruce Evanson the specified partition). Defaults to 125c65c062fSBruce Evans.Pa kernel . 126d16b647eSJoerg WunschSymbolic links are not supported (hard links are). 127862a7e9cSPoul-Henning Kamp.It Fl abcCdDghPrsv 128d16b647eSJoerg WunschBoot flags: 129c65c062fSBruce Evans.Bl -tag -width "-CXX" -compact 130d16b647eSJoerg Wunsch.It Fl a 131c65c062fSBruce Evansduring kernel initialization, 132c65c062fSBruce Evansask for the device to mount as as the root file system. 133862a7e9cSPoul-Henning Kamp.It Fl b 1349448def9SPhilippe Charnierput the screen in 800x600x4 mode (Vesa mode 0x102). 135862a7e9cSPoul-Henning KampThis is useful on laptops whose graphics 136862a7e9cSPoul-Henning Kampchips are not supported by XFree86 by the XF86_VGA16 server. 137862a7e9cSPoul-Henning KampYou need to have a 8x16 font compiled into syscons or loaded as 138862a7e9cSPoul-Henning Kamppart of boot-strap if you actually want to see anything on 139862a7e9cSPoul-Henning Kampthe screen. 140c65c062fSBruce Evans.It Fl C 141c65c062fSBruce Evansboot from CDROM. 142d16b647eSJoerg Wunsch.It Fl c 143d16b647eSJoerg Wunschrun UserConfig to modify hardware parameters for the loaded 1440c473d52SMike Smithkernel. If the kernel was built with the USERCONFIG_BOOT option, 1450c473d52SMike Smithremain in UserConfig regardless of any 1460c473d52SMike Smith.Ic quit 1470c473d52SMike Smithcommands present in the script. 148c65c062fSBruce Evans.It Fl D 149c65c062fSBruce Evanstoggle single and dual console configurations. In the single 150c65c062fSBruce Evansconfiguration the console will be either the internal display 151c65c062fSBruce Evansor the serial port, depending on the state of the 152c65c062fSBruce Evans.Fl h 153c65c062fSBruce Evansoption below. In the dual console configuration, 154c65c062fSBruce Evansboth the internal display and the serial port will become the console 155c65c062fSBruce Evansat the same time, regardless of the state of the 156c65c062fSBruce Evans.Fl h 157c65c062fSBruce Evansoption. However, the dual console configuration takes effect only during 158c65c062fSBruce Evansthe boot prompt. Once the kernel is loaded, the console specified 159c65c062fSBruce Evansby the 160c65c062fSBruce Evans.Fl h 161c65c062fSBruce Evansoption becomes the only console. 162d16b647eSJoerg Wunsch.It Fl d 163d16b647eSJoerg Wunschenter the DDB kernel debugger 164d16b647eSJoerg Wunsch.Pq see Xr ddb 4 165048362aaSDaniel O'Callaghanas early as possible in kernel initialization. 166c65c062fSBruce Evans.It Fl g 167c65c062fSBruce Evansuse the GDB remote debugging protocol. 168d16b647eSJoerg Wunsch.It Fl h 169c65c062fSBruce Evanstoggle internal and serial consoles. You can use this to switch 170c65c062fSBruce Evansconsole devices. For instance, if you boot from the internal console, 171c65c062fSBruce Evansyou can use the 172c65c062fSBruce Evans.Fl h 173c65c062fSBruce Evansoption to force the kernel to use the serial port as its 174c65c062fSBruce Evansconsole device. Alternatively, if you boot from the serial port, 175c65c062fSBruce Evansyou can use this option to force the kernel to use the internal display 17606c53421SPoul-Henning Kampas the console instead. This option has no effect if the kernel was 17706c53421SPoul-Henning Kampcompiled with 17806c53421SPoul-Henning Kamp.Em options COMCONSOLE . 179c65c062fSBruce Evans.It Fl P 180c65c062fSBruce Evansprobe the keyboard. If no keyboard is found, the 181c65c062fSBruce Evans.Fl D 182c65c062fSBruce Evansand 183c65c062fSBruce Evans.Fl h 184c65c062fSBruce Evansoptions are automatically set. 185d16b647eSJoerg Wunsch.It Fl r 186c65c062fSBruce Evansuse the statically configured default for the device containing the 187c65c062fSBruce Evansroot file system 188c65c062fSBruce Evans.Pq see Xr config 8 . 189c65c062fSBruce EvansNormally, the root file system is on the device 190c65c062fSBruce Evansthat the kernel was loaded from. 191d16b647eSJoerg Wunsch.It Fl s 192d16b647eSJoerg Wunschboot into single-user mode; if the console is marked as 193d16b647eSJoerg Wunsch.Dq insecure 194d16b647eSJoerg Wunsch.Pq see Xr ttys 5 , 1959448def9SPhilippe Charnierthe root password must be entered. 196d16b647eSJoerg Wunsch.It Fl v 197c65c062fSBruce Evansbe verbose during device probing (and later). 198d16b647eSJoerg Wunsch.El 199d16b647eSJoerg Wunsch.El 200d16b647eSJoerg Wunsch.El 201c65c062fSBruce Evans.Pp 202c65c062fSBruce EvansYou may put a BIOS drive number, a controller type, a unit number, 203c65c062fSBruce Evansa partition, a kernel file name and the 204862a7e9cSPoul-Henning Kamp.Fl b , 205c65c062fSBruce Evans.Fl D, 206c65c062fSBruce Evans.Fl h 207c65c062fSBruce Evansor 208c65c062fSBruce Evans.Fl P 209c65c062fSBruce Evansoptions in 210c65c062fSBruce Evans.Pa /boot.config 211c65c062fSBruce Evansto set defaults. Write them in one line just as you type at the 212c65c062fSBruce Evans.Ql boot: 213c65c062fSBruce Evansprompt. 2148fae3551SRodney W. Grimes.Sh FILES 215c65c062fSBruce Evans.Bl -tag -width /kernel.old.config -compact 216c65c062fSBruce Evans.It Pa /boot.config 217c65c062fSBruce Evansparameters for the boot loader (optional) 218c65c062fSBruce Evans.It Pa /boot.help 219c65c062fSBruce Evanshelp messages 220b3bfc719SDavid Greenman.It Pa /kernel 221c65c062fSBruce Evansdefault kernel 222c65c062fSBruce Evans.It Pa /kernel.config 223c65c062fSBruce Evansparameters for default kernel (optional) 224c65c062fSBruce Evans.It Pa /kernel.old 225c65c062fSBruce Evanstypical non-default kernel (optional) 226c65c062fSBruce Evans.It Pa /kernel.old.config 227c65c062fSBruce Evansparameters for non-default kernel (optional) 228d16b647eSJoerg Wunsch.\" .It Pa /boot 229d16b647eSJoerg Wunsch.\" system bootstrap 2308fae3551SRodney W. Grimes.El 2318fae3551SRodney W. Grimes.Sh SEE ALSO 232d16b647eSJoerg Wunsch.Xr ddb 4 , 233d16b647eSJoerg Wunsch.Xr ttys 5 , 234c65c062fSBruce Evans.Xr config 8 , 235af202156SWolfram Schneider.Xr disklabel 8 , 2368fae3551SRodney W. Grimes.Xr halt 8 , 2378fae3551SRodney W. Grimes.Xr reboot 8 , 238af202156SWolfram Schneider.Xr shutdown 8 2398fae3551SRodney W. Grimes.Sh BUGS 2408fae3551SRodney W. GrimesThe disklabel format used by this version of 2418fae3551SRodney W. Grimes.Bx 2428fae3551SRodney W. Grimesis quite 2438fae3551SRodney W. Grimesdifferent from that of other architectures. 244d16b647eSJoerg Wunsch.Pp 245862a7e9cSPoul-Henning KampThe kernel's output is invisible (nothing but the cursor can be seen) when 246862a7e9cSPoul-Henning Kamp.Fl b 247862a7e9cSPoul-Henning Kampis used unless a font has been compiled into the kernel. 248862a7e9cSPoul-Henning Kamp.Pp 249d16b647eSJoerg WunschThe boot flags are not very self-explanatory, and the alphabet has 250d16b647eSJoerg Wunschtoo few characters to implement every potentially useful boot option. 251