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?

link|improve this question

58% accept rate
feedback

1 Answer

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
}
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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