Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Swap Space

Posted on 1998-10-26
3
Medium Priority
?
399 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 100 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

618 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