Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Drive letter assignment
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Order of assignment== {{refimprove section|date=February 2011}} MS-DOS/PC DOS since version 5.0, and later operating systems, assigns drive letters according to the following algorithm:<ref>{{Cite web|date=1996-04-17|title=Order in Which MS-DOS and Windows Assign Drive Letters|url=http://support.microsoft.com/support/kb/articles/q51/9/78.asp|url-status=dead|archive-url=https://web.archive.org/web/19990218071811/http://support.microsoft.com/support/kb/articles/q51/9/78.asp|archive-date=1999-02-18|access-date=2021-01-06|website=Support Online from Microsoft Technical Support|publisher=[[Microsoft]]}}</ref> # Assign the drive letter '''A:''' to the first [[floppy disk drive]] (drive 0), and '''B:''' to the second floppy disk drive (drive 1). If only one physical floppy is present, drive '''B:''' will be assigned to a phantom floppy drive mapped to the same physical drive and dynamically assigned to either A: or B: for easier floppy file operations. If no physical floppy drive is present, DOS 4.0 will assign both '''A:''' and '''B:''' to the non-existent drive, whereas DOS 5.0 and higher will invalidate these drive letters. If more than two physical floppy drives are present, DOS versions prior to 5.0 will assign subsequent drive letters, whereas DOS 5.0 and higher will remap these drives to higher drive letters at a later stage; see below. # Assign a drive letter to the first active primary [[Disk partitioning|partition]] recognized upon the first physical [[hard disk]]. DOS 5.0 and higher will ensure that it will become drive '''C:''', so that the boot drive will either have drive '''A:''' or '''C:'''. # Assign subsequent drive letters to the first primary partition upon each successive physical hard disk drive (DOS versions prior to 5.0 will probe for only two physical hard disks, whereas DOS 5.0 and higher support eight physical hard disks). # Assign subsequent drive letters to every recognized logical partition present in the first extended partition, beginning with the first hard drive and proceeding through successive physical hard disk drives. # DOS 5.0 and higher: Assign drive letters to all remaining primary partitions, beginning with the first hard drive and proceeding through successive physical hard disk drives. # DOS 5.0 and higher: Assign drive letters to all physical floppy drives beyond the second physical floppy drive. # Assign subsequent drive letters to any block device drivers loaded in [[CONFIG.SYS]] via [[DEVICE (CONFIG.SYS directive)|DEVICE statement]]s, e.g. [[RAM disk]]s. # Assign subsequent drive letters to any dynamically loaded drives via CONFIG.SYS [[INSTALL (CONFIG.SYS directive)|INSTALL statement]]s, in [[AUTOEXEC.BAT]] or later, i.e. additional [[optical disc drive]]s ([[MSCDEX]] etc.), [[PCMCIA (card)|PCMCIA]] / [[PC Card]] drives, USB or Firewire drives, or [[network drive]]s. * Only partitions of recognized [[partition type]]s are assigned letters. In particular, "hidden partitions" (those with their type ID changed to an unrecognized value, usually by adding <code>10h</code>) are not. MS-DOS/PC DOS versions 4.0 and earlier assign letters to all of the floppy drives before considering hard drives, so a system with four floppy drives would call the first hard drive '''E:'''. Starting with DOS 5.0, the system ensures that drive '''C:''' is always a hard disk, even if the system has more than two physical floppy drives. While without deliberate remapping, the drive letter assignments are typically fixed until the next reboot, however, [[Zenith MS-DOS 3.21]] will update the drive letter assignments when resetting a drive. This may cause drive letters to change without reboot if the partitioning of the harddisk was changed. MS-DOS on the [[Apricot PC]] assigns letters to hard drives, starting with '''A:''', before considering floppy drives. A system with two of each drive would call the hard drives '''A:''' and '''B:''', and the floppies '''C:''' and '''D:'''. On the Japanese [[PC-98]], if the system is booted from floppy disk, the dedicated version of MS-DOS assigns letters to all floppy drives before considering hard drives; it does the opposite if it is booted from a hard drive, that is, if the OS was installed on the hard drive, MS-DOS would assign this drive as drive "A:" and a potentially existing floppy as drive "B:". The Japanese version of the [[Windows 95]] SETUP program supports a special option <kbd>/AT</kbd> to enforce that Windows will be on drive C:. Some versions of DOS do not assign the drive letter, beginning with '''C:''', to the first active primary partition recognized upon the first physical hard disk, but on the first primary partition recognized of the first hard disk, even if it is not set active. If there is more than one extended partition in a partition table, only the logical drives in the first recognized extended partition type are processed. Some late versions of the DR-DOS IBMBIO.COM provide a preboot config structure, holding bit flags to select (beside others) between various drive letter assignment strategies. These strategies can be preselected by a user or OEM or be changed by a boot loader on the fly when launching DR-DOS. Under these issues, the boot drive can be different from '''A:''' or '''C:''' as well. The drive letter order can depend on whether a given disk is managed by a boot-time driver or by a dynamically loaded driver. For example, if the second or third hard disk is of SCSI type and, on DOS, requires drivers loaded through the [[CONFIG.SYS]] file (e.g. the controller card does not offer on-board BIOS or using this BIOS is not practical), then the first SCSI primary partition will appear after all the IDE partitions on DOS. Therefore, DOS and for example OS/2 could have different drive letters, as OS/2 loads the SCSI driver earlier. A solution was not to use primary partitions on such hard disks. In [[Windows NT]] and [[OS/2]], the operating system uses the aforementioned algorithm to automatically assign letters to [[floppy disk drive]]s, [[optical disc drive]]s, the [[boot disk]], and other recognized volumes that are not otherwise created by an [[System administrator|administrator]] within the operating system. Volumes that are created within the operating system are manually specified, and some of the automatic drive letters can be changed. Unrecognized volumes are not assigned letters, and are usually left untouched by the operating system. A common problem that occurs with the drive letter assignment is that the letter assigned to a network drive can interfere with the letter of a [[local volume]] (like a newly installed CD/DVD drive or a USB stick). For example, if the last local drive is drive '''D:''' and a network drive would have been assigned as '''E:''', then a newly attached USB mass storage device would also be assigned drive '''E:''' causing loss of connectivity with either the network share or the USB device. Users with administrative privileges can assign drive letters manually to overcome this problem.<ref name="Microsoft_Driveletter"/> Another condition that can cause problems on [[Windows XP]] is when there are network drives defined, but in an error condition (as they would be on a laptop operating outside the network). Even when the unconnected network drive is not the next available drive letter, Windows XP may be unable to map a drive and this error may also prevent the mounting of the USB device.{{Citation needed|date=December 2010}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)