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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-26-2004, 06:03 PM
|
#1
|
Member
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87
Rep:
|
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
|
|
|
10-26-2004, 06:09 PM
|
#2
|
Member
Registered: Dec 2001
Distribution: freeBSD, slack 9/10/current
Posts: 60
Rep:
|
You can type 'man free' from the command line. It just reads /proc/meminfo so you could 'cat /proc/meminfo'
|
|
|
10-26-2004, 06:25 PM
|
#3
|
Member
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87
Original Poster
Rep:
|
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?
|
|
|
10-26-2004, 06:37 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
10-26-2004, 06:55 PM
|
#5
|
Member
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87
Original Poster
Rep:
|
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?
|
|
|
10-26-2004, 07:06 PM
|
#6
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Not if the entry in fstab was wrong
You can turn it on manually by issuing
swapon -a
Cheers,
Tink
|
|
|
10-26-2004, 07:09 PM
|
#7
|
Member
Registered: Jul 2004
Distribution: Slackware Current
Posts: 127
Rep:
|
Type in
free -m
If it says 0 under available swap space, then you don't have any.
|
|
|
10-26-2004, 07:14 PM
|
#8
|
Member
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87
Original Poster
Rep:
|
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
|
|
|
10-26-2004, 07:18 PM
|
#9
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
10-26-2004, 07:32 PM
|
#10
|
Member
Registered: Mar 2004
Location: London
Distribution: Kubuntu, Debian
Posts: 87
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:15 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|