swap partition won't mount
Alex Janssen
alex at ourwoods.org
Sun Mar 4 20:30:52 UTC 2007
Gabriel Dragffy said the following on 03/04/2007 02:59 PM:
> :(
> Doesn't work with me. I do the mkswap thing, it gives me a UID of, for
> example 123456, for good measure I put this in fstab. When I do swapon
> -a it give me "swapon: cannot stat swap /dev/disk/by-uid/123456: No such
> file or directory"
> I had also given the swap partition a label of 'swap', when I do:
> swapon swap
> I get: "cannot stat swap" blah blah blah
> How annoying!
>
>
I have not given a label to mkswap at any time. Mine seems to survive
reboot, now. Just can't hibernate as swap partition is smaller than memory.
Make sure there is a link named as the uuid given by mkswap in
/dev/disk/by-uuid.
example: lrwxrwxrwx 1 root root 10 2007-03-04 15:11
79cb19f1-71c2-46e6-bcc7-cd2f95cfd1ab -> ../../hdc6
This link name must be in the fstab as:
UUID=79cb19f1-71c2-46e6-bcc7-cd2f95cfd1ab none swap sw 0 0
Check it and let us know.
Alex
--
Ourwoods.org
Charlottesville, Virginia
More information about the ubuntu-users
mailing list