[LBo] Fixing Swap - Xubuntu 7.04

Anita Lewis a.lewis at linuxbasics.org
Sat Jun 9 03:29:55 CEST 2007


Anita Lewis wrote:

> sudo swapon
> 

That command needs to include the partition whatever it is.  I just had
to fix this on my laptop and caught my mistake:

sudo swapon /dev/hda5

or whatever the partition is.

I switched mine to the UUID, btw.  To do that, you need the UUID first.
 Get that with

udevinfo -q env -n /dev/hda5

This will give a bunch of ID_FS... information.  One is like this:

ID_FS_UUID=a5560c18-6b13-420c-9cd8-2af9cfb90fb6

Enter this information in /etc/fstab in place of the partition like this:

UUID=a5560c18-6b13-420c-9cd8-2af9cfb90fb6    none    swap   sw   0 0

This UUID takes the place of the partition name.

Anita

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://LinuxBasics.org/pipermail/qna/attachments/20070608/70070287/attachment.pgp 


More information about the QnA mailing list