Solved

how to enable swap space automatically

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

747 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

9 Experts available now in Live!

Get 1:1 Help Now