Need UUID for swap after edgy upgrade?

Charlie Zender zender at uci.edu
Fri Nov 10 01:00:34 UTC 2006


Hi,

My swap partition appears to have suffered from the upgrade from
dapper to edgy:

root at virga:~# swapon -a
swapon: /dev/mapper/Ubuntu-swap_1: Invalid argument

I think this helps explain why hibernate stopped working for me.
Any help diagnosing this/fixing it would be appreciated.
The root filesystem seems to have the new UUID-type name in fstab,
but the swap does not. Do I need to manually edit this /etc/fstab
to replace /dev/mapper/Ubuntu-swap_1 with a UUID?
If so, how?

root at virga:~# more /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/mapper/Ubuntu-root /       ext3    defaults,errors=remount-ro 0 1
# /dev/sda1 -- converted during upgrade to edgy
UUID=b5778bca-8cc1-4494-9707-6667010847c8 /boot ext3 defaults 0 2
/dev/mapper/Ubuntu-swap_1 none  swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0

Thanks,
Charlie
-- 
Charlie Zender, surname at uci.edu, Department of Earth System Science
3228 Croul Hall, UC Irvine, Irvine CA 92697-3100. (949) 824-2987 :)





More information about the ubuntu-users mailing list