Solved

Swap Space

Posted on 1998-10-26
3
382 Views
Last Modified: 2013-12-05
I am running Slackware 3.5

Do any of you have any idea why it says 'Swap size 0' when I enter the command 'free'?  Is it possible that it's not turned on?  
0
Comment
Question by:ciris
3 Comments
 
LVL 2

Accepted Solution

by:
frowijn earned 50 total points
Comment Utility
look in the /etc/fstab

if there is a option for swap space, it;s there else not !

else you have to make a line in the /etc/fstab like this :

/dev/(your swap device)           swap          swap          defaults      1   1

cheers

Oscar Frowijn

0
 

Expert Comment

by:iceberg102998
Comment Utility
Go into your /etc/rc.d directory and edit the file rc.sysinit.

There should be a line that says
"# Start up swapping
echo "Activating swap partitions"
swapon -a"

if that line isn't there you need to add it, if it is there make sure that your swap partition is listed in /etc/fstab

Hope that helps!
0
 

Expert Comment

by:olvo
Comment Utility
You can type dmesg|more to check if at boot time the system started your swap.
If the swap was activated, but you still read 0, try fdisck to see if the partion is really a Linux swap (I think it shoul be tag 82).
Try to start the swap are by hand, entering the command suggeted above, "swapon -a".
Finally, is your swap is not a Linux type, you can always allocate some of the file system
space to swap, configuring for dynamic allocation, like (forgive me) Windows. Do a man page to see the options

  Good luck
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now