Solved

how to enable swap space automatically

Posted on 1997-07-16
2
306 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LINUX backups with VEEAM 8 160
maybe no no httpd.conf 6 79
bash file 10 68
SSSD - Automatic kerberos ticket initialization 1 18
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
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

726 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