I would like to have 5 partitions:

  • Boot
  • Swap
  • 3 separate (one is 'main' system partition) LUKS encrypted partitions

I have boot partition as primary bootable and swap as primary linux swap. At this point I'm stuck because I can't have next 3 primary partitions and I'm not sure how to do it with extended partitions. I'm using cfdisk program.

  • You should probably specify whether you're planning to use classic MBR partitioning scheme, or the new GPT one. Starting from cfdisk version 2.25, it will also support GPT. The distinction of primary/extended/logical partitions is unique to MBR: for GPT, all partitions are equal. – telcoM Apr 24 at 14:25

With the MBR disk partitioning format you are limited to four (4) primary partitions. If you require more than 4 partitions, you have to use an extended partition and logical partitions (thus not "primary").

You need to switch to GPT partitioning, which allows up to 128 partitions. All modern partitioning tools that I know of support GPT, so making the change should be relatively easy.

  • Is the limit of partitions the only difference between MBR and GPT if I'm installing linux? – DeBos99 Apr 24 at 17:12
  • No it is not the only difference. However, it might be the only difference you care about in this case...hard to say. howtogeek.com/193669/… – 0xSheepdog Apr 24 at 17:14
  • What about partitions' types? I mean I can't make any partition bootable like in MBR. – DeBos99 Apr 24 at 17:35
  • I can on my fedora29 system. Bootable is the first option from the list across the bottom of the screen. – 0xSheepdog Apr 24 at 17:57
  • I see it only on MBR. – DeBos99 Apr 24 at 18:12

For MBR you can create 3 primary partition than one extended partition. This last partition is not really a partition. It holds all logical partitions as one partition.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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