Upgrading from 6.06 to 6.10 --> misconfigured swap partition entry in fstab

Bug #72016 reported by Gerhard Radatz
4
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

I upgraded from Kubuntu 6.06 to 6.10 folling the procedure given at http://kubuntu.org/announcements/6.10-release.php

Then I found that everytime I am booting the swap is inactive. However, the boot log erroneously says "enabling swap - ok".

I finally found out that there is a wrong entry in my /etc/fstab (given below)

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/hda8 -- converted during upgrade to edgy
UUID=47e35db0-7cdc-46e6-a55c-7f42e5409a62 / ext3 defaults,errors=remount-ro 0 1
# /dev/hda1 -- converted during upgrade to edgy
UUID=1834C33534C314A2 /media/hda1 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/hda6 -- converted during upgrade to edgy
UUID=088C9CFC8C9CE60A /media/hda6 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
# /dev/hda4 -- converted during upgrade to edgy
UUID=14a7d49c-478c-4f12-b373-ab5372babe12 /media/ubuntu5 ext3 defaults 0 2
# /dev/hda7 -- converted during upgrade to edgy
UUID=0aff4adc-6925-457c-93e4-890cc083b7f5 /data ext3 defaults 0 0
# /dev/hda10 -- converted during upgrade to edgy
UUID=4C83-6DB9 /media/winxp vfat defaults,utf8,umask=007,gid=46 0 1
# /dev/hda9 -- converted during upgrade to edgy
#UUID=07215f2e-9548-4c69-867e-617ab367a007 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0

the line below "/dev/hda9" is the swap partition. However, if I run "swapon -a" manually, it says:

swapon: cannot stat /dev/disk/by-uuid/07215f2e-9548-4c69-867e-617ab367a007: No such file or directory

What's the problem here?

Tags: uuid-mount
Revision history for this message
Tiede (marcarthur) wrote :

Hmm... This sounds almost like my problem with swap...
Maybe if you try this it'll work. I think the wrong UUID is being saved when switching to edgy, thus disabling swap.

https://bugs.launchpad.net/distros/ubuntu/+source/util-linux/+bug/66637/comments/23

Revision history for this message
Gerhard Radatz (gerhard-radatz) wrote :

Thanks, I tried it and it worked.

However, do you have any idea why they are using UUIDs now? Before, I changed my /etc/fstab back to directly referencing my /dev/hda9 swap partition (as it was before Ubuntu 6.10) and this worked well, too....

So they introduced another source of problems, as it seems.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Could you run "vol_id -u /dev/hda9" for me?

Have you ever had a problem suspending this machine?

(We're using UUIDs to allow you to change your hard-drive cabling without stopping your machine from booting, AND because all of those /dev/hd* paths will be changing to /dev/sd* paths in feisty or later)

Revision history for this message
Gerhard Radatz (gerhard-radatz) wrote :

It says:
92163bbf-e05a-498b-ad34-10b606766745

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

And the answer to the second question?

Have you ever had a problem suspending this machine?

Revision history for this message
Gerhard Radatz (gerhard-radatz) wrote :

I think with "suspending" you mean what is presented as "hibernate computer" in the Kubuntu log-out menu?

In the past, this never worked correctly. I retried it now and during suspend, there came the following error message:
"<some error codes> pnp: Failed to activate device 00:0e"

However, resuming the computer did work then.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Have you since upgrading run `mkswap` in an attempt to fix a broken hibernation?

Revision history for this message
Gerhard Radatz (gerhard-radatz) wrote :

Yes, as I said above, I tried the solution described in https://bugs.launchpad.net/distros/ubuntu/+source/util-linux/+bug/66637/comments/23

and thereby I ran mkswap.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Thanks.

Running mkswap changes the UUID of the swap partition, that's the underlying bug here

Revision history for this message
iltony (iltony) wrote :

Same problem here. Thanks for the fix #66637, it works well!

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Ubuntu because there has been no activity for 60 days.]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.