You are not logged in.

#1 2008-11-18 03:01:41

OutOfReach
Member
Registered: 2008-10-28
Posts: 13

[solved] Swap not activating

I've tried hibernating but I have found that there is no swap.
I have swap partitions on my system and it is apparently in my fstab:

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/dvd /media/dvd   auto    ro,user,noauto,unhide   0      0
/dev/sr0 /media/cdrom auto rm,user,auto 0 0 #The new entry.
UUID=41f53992-ef11-49eb-91e8-a5a3bf6b66c0 / ext3 defaults 0 1
UUID=50a545bc-5348-4c23-a8d9-933640b62a5a swap swap defaults 0 0

I have searched on these forums and have found that the common problem is duplicate entries in fstab, but that is the not true for my case.

I've tried swapon and mkswap but they appear to have no effect!

Offline

#2 2008-11-27 00:02:37

OutOfReach
Member
Registered: 2008-10-28
Posts: 13

Re: [solved] Swap not activating

.

Offline

#3 2008-11-27 00:12:08

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: [solved] Swap not activating

If you've run mkswap, you probably changed the UUID of the partition. You may also want to check into the possibility that your hibernation/suspend scripts are running mkswap behind the scenes and changing the UUID on you.

You can get a listing of swap partitions that are enabled from /proc/swaps.


The suggestion box only accepts patches.

Offline

#4 2008-11-27 01:58:26

elmer_42
Member
From: /na/usa/ca
Registered: 2008-10-11
Posts: 427

Re: [solved] Swap not activating

I agree with neotuli. There is a possibility that the UUID in your fstab is incorrect. There is a topic about changing your swap UUID to the correct one. You can find it here.


[ lamy + pilot ] [ arch64 | wmii ] [ ati + amd ]

Offline

#5 2008-11-27 02:47:27

OutOfReach
Member
Registered: 2008-10-28
Posts: 13

Re: [solved] Swap not activating

Aha! Thank you elmer_42 for that link. It did the trick!
I'm going to reboot and see if the swap mounts.

Last edited by OutOfReach (2008-11-27 02:47:46)

Offline

#6 2008-11-27 02:50:04

OutOfReach
Member
Registered: 2008-10-28
Posts: 13

Re: [solved] Swap not activating

ok I rebooted and everything is fine.
How would I go about marking this thread as solved? smile

Last edited by OutOfReach (2008-11-27 02:50:27)

Offline

#7 2008-11-27 02:56:35

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: [solved] Swap not activating

OutOfReach wrote:

ok I rebooted and everything is fine.
How would I go about marking this thread as solved? smile

Generally you should edit your first post, and you can just change the title. But I've done it for you this time smile


The suggestion box only accepts patches.

Offline

#8 2008-11-27 02:56:35

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: [solved] Swap not activating

@OutOfReach

You can edit the first post to change the thread title.

Too slow...

Last edited by SamC (2008-11-27 03:18:58)

Offline

Board footer

Powered by FluxBB