1.\" $NetBSD: dosboot.8,v 1.4 2023/04/24 13:55:45 manu Exp $ 2.\" 3.\" Copyright (c) 1997 4.\" Matthias Drochner. All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 15.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25.\" SUCH DAMAGE. 26.\" 27.\" @(#)boot_i386.8 8.2 (Berkeley) 4/19/94 28.\" 29.Dd February 17, 2017 30.Dt DOSBOOT 8 x86 31.Os 32.Sh NAME 33.Nm dosboot 34.Nd boot NetBSD/x86 from DOS 35.Sh SYNOPSIS 36.Nm 37.Op Fl u 38.Op Fl c Ar command 39.Op Fl i 40.Op Ar path Op Fl adqsv 41.Sh DESCRIPTION 42.Nm 43is an 44.Tn MS-DOS 45program. 46It is a boot loader for 47.Nx Ns Tn /x86 48designed to permit 49.Nx 50to be booted directly from 51.Tn MS-DOS . 52By default, it boots a file with name 53.Pa NETBSD 54in the current 55.Tn MS-DOS 56directory. 57.Nm 58shares common code with the standard boot loader, 59.Xr x86/boot 8 . 60.Pp 61The recognized options are: 62.Bl -tag -width "-adqsv" -offset 04n 63.It Fl c 64Execute 65.Ar command 66(see below). 67.It Fl i 68Enter interactive mode. 69.Nm 70will present a prompt, allowing input of commands (see below). 71.It Fl u 72Boot from a UFS file system instead of an 73.Tn MS-DOS 74file system. 75.It Ar path 76Specifies the kernel file. 77In 78.Tn MS-DOS 79mode (default) a normal 80.Tn MS-DOS 81filename (with or without drive specification) is accepted. 82In UFS mode (after 83.Fl u 84or after a 85.Ic mode ufs 86command), a path in a 87.Nx 88file system is expected. 89By default, the file is looked up in partition 90.Sq a 91of the first hard disk. 92Another device or partition can be specified 93by prepending a block device name in terms of 94.Nx , 95followed by a colon (see 96.Xr x86/boot 8 97and examples). 98.It Fl 1234abcdmqsvxz 99Flags passed to the kernel, see 100.Xr x86/boot 8 . 101.El 102.Pp 103See 104.Xr x86/boot 8 105for commands accepted after the 106.Fl c 107flag or in interactive mode. 108.Pp 109.Nm 110is also installed in the 111.Xr release 7 112hierarchy, under 113.Pa installation/misc/dosboot.com . 114.Sh FILES 115.Pa /usr/mdec/dosboot.com 116.Sh EXAMPLES 117To boot a 118.Nx 119kernel located on 120.Tn MS-DOS 121drive D, one would issue: 122.Bd -literal -offset indent 123dosboot D:\eNODOS\eNETBSD 124.Ed 125.Pp 126To boot from a 127.Nx 128floppy into single user mode, type e.g.: 129.Bd -literal -offset indent 130dosboot -u fd0a:netbsd -s 131.Ed 132.Sh SEE ALSO 133.Xr release 7 , 134.Xr x86/boot 8 135.Sh HISTORY 136The 137.Nx Ns Tn /x86 138.Nm 139command first appeared in 140.Nx 1.3 . 141.Sh BUGS 142.Nm 143assumes that the processor is in real mode at startup. 144It does not work well in the presence of 145.Tn MS-DOS 146extenders and memory managers. 147.Pp 148.Nm 149does not run directly under 150.Tn Windows 95 . 151.Pp 152In UFS mode, files can only be loaded from devices known to the BIOS. 153The device names do not necessarily comply with the names later 154used by the booted 155.Nx 156kernel. 157.Pp 158In 159.Tn MS-DOS 160mode, no useful boot device specification is passed to 161.Nx . 162It is necessary to have the root device hardwired into the kernel 163configuration or to enter it manually. 164