Storage¶
How DOS uses drives¶
DOS identifies storage devices by drive letters, not by names or mount points. Each drive letter (A: through Z:) maps to exactly one storage device or partition. Unlike modern operating systems, there is no single unified file tree — each drive is its own independent root.
The letter assignments follow a fixed convention:
-
A: and B: are reserved for floppy disk drives. If only one physical floppy drive is present, B: acts as a “phantom” mapped to the same drive — DOS prompts you to swap disks when you access it.
-
C: is the first hard disk partition. A single physical hard disk can be divided into multiple partitions, each getting its own letter (C:, D:, E:, etc.).
-
The first available letter after the hard disk partitions is typically assigned to the CD-ROM drive. On a system with a single hard disk partition, the CD-ROM is usually D:; with two partitions, it becomes E:, and so on.
In DOSBox Staging, you assign drive letters yourself when you mount directories or disk images, so you have full control over the layout. The conventions above are worth following because many games assume them — especially C: for the hard disk and D: for the CD-ROM.
DOS storage media¶
If you grew up with modern computers where everything lives on a single internal SSD, the DOS storage landscape might seem alien. DOS PCs used three types of storage media, each with its own drive letter.
Floppy disks¶
Floppy disks (drives A: and B:) were the primary way software was distributed. Games came on one or more floppies and usually had to be installed to the hard disk before you could play — unlike a console cartridge, you couldn’t just insert a floppy and go. Two form factors existed: the flexible 5.25-inch disk (1981–late 1980s) and the sturdier 3.5-inch disk (late 1980s–mid 1990s). See Floppy disk formats for the full list of supported sizes.
Hard disks¶
Hard disks (drive C: and up) held the operating system and installed games. Capacities ranged from 10–20 MB in 1985 to over 1 GB by the mid-1990s. The DOS FAT16 filesystem limits individual partitions to 2 GB — larger disks needed multiple partitions.
CD-ROMs¶
CD-ROMS (typically drive D:) appeared in the early 1990s and became mainstream by 1994–1995. A single CD held 650–700 MB — roughly 500 floppy disks’ worth. This enabled full-motion video, voice acting, and CD-quality audio soundtracks. Some games ran entirely from the CD; others installed partially to the hard disk.
DOSBox Staging drives¶
DOSBox Staging provides two special drives in addition to whatever you mount:
-
Z: contains the built-in programs and commands (MOUNT, CONFIG, MIXER, etc.). It is always present and always in the PATH. See DOS commands & programs for the full list.
-
Y: contains a small set of bundled third-party utilities (DEBUG, DELTREE, XCOPY). It is automounted by default with its
Y:\DOSdirectory added to the PATH.
Automounting¶
The easiest way to set up drives is automounting. Place your game files in a
drives/ directory structure, and DOSBox Staging mounts them automatically on
startup. The
Getting Started guide
demonstrates this approach step by step.
Directory structure¶
Create lowercase single-letter subdirectories under drives/ to mount as DOS
drives:
The drives/ folder is looked up relative to the current working directory or
from the built-in resources directory.
Floppy and CD-ROM images¶
Automounting also supports disk images for floppy and CD-ROM drives:
- Place IMG or IMA floppy images in
drives/a/ordrives/b/to mount them as floppy drives. - Place ISO, CUE/BIN, or MDS/MDF CD-ROM images in any drive directory (e.g.,
drives/d/) to mount them as CD-ROM drives.
When multiple images are placed in the same directory, they are all mounted and you can switch between them during gameplay — see Disk swapping below.
When image files are detected, DOSBox automatically uses the appropriate mount type.
Drive configuration files¶
Each drive directory can have an accompanying configuration file named
[letter].conf (e.g., c.conf) placed alongside the directory. Example:
Available options:
| Option | Values | Description |
|---|---|---|
type |
dir, overlay, floppy, cdrom, iso |
Drive type. iso is an alias for cdrom. |
label |
any string | Custom volume label. |
path |
PATH specification | Extend the DOS PATH (e.g., path = %path%;c:\tools). |
override_drive |
single letter (a–y) | Mount to a different drive letter. |
readonly |
on, off |
Mount as read-only. |
verbose |
on, off |
Show mount command output during startup. |
Disk swapping¶
Many DOS games shipped on multiple floppy disks or CDs. During installation or gameplay, the game would prompt you to remove one disk and insert the next (e.g., “Please insert Disk 2”). On a real PC you would physically eject the disk and slide in the next one — in DOSBox Staging, you press Ctrl+F4 / Cmd+F4 instead. The currently active image is printed to the log after each swap.
Swapping with automounting¶
Place multiple disk images in the same drive directory and DOSBox Staging mounts them all automatically. For example, for a three-disk floppy game:
When the game prompts you to insert the next disk, press Ctrl+F4 / Cmd+F4 to cycle to the next image.
The same approach works for multi-CD games — place all your CD images in
drives/d/ and swap between them with the hotkey.
Swapping with the MOUNT command¶
You can also mount multiple images to the same drive letter manually:
Wildcard patterns are supported too:
Press Ctrl+F4 / Cmd+F4 to cycle between them during gameplay.
Swapping booted disk images¶
The boot command also accepts multiple floppy images:
The same Ctrl+F4 / Cmd+F4 hotkey swaps between them. See
Booting from images for more on the boot command.
Using multiple CD-ROM drives¶
Some games supported multiple physical CD-ROM drives instead of swapping. Rather than mounting all CDs to one drive letter, you can mount each CD to its own consecutive drive letter:
Note
CD-ROM drive letters must be continuous — D:, E:, F:, G: works, but D:, F:, H: does not.
This also works with automounting — place each CD image in its own drive directory:
This approach is needed for games that expect multiple CD drives to be available simultaneously, such as Under a Killing Moon (1994) which shipped on four CDs and could run with all four drives mounted at once.
Tip
Name your image files with sequential numbers (e.g., disk01.img,
disk02.img) so they sort into the correct order. Images are sorted
using natural ordering, so img10 comes after img9, not after img1.
When the game prompts you to swap, press the hotkey before confirming
the in-game prompt. Run MOUNT with no arguments to see all mounted
drives and their images — the currently active image is listed first.
Notable multi-disk games
- Wing Commander (1990) — multiple 5.25” or 3.5” floppies
- The Secret of Monkey Island (1990) — 4 or 8 floppies depending on disk size
- Indiana Jones and the Fate of Atlantis (1992) — 11 HD floppies
- Day of the Tentacle (1993) — 6 HD floppies
- Sam & Max Hit the Road (1993) — 6 HD floppies
- Phantasmagoria (1995) — 7 CDs
- The Beast Within: A Gabriel Knight Mystery (1995) — 6 CDs
- Wing Commander IV: The Price of Freedom (1996) — 6 CDs
- Riven: The Sequel to Myst (1997) — 5 CDs
- Baldur’s Gate (1998) — 5 CDs
Manual mounting¶
For more control, use the MOUNT command directly, either at the DOS prompt
or in the [autoexec] section of your config file. Type MOUNT /? at the
DOS prompt for the full reference.
Note
IMGMOUNT is deprecated. Use MOUNT for both directories and disk
images.
Mounting directories¶
This mounts a host directory as a DOS hard disk drive. This is the most common way to make game files accessible to DOS.
Warning
Some games check for free disk space and refuse to install if there isn’t
enough. Directory-mounted hard disks report approximately 250 MB of free
space by default. Use the -freesize flag to adjust it (in MB for hard
disks, KB for floppies):
Warning
Some games — particularly those with copy protection — check the
volume label of the drive. Use the -label flag to set it explicitly:
Overlay mounts¶
An overlay mount adds a write layer on top of an existing drive. Modified files are stored in the overlay directory on the host, leaving the original drive data unchanged. This is useful for keeping a clean copy of game files while still allowing the game to save data:
Mounting floppy images¶
Use -t floppy if auto-detection picks the wrong type. Supported floppy
image formats: .img, .ima (raw sector images).
Floppy disk formats¶
The 5.25-inch disk was a flexible magnetic disk visible through a slot in its cardboard sleeve. The 3.5-inch disk housed the magnetic medium in a rigid plastic shell with a spring-loaded metal shutter. Capacities grew as recording density improved: DD (Double Density), HD (High Density), and ED (Extra Density) describe the magnetic coating and recording method. Some software distributors squeezed extra capacity using non-standard formats like Microsoft’s DMF (Distribution Media Format) at 1.68 MB or IBM’s XDF at 1.84 MB.
DOSBox Staging supports all standard PC floppy formats and several extended formats. The format is detected automatically from the image file size.
| Size | Type | Capacity | Notes |
|---|---|---|---|
| 5.25” | SS/DD | 160 KB | Original IBM PC |
| 5.25” | SS/DD | 180 KB | 9 sectors/track variant |
| 5.25” | SS/DD | 200 KB | 10 sectors/track ¹ |
| 5.25” | DS/DD | 320 KB | Double-sided |
| 5.25” | DS/DD | 360 KB | Standard 5.25” DD |
| 5.25” | DS/DD | 400 KB | 10 sectors/track ¹ |
| 5.25” | DS/HD | 1.2 MB | Standard 5.25” HD |
| 5.25” | DS/HD | 1.52 MB | IBM XDF ² |
| 3.5” | DS/DD | 720 KB | Standard 3.5” DD |
| 3.5” | DS/HD | 1.44 MB | Standard 3.5” HD |
| 3.5” | DS/HD | 1.68 MB | Microsoft DMF ³ |
| 3.5” | DS/HD | 1.72 MB | Microsoft DMF ³ (82-track) |
| 3.5” | DS/HD | 1.84 MB | IBM XDF ² |
| 3.5” | DS/ED | 2.88 MB | Extra Density ⁴ |
¹ Non-standard formats using 10 sectors per track instead of the usual 8 or 9. These cannot be created or read by standard MS-DOS and were used exclusively by booter games, notably Electronic Arts titles such as Seven Cities of Gold (1984) and Marble Madness (1984), as a form of copy protection.
² IBM’s eXtended Density Format, used by IBM for distributing OS/2 and PC DOS 7. Uses variable sector sizes to squeeze extra capacity out of standard HD disks.
³ Microsoft’s Distribution Media Format, used for distributing Windows and Office on fewer floppies. Uses 21 sectors per track. The 82-track variant has slightly higher capacity at the expense of compatibility.
⁴ Introduced in 1990 on the NeXTcube and IBM PS/2. Required special drives and disks that were significantly more expensive than standard HD hardware, so the format never saw widespread adoption.
Mounting CD-ROM images¶
The image type is auto-detected from the file extension (.cue, .iso,
.bin, .mds), so -t iso is not needed. Supported CD-ROM image formats:
- CUE/BIN — CUE sheet with data and optional audio tracks
- ISO — Standard ISO 9660 images (data only)
- MDS/MDF — Alcohol 120% disc images
For games with CD-DA music, use CUE/BIN or MDS/MDF format images with audio tracks. See CD-DA audio for details on supported audio track formats.
Mounting multiple images¶
You can mount multiple images at the same drive letter. See Disk swapping for the full details and examples.
Mounting hard disk images¶
The image type is auto-detected from the file extension (.img, .ima,
.vhd), so -t hdd is not needed. For images that require explicit
geometry:
FAT12, FAT16, and FAT32 filesystems are supported.
Read-only mounts¶
Use the -ro flag to mount a drive as read-only:
Booting from images¶
For bootable disk images (real MS-DOS, Windows 9x, etc.), mount with
-fs none using a drive number instead of a letter:
Drive numbers 0 and 1 correspond to floppy drives A: and B:; 2 and 3
correspond to hard disks C: and D:. The boot command also supports multiple
floppy images for disk swapping.
Booter games
Some early games (roughly 1981–1986) bypassed DOS entirely and booted
directly from floppy disk. These “booter” games took over the whole
machine, using non-standard disk formats as a form of copy protection
and to squeeze out every last byte of available memory. Their disks do
not contain a DOS filesystem, so they cannot be mounted as regular
drives — they must be run with the boot command shown above.
Notable booter games
DOS filesystem limitations¶
DOS filenames follow the 8.3 convention: a maximum of 8 characters for
the name and 3 for the extension (e.g., DUKE3D.EXE). Names are
case-insensitive, cannot contain spaces, and only a limited set of special
characters is allowed. When mounting host directories, DOSBox Staging
automatically truncates long filenames to 8.3 format for DOS programs.
The FAT16 filesystem used by DOS limits individual partitions to a maximum of 2 GB. Larger hard disk images must be split into multiple partitions. DOSBox Staging also supports FAT12 (used on floppy disks) and FAT32 (used by Windows 95/98, with a theoretical 2 TB limit).
Unmounting drives¶
To unmount a previously mounted drive:
Configuration settings¶
Storage-related settings are in the [dosbox] section:
For emulated drive sounds (floppy chatter, hard disk clicking), see Disk noise.