Solved

how to enable swap space automatically

Posted on 1997-07-16
2
307 Views
Last Modified: 2013-12-15
hi,
I'm linux newbie.my problem is :everytime after booting the system,I have to enable swap space by typing "swapon /dev/hda3" manually.I would like it to be done automatically.How?
Thanks.
0
Comment
Question by:bpmf
[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
  • 2
2 Comments
 
LVL 1

Accepted Solution

by:
mgrcnk earned 10 total points
ID: 1628673
You need to add the following to /etc/fstab:

/dev/hda3               swap            swap    defaults

Just put in on the last line.  I use tabs for the big gaps in between each field.

chris
0
 
LVL 1

Expert Comment

by:mgrcnk
ID: 1628674
Oh, and typically, 10 points is rather pathetic.  For an easy one, at least award 50 points.

chris
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

717 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