Why is Windows giving my hard disk the letter C and not A or B for example?

WindowsOperating System

Windows Problem Overview


Is it because the operating system is written in the C programming language? I think that the A and B languages were not so successful?

I am thirteen and trying to do computer programming in C#.

Windows Solutions


Solution 1 - Windows

Wikipedia gives a good explanation about the logic of drive lettering:

Except for CP/M and early versions of MS-DOS, the operating systems assigns drive letters according to the following algorithm:

  1. Assign the drive letter A: to the first floppy disk drive (drive 0), and B: to the second floppy disk drive (drive 1), if present.
  2. Assign a drive letter, beginning with C: to the first active primary partition recognised upon the first physical hard disk.
  3. Assign subsequent drive letters to the first primary partition upon each successive physical hard disk drive, if present within the system.
  4. Assign subsequent drive letters to every recognised logical partition, beginning with the first hard drive and proceeding through successive physical hard disk drives, if present within the system.
  5. Assign subsequent drive letters to any RAM Disk.
  6. Assign subsequent drive letters to any additional floppy or optical disc drives.

Solution 2 - Windows

It's a left over from the original PC designs. Originally PCs only had up to 2 floppy disk drives labelled A and B. Some time later hard disks got added and became drive C.

Solution 3 - Windows

The hard disk letter is C because historically, drives A and B were for floppy disks. It has nothing to do with the language in which the operating system is written.

Solution 4 - Windows

Ah, floppy disks, remember those?

You could spend a whole afternoon coding your latest killer app, then find that you couldn't save it because it was too big to fit on a 5.25" single density disk.

That was when floppies really were floppy. Thin and flimsy, usually in either 5.25" or 8" sizes, though the first internal drives that appeared in PCs were 5.25". As previously mentioned, the early versions of MS Dos used to automatically assign drive A: to the first floppy drive and B: to the second. Hard drives didn't even fit into PCs back then. You could buy a 5mb Winchester Hard Disk that weighed about 30Kg and came in a big external cabinet nearly the size of a modern mini tower pc.

If your PC had twin floppies you could type a command something like "copy a: b:" to copy the contents of drive A: to drive B:

But then that was all back in a time when Bill Gates was worth about $10,000!

Solution 5 - Windows

Its because A and B used to be floppy drives back in the days when floppy drives were the norm and there were no hard-disks. The letter C was given to any hard disk that the user installed. The drives A and B have since then been reserved for floppy drives. This has nothing to do with programming languages.

Solution 6 - Windows

While floppy drives were attached to drive 0 and 1 (A and B), nowadays, memory card and SD cards are like any other drive (hard-drives, CD-ROM readers, ...), and simply take any drive letter after C.

A and B are kept for backward compatibility reason.

To better illustrate how (finally, Q1 2014) floppy drives are fading away, consider the new Eclipse icons:

Lars Vogel just referenced this Stack Overflow question in his article "Eclipse org.eclipse.ui switches to png files and waves good bye to the floppy disk".

It illustrates that the next Eclipse Luna 4.4 will no longer show floppy disk, but rather icons which look "now a bit like a SD card".

They are designed by https://twitter.com/enleeten from http://www.l33tlabs.com/, using png file in order to:

> support transparency and therefore also look good on a dark theme (background).

I find the difference subtle though:

After:

http://blog.vogella.com/wp-content/uploads/2014/01/Selection_002-300x53.png

Before (old icons):

http://blog.vogella.com/wp-content/uploads/2014/01/Selection_003.png


This was recorded in bug 422175:

> Someone mentioned on twitter how the traditional save "floppy" idiom is somewhat anachronistic these days. So while working on the eclipse icons, we've created a new version of the save icon.

> The new icon keeps the profile of the floppy icon but replaces the diskette sliding door with some electrical contacts, effectively turning the icon into a memory card. This ensures that the icon is recognized by most users as "save" while still being representative of modern storage media.

> I've attached an image for comparison.

> - The first row is the current icon,

  • the second row was a more extreme change (making it look like an SD card) and
  • the third row is the icon we're proposing in this bug.

enter image description here

Solution 7 - Windows

>On computers running Windows or MS-DOS, the hard drive is labelled with the drive letter C, because it is the first available drive letter for hard drives. The computer reserves the A: and B: drive letters for the floppy disk drive and removable media, such as tape drives, even if none of these devices are installed in the computer. As you install other drives and create new partitions, they will be assigned to other drive letters after C, such as D, E, F, G, etc.

Source

Solution 8 - Windows

I'd say that it's because the A: and B: drives were traditionally floppy drives and early computers required you to boot using a bootable floppy disk.

I strongly doubt if the lettering has anything to do with programming languages.

Solution 9 - Windows

I think it's a kind of legacy from old versions of Microsoft Operating Systems where letters A and B were assigned to floppy drives.

Solution 10 - Windows

Think DOS was working from floppy drive, and windows built on DOS continued the same drive letter convention ...

Solution 11 - Windows

The origins of drive letters

*But why the letter "C"? Why not "A" or "B"? Why not "Z?"*

Unsurprisingly, the answer lies in Microsoft's old DOS roots. Long before Windows existed, most PC-compatible computer systems had only one disk drive in it - a floppy disk drive. At the time, users would insert their DOS floppy disk into the computer just before they turned it on, and the computer would start, or "boot up" via the software on the floppy. As the first and often only disk drive installed in the computer, the floppy disk was assigned the first letter of the alphabet.

Solution 12 - Windows

On computers running Windows or MS-DOS, the hard drive is labeled with the C: drive letter. The reason is because it is the first available drive letter for hard drives. The computer reserves A: and B: drive letters for the floppy disk drive and removable media, such as tape drives, even if these devices are not installed in the computer. As you install other drives and create new partitions, they are assigned to other drive letters after C, such as D, E, F, G, etc.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPeterView Question on Stackoverflow
Solution 1 - WindowsISWView Answer on Stackoverflow
Solution 2 - WindowsexcaliburView Answer on Stackoverflow
Solution 3 - WindowsDavid GrantView Answer on Stackoverflow
Solution 4 - Windowsr3gView Answer on Stackoverflow
Solution 5 - WindowsAutodidactView Answer on Stackoverflow
Solution 6 - WindowsVonCView Answer on Stackoverflow
Solution 7 - WindowsnullView Answer on Stackoverflow
Solution 8 - WindowsCerebrusView Answer on Stackoverflow
Solution 9 - WindowsStefano DriussiView Answer on Stackoverflow
Solution 10 - WindowsVenkatView Answer on Stackoverflow
Solution 11 - WindowsRic TokyoView Answer on Stackoverflow
Solution 12 - WindowsKavan PrajapatiView Answer on Stackoverflow