Solved

how to enable swap space automatically

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

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). …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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.:
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…

932 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

15 Experts available now in Live!

Get 1:1 Help Now