LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-26-2004, 06:03 PM   #1
mouse46
Member
 
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Rep: Reputation: 15
How do I know that my swap is enabled and working properly?


Hello,

How do I know that my swap is enabled and working properly? I am running fedora core 2 and I have placed my swap on the 4th SATA drive.

Any helps is appreciated
 
Old 10-26-2004, 06:09 PM   #2
inv|s|ble
Member
 
Registered: Dec 2001
Distribution: freeBSD, slack 9/10/current
Posts: 60

Rep: Reputation: 15
You can type 'man free' from the command line. It just reads /proc/meminfo so you could 'cat /proc/meminfo'
 
Old 10-26-2004, 06:25 PM   #3
mouse46
Member
 
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Original Poster
Rep: Reputation: 15
If I am reading this correctly then the swap is non-existant

Code:
MemTotal:       515848 kB
MemFree:         71748 kB
Buffers:        149196 kB
Cached:         119552 kB
SwapCached:          0 kB
Active:         328176 kB
Inactive:        63804 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       515848 kB
LowFree:         71748 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:              56 kB
Writeback:           0 kB
Mapped:         183360 kB
Slab:            46060 kB
Committed_AS:   294388 kB
PageTables:       2608 kB
VmallocTotal:  3612664 kB
VmallocUsed:      2120 kB
VmallocChunk:  3610440 kB
HugePages_Total:     0
HugePages_Free:      0
Hugepagesize:     4096 kB
swap is seen as 0 kb!!

Should I do a reinstall?
 
Old 10-26-2004, 06:37 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Nuh :)

Just check your /etc/fstab ... see where swap is
pointing to, whether it's the right device and whether
it's enabled on boot.



Cheers,
Tink
 
Old 10-26-2004, 06:55 PM   #5
mouse46
Member
 
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Original Poster
Rep: Reputation: 15
Thnank you. I checked the /etc/fstab and it was wrong. I corrected it and saved it.

But I have not done anything like this before, how do I enable swap? is it not enabled by default?
 
Old 10-26-2004, 07:06 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Not if the entry in fstab was wrong

You can turn it on manually by issuing
swapon -a


Cheers,
Tink
 
Old 10-26-2004, 07:09 PM   #7
black hole sun
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127

Rep: Reputation: 15
Type in

free -m

If it says 0 under available swap space, then you don't have any.
 
Old 10-26-2004, 07:14 PM   #8
mouse46
Member
 
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Original Poster
Rep: Reputation: 15
fstab was

Quote:
/dev/hdg swap swap defaults 0 0
But that doesnt' exist, so I changed it what it is during my install setup

Quote:
/dev/sdb1 swap swap defaults 0 0
but when I do this 'swapon -a' I get

Quote:
[root@localhost root]# swapon -a
swapon: /dev/sdb1: Device or resource busy
I checked the fstaba again and it is still not showing up.....any thought?

p.s. help received with thanks
 
Old 10-26-2004, 07:18 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Sorry mate, with those distro's that use evil things
like supermount and other wizardry to protect their
victim, errrh, user from intimate knowledge of their
machine I'm out of my depth :)

You could post the output of
fdisk -l
and
mount
to see what's actually going on... (hopefully)


Cheers,
Tink
 
Old 10-26-2004, 07:32 PM   #10
mouse46
Member
 
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87

Original Poster
Rep: Reputation: 15
problem was solved when I rebooted the system 3 times, and it is now working. YAY


inv|s|ble, black hole sun and Tinkster, I would like to thank you for the help you have given me, it is greatly appreciated and I Thank you! I just hope I may be able to repay you for your help in this life (or the next ones )

Last edited by mouse46; 10-26-2004 at 07:33 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless Network not working with Encryption enabled goel_ar Linux - Wireless Networking 3 07-26-2005 08:53 AM
text mode is unusable (not working) if nvidia 3D drivers are enabled K6H Linux - Software 6 01-12-2005 07:06 AM
X not working properly. MylesCLin Linux - Software 1 09-15-2004 10:46 AM
Once Nic card is enabled...xwindows stops working? AnthonyM Linux - General 3 02-28-2003 07:33 PM
Slackware 8.0 with SMP enabled sound driver not working mdroz Slackware 1 05-16-2002 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration