swap error

Jim Smith jim at oz.net
Sat Jun 23 23:45:08 UTC 2007


Scott Lockwood wrote:
> On Sat, 2007-06-23 at 13:53 -0700, Jim Smith wrote:
>   
>> # /dev/sda3 -- converted during upgrade to edgy
>> UUID=53682bbd-4fcd-4d8c-81a6-7da4e9dc3ece none swap sw 0 0
>> /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
>>     
>
> Ok, so, the nice thing about this, is that if you mount swap by UUID,
> then you don't really so much care when and if it ever changes the
> device ID during an upgrade or something, because the UUID doesn't
> change, where the device name (/dev/sda3) can.
>
> So, first thing, what happens if you type 'swapon -a'?
>
> Second, can you verify that the UUID of that partition is still
> 53682bbd-4fcd-4d8c-81a6-7da4e9dc3ece ?
>
>   
I get the following error message:

jim at JimsBook:~$ sudo swapon -a
Password:
swapon: cannot stat
/dev/disk/by-uuid/53682bbd-4fcd-4d8c-81a6-7da4e9dc3ece: No such file or
directory
jim at JimsBook:~$

Could something have changed? Can I just go back to listing it by /dev/sdaX?

Thanbk you

Jim





More information about the ubuntu-users mailing list