Solved

swapon at bootup

Posted on 1997-03-14
1
348 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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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 …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

16 Experts available now in Live!

Get 1:1 Help Now