You are not logged in.

#1 2008-10-01 05:24:12

Jadedknight
Member
Registered: 2007-12-15
Posts: 10

[solved] Swap Fail

Ok, I am really happy because I got my Arch box up and running in one shot. It was very fun, and I am pretty proud of myself. The main reason I am getting into linux is because a lot of the development tools it has. Anyways, when my box is first boating up, you know where it says [BUSY], or [READY] I believe... whenever it gets to loading swap it always says [FAIL] but keeps going on and the OS seems to work fine. I would like to fix this though, I set my swap as 1GB, and I used the auto partition during setup.. any ideas?

Last edited by Jadedknight (2008-10-01 23:30:48)

Offline

#2 2008-10-01 05:43:29

AD28
Member
Registered: 2008-09-16
Posts: 161

Re: [solved] Swap Fail

Run this command to make sure your swap really isn't activated:

free

If it shows no swap, post your /etc/fstab file.

Offline

#3 2008-10-01 05:44:39

darthaxul
Member
Registered: 2008-09-24
Posts: 156

Re: [solved] Swap Fail

I had something similar on diffrent distro and it was REALLY slow without swap as i had only 1 gig ram.
type the command
cat /etc/fstab
and
mount

wht does it report?

Offline

#4 2008-10-01 06:26:39

Jadedknight
Member
Registered: 2007-12-15
Posts: 10

Re: [solved] Swap Fail

AD28 wrote:

Run this command to make sure your swap really isn't activated:

free

If it shows no swap, post your /etc/fstab file.

total       used       free     shared    buffers     cached
Mem:       2595236     586532    2008704          0      44168     224344
-/+ buffers/cache:     318020    2277216
Swap:      1028152          0    1028152

That is what is shows when I type free

Edit: Actually that is not a good representation, basically it shows the total, 0 being used, and the total ammount is free.

Last edited by Jadedknight (2008-10-01 06:27:26)

Offline

#5 2008-10-01 06:34:41

AD28
Member
Registered: 2008-09-16
Posts: 161

Re: [solved] Swap Fail

You've got a gig of swap loaded, so if you're seeing a [FAIL] during boot, it's from something else.  Check through your /var/log files.

Offline

#6 2008-10-01 18:04:36

Jadedknight
Member
Registered: 2007-12-15
Posts: 10

Re: [solved] Swap Fail

Hm, I am not sure what to look for or how to properly do that... sad

Offline

#7 2008-10-01 18:53:57

rsambuca
Member
From: Calgary, Canada
Registered: 2008-07-21
Posts: 143

Re: [solved] Swap Fail

I had this on my setup as well.  When I checked, swap was working, but it always said "fail" for the activating swap line.  It turns out I had the swap line in my fstab twice.  Check your /etc/fstab for your swap entry.

Offline

#8 2008-10-01 23:14:40

Jadedknight
Member
Registered: 2007-12-15
Posts: 10

Re: [solved] Swap Fail

# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


UUID=3c102106-63c5-4d90-886a-b49c664bab6c /boot ext2 defaults 0 1
UUID=59297b96-6439-4755-b41e-f49a2968c5b5 / ext3 defaults 0 1
UUID=7c01f972-e785-46c8-a252-36d5b5034cdc /home ext3 defaults 0 1
UUID=a6cc0813-60b8-422f-96a1-23534624f7c1 swap swap defaults 0 0
/dev/cdrom /media/cdrom   auto    ro,user,noauto,unhide   0      0
/dev/dvd /media/dvd   auto    ro,user,noauto,unhide   0      0
UUID=3c102106-63c5-4d90-886a-b49c664bab6c /boot ext2 defaults 0 1
UUID=59297b96-6439-4755-b41e-f49a2968c5b5 / ext3 defaults 0 1
UUID=7c01f972-e785-46c8-a252-36d5b5034cdc /home ext3 defaults 0 1
UUID=a6cc0813-60b8-422f-96a1-23534624f7c1 swap swap defaults 0 0

This is what is in /etc/fstab

Offline

#9 2008-10-01 23:25:09

AD28
Member
Registered: 2008-09-16
Posts: 161

Re: [solved] Swap Fail

rsambuca was right.. the last 4 lines are duplicate entries, so you can delete them.

Offline

#10 2008-10-01 23:27:14

Jadedknight
Member
Registered: 2007-12-15
Posts: 10

Re: [solved] Swap Fail

Ok! Thank you so much for your help

Offline

Board footer

Powered by FluxBB