Command: sys / sys config
SYS makes a floppy disk or hard disk or another writable medium
bootable. SYS CONFIG configures the FreeDOS KERNEL.
Syntax:
SYS [source] drive [bootsect [BOTH]] [BOOTONLY] [/K name] [/L segm]
SYS [/?]
source = A:,B:,C:\KERNEL\BIN\,etc., The (optional) location of
the system files. If not given, the current directory
is assumed
drive = A,B,C etc. The drive to make bootable.
bootsect The name of file, to which the 512-byte boot sector image
will be written. (The drive's real boot sector won't be
written to unless BOTH is used.)
SYS CONFIG [drive][path]kernel.sys [option=value...]
SYS CONFIG [/help][/?]
Options:
SYS OPTIONS:
/BOTH The new boot sector will be written to the image file
and to the actual drive boot sector.
/BOOTONLY The boot sector (or image) will be updated, but the KERNEL
and COMMAND.COM will not be copied to the destination.
/UPDATE Copy KERNEL and update boot sector (do *not* copy shell).
/OEM Indicates boot sector, filenames, and load segment to use.
/OEM:FD Use FreeDOS compatible settings.
/OEM:EDR Use Enhanced DR DOS 7+ compatible settings.
/OEM:DR Use DR DOS 7+ compatible settings.
/OEM:PC Use PC-DOS compatible settings.
/OEM:MS Use MS-DOS compatible settings.
/OEM:W9x Use MS Win9x DOS compatible settings.
default is /OEM[:AUTO], select DOS based on existing files.
/K name Gives the filename of the kernel file to be copied. This
option is only required when the kernel is not called
"kernel.sys"
/L segm The load segment, in hexadecimal, to use. The default is 60.
/B btdrv : hex BIOS # of boot drive set in bs, 0=A:, 80=1st hd,...
/FORCEDRV: Force use of drive # set in bs instead of BIOS boot value
/NOBAKBS : Skips copying boot sector to backup bs, FAT32 only else
ignored
/? Shows the help.
SYS CONFIG OPTIONS:
/help Shows the help.
/? Shows the help.
Current options are:
DLASORT=0|1
SHOWDRIVEASSIGNMENT=0|1
SKIPCONFIGSECONDS=#
FORCELBA=0|1
GLOBALENABLELBASUPPORT=0|1
BootHarddiskSeconds=0|seconds to wait
Comments:
SYS:
The SYS command creates a bootsector on sector 0 of the diskette or
harddrive. Then it copies KERNEL.SYS and COMMAND.COM to the medium.
After this the computer is able to boot FreeDOS from this medium.
SYS CONFIG:
If no options are given, the current values are shown. /help or /?
displays the usage information. [drive][path]kernel.sys specifies the
kernel file to modify, if not given defaults to KERNEL.SYS.
Option=value ... specifies one or more options and the values to
set each to. If an option is given multiple times, the value set will
be the rightmost one.
Examples:
sys c: (from a diskette; the sys command and COMMAND.COM and KERNEL.SYS
should be on the diskette, after the execution the HD will be
bootable)
sys a: (from a HD or CD; the sys command and COMMAND.COM and KERNEL.SYS
should be on the source drive, after the execution the diskette
will be bootable)
See also:
command.com
format
fdisk
kernel
kernel-devel
label
vol
Copyright © 1998 Jim Hall, updated 2007 by W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.