Solved

Swap Space

Posted on 1998-10-26
3
391 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
ID: 1638366
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
ID: 1638367
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
ID: 1638368
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

776 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