a NETBSD in the current .Tn MS-DOS directory. .Nm shares common code with the standard boot loader, .Xr x86/boot 8 .
p The recognized options are: l -tag -width "-adqsv" -offset 04n t Fl c Execute .Ar command (see below). t Fl i Enter interactive mode. .Nm will present a prompt, allowing input of commands (see below). t Fl u Boot from a UFS file system instead of an .Tn MS-DOS file system. t Ar path Specifies the kernel file. In .Tn MS-DOS mode (default) a normal .Tn MS-DOS filename (with or without drive specification) is accepted. In UFS mode (after .Fl u or after a c mode ufs command), a path in a .Nx file system is expected. By default, the file is looked up in partition .Sq a of the first hard disk. Another device or partition can be specified by prepending a block device name in terms of .Nx , followed by a colon (see .Xr x86/boot 8 and examples). t Fl adqsv Flags passed to the kernel, see .Xr x86/boot 8 . .El
p
The commands accepted after the
.Fl c
flag or in interactive mode are:
NOTE: some of this text is duplicated in the MI boot.8
and in other x86-specific *boot.8 files;
please try to keep all relevant files synchronized.
l -tag -width 04n -offset 04n t Ic boot Oo Va device : Oc Ns Oo Va filename Oc Oo Fl 1234abcdmqsvxz Oc Boot
.Nx .
See
.Cm boot
in
.Xr x86/boot 8
for full details.
t Ic dev Op device Set the default device and partition for subsequent file system operations.
Without an operand, print the current setting.
This setting doesn't apply to
.Tn MS-DOS
mode.
t Ic help Print an overview about commands and arguments.
t Ic ls Op Pa path Print a directory listing of
a path , containing inode number, filename and file type. This command works in UFS mode only.
a path can contain a device specification. t Ic mode Va fstype Switch file system type; .Va fstype should be one of .Ar dos or .Ar ufs . t Ic quit Leave the .Nm program and exit to .Tn MS-DOS . .El
p .Nm is also installed in the .Xr release 7 hierarchy, under
a installation/misc/dosboot.com . .Sh FILES
a /usr/mdec/dosboot.com .Sh EXAMPLES To boot a .Nx kernel located on .Tn MS-DOS drive D, one would issue: d -literal -offset indent dosboot D:\eNODOS\eNETBSD .Ed
p To boot from a .Nx floppy into single user mode, type e.g.: d -literal -offset indent dosboot -u fd0a:netbsd -s .Ed .Sh SEE ALSO .Xr release 7 , .Xr x86/boot 8 .Sh HISTORY The .Nx Ns Tn /x86 .Nm command first appeared in .Nx 1.3 . .Sh BUGS .Nm assumes that the processor is in real mode at startup. It does not work well in the presence of .Tn MS-DOS extenders and memory managers.
p .Nm does not run directly under .Tn Windows 95 .
p In UFS mode, files can only be loaded from devices known to the BIOS. The device names do not necessarily comply with the names later used by the booted .Nx kernel.
p In .Tn MS-DOS mode, no useful boot device specification is passed to .Nx . It is necessary to have the root device hardwired into the kernel configuration or to enter it manually.