LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
LinkBack Search this Thread
Old 07-14-2004, 03:40 PM   #1
adking
LQ Newbie
 
Registered: Jul 2004
Location: Toronto
Distribution: FC2
Posts: 4

Rep: Reputation: 0
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!
 
Old 07-14-2004, 03:54 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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
 
Old 07-17-2004, 02:17 PM   #3
adking
LQ Newbie
 
Registered: Jul 2004
Location: Toronto
Distribution: FC2
Posts: 4

Original Poster
Rep: Reputation: 0
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!
 
Old 07-17-2004, 05:01 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
Old 07-18-2004, 11:28 AM   #5
adking
LQ Newbie
 
Registered: Jul 2004
Location: Toronto
Distribution: FC2
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 07-23-2004, 01:35 PM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 46
hope you ran

swapon /dev/hxxn where hxx is the partition you have created for swap (Partition type 82)
 
Old 07-23-2004, 05:43 PM   #7
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
Wink

Erm ... you're not happy that the kernels memory management is too good?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FC2 1.521 hangs after "enabling swap space" Oxxide Fedora - Installation 2 10-30-2004 05:19 PM
Sony Vaio PCG-NVR23 Booting FC2, hangs after "Enabling Swap Space" mgargiullo Fedora 1 09-08-2004 09:47 AM
Fedora 2 install with total Newbie davy999 Linux - Newbie 15 08-08-2004 12:07 PM
Total newbie, sorry. How do you install software in Linux? chriswhitworth Linux - Software 10 11-08-2003 07:19 PM
Total Newbie, pleae help me out: post install problems. Venomous Squirr Linux - General 18 10-17-2002 08:34 PM


All times are GMT -5. The time now is 12:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration