How can I add space from unallocated to extended?

Solution 1:

Using Gparted from a Live CD:

  1. Select the swap partition

  2. In the Partition menu, click on "swapoff"

  3. Delete the swap partition

  4. Recreate swap at the end of Unallocated (faster than moving it)

    Optional: Turn swap back on

  5. Resize sda5 as desired

Solution 2:

  1. Extend the extended partition.
  2. Move the 2 GB partition at the end of the extended partition.
  3. Extend the 10 GB partition.

That will normally do the trick.