词条 | Drive letter assignment |
释义 |
In computer data storage, drive letter assignment is the process of assigning alphabetical identifiers to volumes. Unlike the concept of UNIX mount points, where volumes are named and located arbitrarily in a single hierarchical namespace, drive letter assignment allows multiple highest-level namespaces. Drive letter assignment is thus a process of using letters to name the roots of the "forest" representing the file system; each volume holds an independent "tree" (or, for non-hierarchical file systems, an independent list of files). OriginThe concept of drive letters, as used today, presumably{{citation needed|date=August 2016}} owes its origins to IBM's VM family of operating systems, dating back to CP/CMS in 1967 (and its research predecessor CP-40), by way of Digital Research's (DRI) CP/M. The concept evolved through several steps:
The important capability of hierarchical directories within each drive letter was initially absent from these systems. This was a major feature of UNIX and other similar operating systems, where hard disk drives held thousands (rather than tens or hundreds) of files. Increasing microcomputer storage capacities led to their introduction, eventually followed by long filenames. In file systems lacking such naming mechanisms, drive letter assignment proved a useful, simple organizing principle. Operating systems that use drive letter assignment{{Expand list|date=November 2010}}{{div col}}
Order of assignment{{unreferenced section|date=February 2011}}MS-DOS/PC DOS since version 5.0, and later operating systems, assigns drive letters according to the following algorithm:
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:. 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 drives, optical disc 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. 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.[5] 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}} {{anchor|Memory drive}}Common assignmentsApplying the scheme discussed above on a fairly modern Windows-based system typically results in the following drive letter assignments:
Case-specific drive letters:
When there is no second physical floppy drive, drive B: can be used as a "virtual" floppy drive mapped onto the physical drive A:, whereby the user would be prompted to switch floppies every time a read or write was required to whichever was the least recently used of A: or B:. This allows for much of the functionality of two floppy drives on a computer that has only one. This concept of multiple drive letters sharing a single physical device (optionally with different "views" of it) is not limited to the first floppy drive, but can be utilized for other drives as well by setting up additional block devices for them with the standard DOS DRIVER.SYS in CONFIG.SYS. Network drives are often assigned letters towards the end of the alphabet. This is often done to differentiate them from local drives: by using letters towards the end, it reduces the risk of an assignment conflict. It is especially true when the assignment is done automatically across a network (usually by a logon script). In most DOS systems, it is not possible to have more than 26 mounted drives. Atari GEMDOS supports 16 drive letters A: to P: only. The PalmDOS PCMCIA driver stack supports drive letters 0:, 1:, 2:, ... to address PCMCIA drive slots. Some Novell network drivers for DOS support up to 32 drive letters under compatible DOS versions. In addition, Novell DOS 7, OpenDOS 7.01, and DR-DOS 7.02 genuinely support a CONFIG.SYS JP Software's 4DOS command line processor supports drive letters beyond Z: in general, but since some of the letters clash with syntactical extensions of this command line processor, they need to be escaped in order to use them as drive letters. Windows 9x (MS-DOS 7.0/MS-DOS 7.1) added support for If access to more filesystems than Z: is required under Windows NT, Volume Mount Points must be used.[14] However, it is possible to mount non-letter drives, such as 1:, 2:, or !: using the command line {{anchor|Floating drive|Load drive}}ASSIGN, JOIN and SUBST in DOS and WindowsDrive letters are not the only way of accessing different volumes. DOS offers a JOIN command that allows access to an assigned volume through an arbitrary directory, similar to the Unix mount command. It also offers a SUBST command which allows the assignment of a drive letter to a directory. One or both of these commands were removed in later systems like OS/2 or Windows NT, but starting with Windows 2000, both are again supported: The SUBST command exists as before, while JOIN's functionality is subsumed in LINKD (part of the Windows Resource Kit). In Windows Vista, the new command MKLINK can be used for this purpose. Also, Windows 2000 and later support mount points, accessible from the Control Panel. Many operating systems originating from Digital Research provide means to implicitly assign substitute drives, called floating drives in DRI terminology, by using the CD/CHDIR command in the following syntax: DOS Plus supports this for drive letters N:, O:, and P:. This feature is also present in Concurrent DOS, Multiuser DOS, System Manager 7, and REAL/32, however, these systems extend the concept to all unused drive letters from A: to Z:, except for the reserved drive letter L:.[7] DR DOS 3.31 - 6.0 (up to the 1992-11 updates with BDOS 6.7 only) also supports this including drive letter L:. This feature is not available under DR DOS 6.0 (1992 upgrade), PalmDOS 1.0, Novell DOS 7, OpenDOS 7.01, DR-DOS 7.02 and higher. Floating drives are implemented in the BDOS kernel, not in the command line shell, thus they can be used and assigned also from within applications when they use the "change directory" system call. However, most DOS applications are not aware of this extension and will consequently discard such directory paths as invalid. JP Software's command line interpreter 4DOS supports floating drives on operating systems also supporting it. In a similar feature, Concurrent DOS, Multiuser DOS, System Manager and REAL/32 will dynamically assign a drive letter L: to the load path of a loaded application, thereby allowing applications to refer to files residing in their load directory under a standardized drive letter instead of under an absolute path.[7] This load drive feature makes it easier to move software installations on and across disks without having to adapt paths to overlays, configuration files or user data stored in the load directory or subsequent directories. (For similar reasons, the appendage to the environment block associated with loaded applications under DOS 3.0 (and higher) contains a reference to the load path of the executable as well, however, this consumes more resident memory, and to take advantage of it, support for it must be coded into the executable, whereas DRI's solution works with any kind of applications and is fully transparent to users as well.) In some versions of DR-DOS, the load path contained in the appendage to the environment passed to drivers can be shortened to that of a temporary substitute drive (e.g. See also
References1. ^1 {{cite web |title=CP/M and Digital Research Inc. (DRI) History |author-last=Johnson |author-first=Herbert R. |date=2009-01-04 |work=www.retrotechnology.com |url=http://www.retrotechnology.com/dri/d_dri_history.html |access-date=2009-01-28}} [1][2][3][4][5][6][7][8][9][10][11][12][13][14]2. ^1 {{cite web |title=GEOS |url=http://osnews.com/story/15223/GEOS_The_Graphical_Environment_Operating_System/page7/}} 3. ^1 {{cite web |title=DexOS |url=http://www.dex-os.com/old/dosbox.htm}} 4. ^1 {{cite web |title=Change a drive letter |publisher=Microsoft |url=https://docs.microsoft.com/en-us/windows-server/storage/disk-management/change-a-drive-letter |access-date=2019-03-04}} 5. ^1 2 3 {{cite book |title=Concurrent DOS 386 - Multiuser/Multitasking Operating System - User Guide |publisher=Digital Research |url=http://bitsavers.org/pdf/digitalResearch/concurrent/1126-2004-001_Concurrent_DOS_386_Users_Guide_Nov87.pdf}} 6. ^1 {{cite web |title=The drive U: in MagiC |date=2016-03-28 |url=http://toshyp.atari.org/en/00b00b.html |access-date=2017-01-09 |dead-url=no |archive-url=https://web.archive.org/web/20170115164938/http://toshyp.atari.org/en/00b00b.html |archive-date=2017-01-15}} 7. ^1 {{cite web |title=FreeMiNT-Portal - mint.doc |date=2000-04-27 |url=http://freemint.de/docs/mint.mint_doc.html |access-date=2017-01-09 |dead-url=no |archive-url=https://web.archive.org/web/20170115165043/http://freemint.de/docs/mint.mint_doc.html |archive-date=2017-01-15}} 8. ^1 {{Cite web |title=Wine FAQ |url=https://wiki.winehq.org/FAQ#Is_Wine_malware-compatible.3F}} 9. ^1 {{cite web |title=(unknown) |publisher=Microsoft TechNet |url=http://technet2.microsoft.com/WindowsServer/en/library/f7e61105-8033-4c45-a6d2-9476266aac221033.mspx?mfr=true |access-date=2006-12-01 |archive-url=https://web.archive.org/web/20070326145909/http://technet2.microsoft.com/WindowsServer/en/library/f7e61105-8033-4c45-a6d2-9476266aac221033.mspx?mfr=true |archive-date=2007-03-26}} 10. ^1 2 3 4 {{cite book |publisher=Digital Research |title=Concurrent DOS 386 - Multiuser/Multitasking Operating System - Reference Manual |date=1987 |url=http://bitsavers.trailing-edge.com/pdf/digitalResearch/concurrent/1126-2064-001_Concurrent_DOS_386_Reference_Guide_Nov87.pdf}} 11. ^1 {{cite web |author-first=Matthias |author-last=Paul |title=Caldera OpenDOS 7.01/7.02 Update Alpha 3 IBMBIO.COM README.TXT |url=http://www.uni-bonn.de/~uzs180/download/ibmbioa3.zip |date=1997-10-02 |access-date=2009-03-29 |dead-url=yes |archive-url=https://web.archive.org/web/20031004074600/http://www-student.informatik.uni-bonn.de/~frinke/ibmbioa3.zip |archive-date=2003-10-04}} Op702src.zip is an unofficial renamed distribution of the ibmbioa3.zip file --> 12. ^1 {{cite book |title=NWDOS-TIPs — Tips & Tricks rund um Novell DOS 7, mit Blick auf undokumentierte Details, Bugs und Workarounds |chapter=II.11.iii. Interne Kommandos und Optionen von COMMAND.COM - Hinweise zu internen Kommandos |work=MPDOSTIP |author-first=Matthias |author-last=Paul |date=1997-07-30 |edition=3, release 157 |language=German |format=e-book |url=http://www.antonis.de/dos/dos-tuts/mpdostip/html/nwdostip.htm |access-date=2014-08-06 |dead-url=no |archive-url=https://web.archive.org/web/20161104235829/http://www.antonis.de/dos/dos-tuts/mpdostip/html/nwdostip.htm |archive-date=2016-11-04}} (NB. NWDOSTIP.TXT is a comprehensive work on Novell DOS 7 and OpenDOS 7.01, including the description of many undocumented features and internals. It is part of the author's yet larger MPDOSTIP.ZIP collection maintained up to 2001 and distributed on many sites at the time. The provided link points to a HTML-converted older version of the NWDOSTIP.TXT file.)13. ^1 {{cite web |title=SETENV v1.11 |author-first=Matthias |author-last=Paul |date=1997-05-27 |orig-year=1996 |url=http://www.uni-bonn.de:80/~uzs180/mpdokeng.html#M.SETENV |dead-url=yes |archive-url=https://web.archive.org/web/20090215001349/http://www.uni-bonn.de:80/~uzs180/mpdokeng.html#M.SETENV |archive-date=2009-02-15}} 14. ^1 {{cite web |title=Re: Run a COM file |author-first=Matthias |author-last=Paul |date=2002-10-07 |work=alt.msdos.programmer |url=https://groups.google.com/d/msg/alt.msdos.programmer/d7blJjY0H5M/Qu3VeTOIGVcJ |access-date=2017-09-03 |dead-url=no |archive-url=https://archive.today/20170903230312/https://groups.google.com/forum/%23!msg/alt.msdos.programmer/d7blJjY0H5M/Qu3VeTOIGVcJ |archive-date=2017-09-03}} [https://groups.google.com/d/msg/alt.lang.asm/PNOd9zfYow0/vXbab16j4XwJ] }} External links
4 : Windows architecture|DOS technology|Computer peripherals|Assignment operations |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。