What if the hard disk is partitioned into more than 26 sections in Windows?

42

7

As we know, in Windows the partition location is prefixed with [a-z]:. What happens if there are more than 26 partitions?

winuser

Posted 2011-06-07T07:58:22.370

Reputation: 423

Answers

45

The drive letters you see are simply representations of the physical partitions available and can be represented by other means. You could only have up to 26 drive letters, but you are definitely able to have (and actually use) many more partitions.

In that case, you could link the drive to a directory on your system rather than a drive letter as, since Windows XP at least (and potentially earlier), it has been possible to mount a drive or partition under a directory in Windows. This would mean you could effectively have a folder containing all your drives that are not accessible by drive letter.

You would do this within the Disk Management administrative console.

To get to the console, go to (or right-click on "My Computer" -> "Manage" -> "Disk Management"):

Start > Run and type
diskmgmt.msc

If you right click a partition you would see a Change Drive Letter or Path option which where you can add or remove paths or drive letters for drives.

Mount in drive

As a side not you will want to make sure that the folder that you are using is empty, when you mount a partition to that folder then you will only see the files and folders from that partition and any original files will be invisible. I suspect if you unmount the drive from that folder you will be able to see the original files again, but I don't know for certain.

Weird, I assumed that there would be some kind of limit on how many logical partitions you can have in an extended partition, but I can't actually find anything about it. I know you can only have four primary partitions.

This is an example drive that I have removed the drive letter from and instead assigned to a folder, the files on that drive are now accessible at C:\Temp\Test and the drive no longer has a letter assigned to it:

Enter image description here

Mokubai

Posted 2011-06-07T07:58:22.370

Reputation: 64 434

5Logical partitions are implemented as a linked list, so there is no theoretical limit to the number you can have. – Ignacio Vazquez-Abrams – 2011-06-07T08:25:09.253

@Ignacio Vazquez-Abrams,what's their symbolic name like when 26 letters are used up? – winuser – 2011-06-07T08:26:34.267

1You can't have more than 26 letters, period. – Ignacio Vazquez-Abrams – 2011-06-07T08:28:09.220

@Ignacio Vazquez-Abrams ,26 logical partitions need 26 letters at least,right? What about the 27th partition? – winuser – 2011-06-07T08:29:27.337

There are no letters left for it. – Ignacio Vazquez-Abrams – 2011-06-07T08:30:43.090

@Ignacio Vazquez-Abrams ,so the number of logical partitions is limited,right? – winuser – 2011-06-07T08:34:43.570

6

@Winuser, the 27th partition would not be able to have a drive letter and so you would have to assign it to a folder as I mentioned in my answer. The Disk Management console allows you to see unassigned partitions and then assign them to a folder as necessary. Have a look at http://i.technet.microsoft.com/dynimg/IC235918.png for an example of what you would see.

– Mokubai – 2011-06-07T08:35:35.240

@winuser: No. Some of them will simply not have drive letters assigned. – Ignacio Vazquez-Abrams – 2011-06-07T08:36:13.493

@winuser Ignacio stated that the number of partitions is unlimited, but what is limited is how many drive letters can be assigned which is something completely different. A drive letter is only a representation of a partition and it can be represented in many different ways, for example as a folder. – Mokubai – 2011-06-07T08:38:42.397

@Mokubai,Is the OFFICE12 a folder ? – winuser – 2011-06-07T08:42:33.950

Uh, no, it's a disk label. Finish reading the text in the picture. – Ignacio Vazquez-Abrams – 2011-06-07T08:51:30.187

I don't find any folders in that picture ...Only 3 partitions,namely C: , D: and R:. – winuser – 2011-06-07T08:55:15.667

@winuser It wasn't a particularly good image to demonstrate the "folder" idea, I was mainly using it to show the console where you would be able to get that information. – Mokubai – 2011-06-07T08:59:05.477

@winuser I've added a better image to my answer. Essentially a physical partition can be represented by either a drive letter or a folder and these are simply "links" to that disk and are nothing more than representations to make it easier for the user to see and interact with that drive. Microsoft could completely abolish the "drive letter" idea with little or no problems and people could have folders that represent their partitions, the reason they don't is simply that people are used to the idea of drive letters. – Mokubai – 2011-06-07T09:09:17.137

1For what it's worth: If we are talking theoretical limits then there most definitely is such a limit. Each secondary partition takes a minimum of one sector for the partition itself (in these modern times where we don't do pointless cylinder alignment any more) and one (possibly two for some LVM schemes) sector(s) for the partition metadata. Since the container primary partition is limited to 2**32 sectors, at least one theoretical limit on the number of contained secondary partitions is fairly easy to deduce. (-: – JdeBP – 2011-06-07T09:09:37.827

@Mokubai ,how did you open that console in win7? – winuser – 2011-06-07T09:20:18.000

@winuser you can either right click "My Computer" and select "Manage" then look for "Disk Management" in the list on the left hand side, or you can click Start -> Run and then "diskmgmt.msc" to open the console – Mokubai – 2011-06-07T09:28:20.550

1You forgot to specify that mounting volumes as folders only works if the lettered drive is NTFS. – Synetech – 2012-09-15T13:53:45.490

10

Under DOS 3.3 at least you could get drives like [:\ i.e .the ASCII characters after Z.

This was using Novell and setting LASTDRIVE to some high letter.

So there might be a way of getting the 27th partition to have a character name.

user151019

Posted 2011-06-07T07:58:22.370

Reputation: 5 312

10Still can be done in WinNT using subst (which calls DefineDosDevice()), but most GUI programs won't recognize [:\Users and the like :( – user1686 – 2011-06-07T10:32:29.237

I suspect that most programs, period, won't recognize paths such as [:\Users, since the assumption is that drives are marked with a letter. There is, of course, the new style path format that's used for network drives (for example \\ServerName\Path) that came into existence at about the same time as Windows 95 or thereabouts. Not sure if you could map an unlettered drive to such a path for use locally, though. – RobH – 2014-05-29T16:51:42.853

1@grawity: It seems to even let you specify a space as a drive letter. Interesting. – LawrenceC – 2014-05-29T17:18:34.823

0

Little-known undocumented feature: you can use any drive "letter" you want with the mountvol command. First, use mountvol undecorated to get a list of present volumes with their \\?\Volume{GUID}\ paths. Then, you can do something like this:

mountvol -: \\?\Volume{7d0832b2-3d3a-4fe0-9473-9f7aaabc5a98}\
-:

That - isn't a placeholder - it actually works as a drive identifier, and you can change your current drive in the command prompt to it, cd around, and do everything you'd expect to be able to do. As far as I can tell, every symbol except the space works.

Explorer won't let you browse in non-lettered drives, but you can open some programs on documents in them. notepad filename.ext works on the prompt from inside that drive, for instance. (But notepad -:\filename.ext doesn't work from the Run dialog.)

Ben N

Posted 2011-06-07T07:58:22.370

Reputation: 32 973