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

x
?
Solved

how to enable swap space automatically

Posted on 1997-07-16
2
Medium Priority
?
312 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 40 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

609 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