Solved

Swap Space

Posted on 1998-10-26
3
396 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

707 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