Originally posted by: civad
Is that 18 hd or 18 partitions?
Just 1 HD. 15 partitions on one HD, linux numbers them up to 18. There is supposedly no upper limit to the number of partitions. I've never attempted to find what the practical limit is.
hda3, and hda4 are missing because I only have 2 actual primary partitions, one of which is the extended partition.
hda2 is missing because it is an extended partition. It is a container for partitions from hda5 to hda18. You see there are two ways of designating a partition. The original method, and a later method that puts so-called logical partitions in one of the orginal type of partitions. When one of the original types is used as a container for logical partitions it is called an extended partition.
The original type of partitioning is a table with 4 entries located on the first sector of the HD. By putting it there, any booting system knows exactly where to find the info, and by sticking to the standard, any booting system knows how to treat the info. It is often the case that the partitioning utility which comes with an OS will not alter or remove any partition with a type designation it does not recognize, and will refuse to do anything at all with a non-standard partition table. That presents a problem if the partition table becomes corrupt or you just want to delete a foreign partition. For instance, years ago I tried to use fdisk to delete a linux partition, and it wouldn't
At some point HDs were about to become too large to be fully used by the original DOS file system. (over 128M?) Rather than create a file system to accomodate the HDs, MS decided to make one HD look like many HDs to the OS. To do this, they made use of a second partition, calling it an extended partition, and putting as many partitions within that as you like. By doing it that way, they kept to the old standard. The extended partition does not use a table listing all the partitions. That would put a limit on the number of partitions. Instead each partition has an entry saying if there is another partition beyond itself, and where that partition starts.
Of course now we have file systems that can accomodate over 128G without partitions. But partitions are useful for other reasons. They are a PITA even so.