Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am planning to install debian and wondering which partition should be primary and which should be logical.

I want to create 4 partitions:

/boot 300MB ext2 --> primary or logical?

/ 30GB ext4 --> primary or logical?

swap 4GB swap --> primary or logical?

/home 100GB ext4 --> primary or logical?

FREE SPACE for a possible other OS

if i make every partition primary, the partition manager does not allow me to create another partition on FREE SPACE. I guess this is because i can at most make 4 primary partitions. So should i make one partition primary (which?) and the rest logical, or all logical or,.... ?

kind regards

share|improve this question

2 Answers 2

up vote 3 down vote accepted

MBR allows a maximum number of 4 partitions only. Hence you must create at least one extended partition for the logical partitions. In general the extended partition should be placed at the end of the drive.

The real partitioning scheme depends on you. You can create only /boot as primary, or /boot and / (root) as primary, and the rest as logical.

Previous versions of Windows require the system partition to be primary, otherwise it won't boot. Vista and later versions could be installed to a logical partition without problem but primary system partition may still be recommended. So in general creating the first 3 partitions as primary and the rest as logical is recommended. You may reserve one of the primary ones for Windows and let Linux use the rest

share|improve this answer

Lưu Vĩnh Phúc's answer is basically correct for disks partitioned with the older MBR scheme, although I personally would recommend minimizing the use of primary partitions, since this will give you greater flexibility should you later need primary partitions for some other purpose.

Most new computers, though, use EFI/UEFI firmware, which generally uses the newer GUID Partition Table (GPT) partitioning system. Under GPT, there's no such thing as primary, extended, or logical partitions; GPT has one partition type (which some tools report as "primary" partitions, although that term is meaningless in the absence of the other types). GPT supports up to 128 partitions by default, although that value can be raised with the right software, if necessary.

If you're using a computer that was sold in the last two years, you probably have the option of booting it in EFI mode or in the older BIOS (aka CSM or legacy) mode. If you're dual-booting Linux with Windows, you should be sure to install Linux in the same mode that Windows uses. Computers that ship with Windows 8 almost invariably use EFI-mode booting, so if that's your situation, you should plan to use EFI-mode booting and GPT. If you're dual-booting an older computer, it probably uses BIOS-mode booting by default, although you'll need to check your computer to be sure. If you're setting up a Linux-only computer, you have your choice. Note also that Linux can use GPT even on a BIOS-based computer, although there are caveats with some BIOSes. Also, Windows requires MBR partitioning when booting in BIOS mode, so if you're dual-booting with Windows in BIOS mode, you must use MBR.

To sum up:

  • BIOS-mode dual boot with Windows: Use MBR
  • BIOS-mode Linux-only setup: Use MBR or GPT, as you see fit (but MBR is the safer and more traditional choice)
  • EFI-mode Linux-only setup: Use GPT
  • EFI-mode dual boot with Windows: Use GPT
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.