54

What are the major differences? Which is more preferable? Are there any OS specific advantages for one over the other?

5 Answers 5

58

In the legacy MBR partition scheme, only at most four partitions can be created (they are called "primary" partitions). To bypass this limit, one of the entries is usually made an "extended" partition – instead of files, it contains several "logical" partitions.

MBR: < primary | primary | primary | primary >

MBR: < primary | primary | extended [logical, logical, logical] >

In practice, the only difference is that some operating systems (namely Windows) are unable to boot from logical partitions.

A newer partition scheme, GPT, is used on some recent systems, including all Intel Macs – it doesn't have such small limits, and does not need to use extended/logical partitions.

2
  • 9
    Note that you don't need to have 3 primary partitions before you can create an extended partition... or indeed any primary partitions at all. Sep 18, 2011 at 21:11
  • 3
    Most brief answet on this topics I have ever read.
    – neverMind9
    Apr 25, 2018 at 10:04
23

You can have only 4 primary partitions (3 if you decide to have an extended partition), whereas you can have an arbitrary number of logical partitions. There are no OS-specific advantages other than older versions of Windows must be installed on a primary partition and that the legacy MBR bootloader can only boot from a primary partition.

9

There are 3 kinds of partitions

  1. Primary
  2. Extended
  3. Logical

And two types of partitioning scheme used now a days

  • MBR (Master Boot Record)
  • GPT (GUID Partition Table)

Primary partition, extended partition, and logical partition are much related to MBR disk, because GPT disk only contains primary partition.

On an MBR disk, there can only be 4 primary partitions or 3 primary + 1 extended partition at most.

We can install OS and save our data on any of partitions kind (primary/logical), but the only difference is that some operating systems (namely Windows) are unable to boot from logical partitions.

An active partition is based on primary partition. Any one of the 4 primary partitions can be set as active partition. Since there can be 4 primary partitions with 4 different Operating Systems installed, one of the partition that is marked active is used for the initial booting. The active partition contains the boot loader (e.g. ntldr, bootmgr or grub/burg/lilo) to load operating systems from a disk.

BIOS will only recognize the active partition for loading operating system. Other partitions can’t be recognized.

The logical partition can't be set as active. As here explained.

Full Source : Wikipedia

1

they're not alternatives, it's more a point about the order you create them and their hierarchical relationship. The first is called the primary partition. Some OSs let you have more than one. Within any (In addition to any) Primary you can create an extended partition, and if you want more partitions, then within the extended partition you can also create logical partitions.

thanks to grawity and ignacio for corrections.

9
  • Primary partitions always contain data, never extended partitions (primary and extended are on the same hierarchy level), their count is not OS-dependent, and the order doesn't matter. Sep 18, 2011 at 21:01
  • @grawity no relationship between primary and extended then? I see.. and just read on wikipedia, a hdd can only have one extended partition. So I suppose if one wants multiple partitions, one would just create multiple primary partitions if possible, then if they need more, they'd create an extended partition to go along with the primary one(s), and if more then logical within that extended one. Is that right?
    – barlop
    Sep 18, 2011 at 21:06
  • Yes, that's right. (Except it only applies to MBR-partitioned disks, but other types such as GPT exist.) Sep 18, 2011 at 21:08
  • 2
    @barlop: Mostly correct, except that the single extended partition restriction is due to assumptions by the OS rather than any physical or logical limit. Sep 18, 2011 at 21:10
  • 3
    Actually, multiple extended partitions does have a use. It was used by some people to separate the secondary partitions that they didn't want operating systems such as MS/PC-DOS and OS/2 to see from those that they did. This was done by having two container partitions, one with the conventional 0x05 type and the other with a non-standard 0x85 type. Andries Brouwer wrote about such systems years ago.
    – JdeBP
    Sep 20, 2011 at 22:42
1

Primary partitions have entries in MBR. So, there are maximum 4 primary partitions and one of them may be extended partition. The extended partition can contain variable number of logical partitions. The extended partition contains VBR by which Program control can get the information of logical partitions.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .