Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-14-2004, 04:40 PM
|
#1
|
LQ Newbie
Registered: Jul 2004
Location: Toronto
Distribution: FC2
Posts: 4
Rep:
|
Total newbie -- enabling swap after install (FC2)
Hi guys,
I recently installed FC2, dual booted with XP, and for some reason Disk Druid wouldn't let me make a swap partition on install, so I made one later on with PartitionMagic. I have 512 memory, 1 gig swap partition, but I have no idea how to make linux use the swap.
I need swap to work both for root and other users. My RAM is full but no swap is being used. I've been using Linux for a while, but only at school so I have absolutely no depth of knowledge.
Thanks! 
|
|
|
07-14-2004, 04:54 PM
|
#2
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
You need to add a line to /etc/fstab like
/dev/hda5 swap swap defaults 0 0
change the hda5 to reflect where your swap partition is then as root do
mount -a
|
|
|
07-17-2004, 03:17 PM
|
#3
|
LQ Newbie
Registered: Jul 2004
Location: Toronto
Distribution: FC2
Posts: 4
Original Poster
Rep:
|
Quote:
Originally posted by Andrew Benton
You need to add a line to /etc/fstab like
/dev/hda5 swap swap defaults 0 0
change the hda5 to reflect where your swap partition is then as root do
mount -a
|
ok... i did that, then i logged in as my general user, then ran a bunch of programs to fill my memory, but the swap still isn't being used.
so then i tried su'ing and i ran
mount -a
and
swapon -a
and the swap still isn't being used. my swap is a 1 gig partition, /dev/hda6, not that it matters, but it's still not being used! 
|
|
|
07-17-2004, 06:01 PM
|
#4
|
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073
Rep:
|
Half a Gb is plenty of memory. Why do you want it to use the swap partition? Won't it slow down your system? Google on swappiness and do some reading.
|
|
|
07-18-2004, 12:28 PM
|
#5
|
LQ Newbie
Registered: Jul 2004
Location: Toronto
Distribution: FC2
Posts: 4
Original Poster
Rep:
|
I tend to do a lot of scientific programming and right now I'm working on an application that takes upwards of 1.3G of memory -- obviously I have to stick to smaller instances on my home machine
I guess it's not really critical, but I'd like to know how to do it anyway.
|
|
|
07-23-2004, 02:35 PM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
hope you ran
swapon /dev/hxxn where hxx is the partition you have created for swap (Partition type 82)
|
|
|
07-23-2004, 06:43 PM
|
#7
|
Member
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305
Rep:
|
Erm ... you're not happy that the kernels memory management is too good?
|
|
|
All times are GMT -5. The time now is 07:12 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|