Command: lastdrive / lastdrivehigh
LASTDRIVE / LASTDRIVEHIGH sets the last letter to which a drive can be
assigned. LASTDRIVE / LASTDRIVEHIGH is a CONFIG.SYS / FDCONFIG.SYS
command.
Syntax:
lastdrive=x
lastdrivehigh=x
where x is the last drive letter that will be available.
Options:
- none -
Comments:
By default, FreeDOS will set x high enough for all floppy drives and
detectable hard drive partitions, plus one for a CD or other drive.
You may want to set x higher if you wish to use more than one drive
that FreeDOS cannot detect automatically (CD drives, zip drives etc.).
Setting x higher than necessary wastes a small amount of memory.
LASTDRIVEHIGH is like LASTDRIVE, except it attempts to load into high
memory first (failing that it should load in conventional memory).
Note: The order you load devices may have a large impact on amount
of free memory available. In general try to load large (in memory
usage) programs into high memory first.
Important: You should have a high memory manager such as HIMEMX,
JEMM386 or JEMMEX installed when using this option.
LASTDRIVE / LASTDRIVEHIGH is a command internal to kernel.sys and needs
no other file in order to work.
Examples:
IN CONFIG.SYS / FDCONFIG.SYS:
COUNTRY=049,858,C:\FREEDOS\BIN\country.sys (german setting)
LASTDRIVE=Z (enables drive letters from A - Z) OR:
LASTDRIVEHIGH=W enables drive letters from A - W)
BUFFERS=20
FILES=40
DOS=HIGH
DOS=UMB
DOSDATA=UMB
DEVICE=C:\FREEDOS\BIN\himemx.exe (or jemm386.exe or jemmex.exe)
See also:
config.sys/fdconfig.sys
buffers
country
dos
dosdata
files
himemx
jemm386
jemmex
lastdrive/lastdrivehigh
shsucdx
Copyright © 2003 Robert Platt, updated 2008 and 2022 by W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.