Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I have been trying for a while to figure out the partition scheme on my desktop that was automatically installed by Ubuntu when I installed. I let Ubuntu create the partitions as it saw fit on my single disk system and I ended up with sda1 as I expected and sda5 as swap, but I also got a single block sda2 in between the swap and root. Does anybody know why this would have been created? The desktop is old and not efi. Also bonus points for explaining why the swap partition is on sda5 and not just sequential as I would have expected.

share|improve this question
Can you post a GParted screencap? – oaskamay Mar 18 '13 at 21:05
up vote 2 down vote accepted

The numbers sda1-4 are reserved for "primary" partitions, of which there can be only four. Numbers sda5+ are for logical partitions which reside in an extended partition.

Extended partition is basically a partition holder, which can hold multiple logical partitions. This limitation of 4 partitions is from the old ages when DOS was used - extended/logical partitions are a workaround to allow more partitions in modern systems (however, GPT/EFI partitions are better and allow way more partitions on a single device).

In your case, I would expect this sda2 to be the extended partition which holds the logical partitions, sda5 (swap) in this case. You should be able to confirm this via a graphical partitioning tool such as GParted.

Edit: You can find more information about this here: (Check below headings "Primary partition" and "Extended partition".)

share|improve this answer
Thank you for this explanation. sda2 is indeed the extended partition to hold the swap space. I am not used to seeing it since I do not swap on my other machines. I would vote but I have less than 15 rep but I will come back once I have enough and give you your due :) – Danny Dyla Mar 19 '13 at 5:11

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.