Solved

swapon at bootup

Posted on 1997-03-14
1
367 Views
Last Modified: 2013-12-15
Right now I do my swapon command manually after bootup.
In what file would I place this command to get the swap
activated automatically at boot?
0
Comment
Question by:jaanders
1 Comment
 

Accepted Solution

by:
timc earned 50 total points
ID: 1626990
It may depend on your flavour of Linux.

Using SysV style inits, the /etc/rc.d/rc.sysinit script contains some lines just after the network configuration call which say:

# Start up swapping.
echo "Activating swap partitions"
swapon -a

This is typical of your RedHat Linux's ...

If it's Slackware, perhaps look in /etc/rc.d/rc.S.  After the path statement, you can swapon there, e.g.

#!/bin/sh
#
# /etc/rc.d/rc.S:  System initialization script.
#

PATH=/sbin:/usr/sbin:/bin:/usr/bin

# enable swapping
/sbin/swapon -a

 etc ...

Does that help?

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Suggested Solutions

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…
Fine Tune your automatic Updates for Ubuntu / Debian
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.

792 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