Microsoft Store
 

Drive letter assignment


 

Drive letter assignment is the process of matching volumes (active primary partitions and logical partitions) to letters in the root namespace of a file system as seen by a Microsoft operating system. The concept of drive letters might have originated in the CP/M operating system, in imitation of the device prefixes in the RSX-11 and VMS operating systems.

Related Topics:
Partition - File system - Microsoft - Operating system - CP/M - RSX-11 - VMS

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

However, IBM's VM/CMS, an even earlier operating system, also had drive letters, identifying minidisks attached to a user session; a full pathname would be composed of a filename, filetype and disk letter called filemode.

Related Topics:
IBM - VM/CMS

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Unlike the concept of mount points, where the user can create directories of arbitrary name and content in the root namespace, drive letter assignment implies that only letters are in this namespace, and they represent solely volumes. In other words, it is a process of naming the roots of the "forest" that represents the file-system (with each volume being an independent tree therein).

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Drive letters, however, are not the only way of accessing different volumes. MS-DOS offers a JOIN command that allows the mounting of a volume already assigned a drive letter inside a directory, very much equivalent to the Unix mount command. It also offers a SUBST command that allows the creation of a drive letter from an existing directory. These commands were not always both available in later systems like OS/2 or Windows NT, but starting from Windows 2000 both are supported: the SUBST command exists as before, and JOIN's functionality is accessed as LINKD (not natively, but in the Windows Resource Kit). The third party JUNCTION command from sysinternals provides similar functionality to LINKD.

Related Topics:
MS-DOS - OS/2 - Windows NT - Windows 2000

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

Operating systems that use drive letter assignment:

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

  • CP/M
  • DOS
  • Windows 3.1
  • Windows 95/98/ME
  • Windows NT/2000/XP
  • IBM OS/2
  • Except for CP/M and early versions of MS-DOS, each of these operating systems assign drive letters according to the following algorithm:

    ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

  • Assign the drive letter 'A' to the boot floppy, and 'B' to the secondary floppy
  • Assign a drive letter, beginning with 'C' to the first active primary partition recognized upon the first physical hard disk
  • Assign subsequent drive letters to the first primary partition upon each successive physical hard disk drive, if present within the system.
  • Assign subsequent drive letters to every recognized logical partition beginning with the first hard drive and proceeding through successive physical hard disk drives, if present within the system.
  • Assign subsequent drive letters to any additional floppy drives
  • MS-DOS versions 3 and earlier assign letters to all the floppy drives before considering hard drives, so a system with four floppy drives would call the first hard drive 'E'.

    ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

    The 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 MS-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 MS-DOS. Therefore MS-DOS and eg. 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, Windows 2000, Windows XP and OS/2, the operative system uses the aforementioned algortihm to automatically assign letters to floppy disk drives, CD-ROM drives, DVD drives, the boot disk, and other recognized volumes that are not otherwise created by an 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.

    Related Topics:
    Windows NT - Windows 2000 - Windows XP - OS/2 - Floppy disk - CD-ROM - DVD - Boot disk - Administrator

    ~ ~ ~ ~ ~ ~ ~ ~ ~ ~