Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I install Ubuntu and tell it to use the first full disk, it creates the following partitions, numbered 1 and 5:

sda1 /
sda5 swap

When I create two partitions manually, the partitions are numbered 1 and 2:

sda1 /
sda2 swap

I believe this is because Ubuntu creates an extended partition, and then creates the swap partition in the new extended partition.

Using fdisk or GParted (or similar), how would one create a partition table exactly the same as the Ubuntu installer? How do I retain the default numbering style?

share|improve this question
up vote 4 down vote accepted

Just specify the swap partition as 'logical'.

The actual layout will be this:

sda1 # primary
sda2 { # extended
  sda5 # logical
share|improve this answer

Your Answer


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.