swap won't mount after upgrade (UUID wrong)

Asked by Remco Slotboom

Hi,

After upgrading my system (Sony VAIO laptop) all the way from Ubuntu 4.10 to 6.10, I suddenly found my swap space had gone. I had both a swap partition and a swap file.

I managed to fix the problem myself by using the help in:

https://answers.launchpad.net/ubuntu/+ticket/2488
(great and very friendly help BTW!)

So I don't have a current problem, but since it happened during automatic upgrade, and swapspace is IMHO a rather important part of your system, I thought it would be prudent to let you know about it.

I managed to fix the swap file myself by running mkswap on it. I also ran mkswap on my previous swap partion, and I could use that as swap ('swapon /dev/hda5') but it not did appear as swap space after reboot.

After running the 'magic' command from '2488' to get the UUID, I put that in my fstab (which had a different UUID for this partition). then a 'swapon -a' worked.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Remco Slotboom
Solved:
Last query:
Last reply:
Revision history for this message
Matt Thompson (mattthompson) said :
#1

Hi,

It's great that you want to give back, if only more people saw it as you do. So the developers see your comment it would be best if you file this as bug.

Here's some guidance for reporting bugs which might be helpful:

https://help.ubuntu.com/community/ReportingBugs

Cheers,
 Matt

Revision history for this message
Nicolas DERIVE (kalon33) said :
#2

If you had resolved your problem, you should fill in a bug report rather than a support request I think.

Revision history for this message
Best Remco Slotboom (remco-slotboom) said :
#3

OK, just trying to find my way around here. I found the relevant bug:

https://launchpad.net/ubuntu/+source/util-linux/+bug/66637

and added to it.

Thanks.