Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

There are two partitions in my Ubuntu 12.04 setup that don't mount and are "unknown"; /dev/sda7 and /dev/sda5:

enter image description here

and the properties dialogue:

enter image description here

Is one supposed to be my SWAP partition? I have 8 GB of ram (so maybe sda7 was swap). Should I format the partitions to a certain format and somehow mark it as SWAP? Should I merge the two partitions (and the 7mb unallocated space) together?

I recently upgraded from Ubuntu 11.10 to 12.04. Any help would be appreciated.


share|improve this question
Yep, sda7 seems to be your swap partition... but what's in sda5? It haves almost 15 GB! – espectalll Jun 9 '12 at 11:14
@espectalll123 I turns out they are both swap, and are encrypted and not mounting. This must have happened when I upgraded to 12.04 and I encrypted my home drive. – Devi710 Jun 9 '12 at 11:46
up vote 0 down vote accepted

there is no swap, otherwise gparted would have found it.

You can start gparted as root and mark a partition as swap.

After that you should modify manually fstab

share|improve this answer
Thanks for the response gianni. I tried to format the partition as swap while running gparted as root, but got an error: I'll try again from a live session. – Devi710 Jun 9 '12 at 11:33
Maybe you can remove the swap from fstab, reboot and then try again – gianni Jun 9 '12 at 12:59
It took some work, but I got it all fixed. – Devi710 Jun 9 '12 at 18:34
From a live usb boot I deleted sda5, added all the unallocated space to my Linux partition (sda6), formatted sda7 to Linux-Swap and then added it to fstab. Because of all the partitioning my grub was broken and I couldn't boot into any OS. But I fixed this easily with Boot-Reapir - – Devi710 Jun 9 '12 at 18:40

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.