LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-09-2005, 04:48 PM   #1
superchar42
LQ Newbie
 
Registered: Jan 2005
Location: Michigan
Distribution: Ubuntu 13.04 Testing
Posts: 24

Rep: Reputation: 0
Swap space not being used?!


Okay, I've searched ALL over for this, and I'm finally asking for help, because it's just got me going crazy...

Anyways. I've installed Slack 10.0 on a Thinkpad 600X (I didn't think this was so much a hardware problem so I didn't post this in there) that has a P III and 500mhz. I have 192mb RAM, and I've installed it as the sole OS on a 40 gig hard drive. I wanted to be generous so I gave myself a 2 gig swap (/hda2 I think).... and I read all the manpages on the addswap and mkswap commands, and tried doing all that in root....

I've been all over all the help forums, and I've practically whored google over this, and I just can't find out how to get my swap working! If I use too much memory (by the looks of things, the little status ticker for the memory in Gnome is always at the highest when this happens) it just crashes. Nothing moves, so I have to just shut it off and try again.

Any suggestions on what to do?

Thanks for any help,

Charlene
 
Old 02-09-2005, 04:55 PM   #2
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,180

Rep: Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377Reputation: 1377
Post the contents of /etc/fstab. Usually during the installation phase of Slackware, you have the option for formatting both linux and swap partitions, and after it has done that, it autoamatically updates your fstab with your linux, swap, and other partitions that it sees, and so because of that , swap should always be turned on automatically each time you boot. Also, try just typing mount, and see what comes up.
 
Old 02-09-2005, 05:15 PM   #3
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
2GB is probably a bit much for swap space, IMO. You could probably make do with just 256MB of swap space, or if you want to be generous, 512MB.

Anyway, assuming that your swap is on /dev/hda4 (that's where it is on my laptop), you need a line like this in /etc/fstab:
/dev/hda4 swap swap defaults 0 0
 
Old 02-09-2005, 05:41 PM   #4
superchar42
LQ Newbie
 
Registered: Jan 2005
Location: Michigan
Distribution: Ubuntu 13.04 Testing
Posts: 24

Original Poster
Rep: Reputation: 0
I looked and apparently I don't have an /etc/fstab file? Should I create it, and if I do, what should I put in it?
 
Old 02-09-2005, 06:03 PM   #5
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
You're writing it entirely in lower case? You should have /etc/fstab. Easy way to check, try mounting your floppy drive or cdrom. Doesn't even matter if there's a disk in the drive, because the error you get will be telling of the problem.

If you don't have an /etc/fstab at all, then you've got more worrying problems. That's part of the etc package in the A set, and I'm not even sure if the install will let you not install that package. It's also modified by the install to reflect what it finds for your cdrom and floppy drives, and any other partitions you set up.

If you want to try resolving things by creating it, I can't tell you exactly what to put in there. It depends entirely on your system configuration and your partitions. FWIW, this is what mine looks like:
Code:
/dev/hda4        swap             swap        defaults         0   0
/dev/hda3        /                reiserfs    defaults         1   1
/dev/hda2        /mnt/winshare    vfat        defaults         1   0
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
 
Old 02-09-2005, 06:36 PM   #6
superchar42
LQ Newbie
 
Registered: Jan 2005
Location: Michigan
Distribution: Ubuntu 13.04 Testing
Posts: 24

Original Poster
Rep: Reputation: 0
Sorry, I was a bit incorrect with my last post. I meant that it didn't show the "swap" listing in the fstab.

Sorry about the confusion.
 
Old 02-10-2005, 03:43 AM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
And to find your swap partition name, try :
/sbin/fdisk -l | grep swap
 
Old 02-10-2005, 09:41 AM   #8
superchar42
LQ Newbie
 
Registered: Jan 2005
Location: Michigan
Distribution: Ubuntu 13.04 Testing
Posts: 24

Original Poster
Rep: Reputation: 0
Awesome. So it replied with this:
/dev/hda2 4682 4870 1518142+ 82 Linux Swap


What should I do with this information now?
 
Old 02-10-2005, 02:28 PM   #9
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Hopefully, you already figured it out from all the previous posts. If not, putting it all together results in,

Add the following line to /etc/fstab:

Code:
/dev/hda2        swap             swap        defaults         0   0
 
Old 02-10-2005, 03:48 PM   #10
kopikat
Member
 
Registered: Dec 2004
Location: Argentina
Distribution: Slack 10
Posts: 45

Rep: Reputation: 15
2gb??
I have a P2@400 and 256mb and I only have 128mb of swap, of which I have never used more than 65mb (and that running X with mathematica, firefox and thunderbird).
 
Old 02-10-2005, 05:03 PM   #11
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
Ok I need some help with sawp also.

I have followed everything you people said but i have an issue. First I did /sbin/fdisk -l | grep swap and got /dev/hda6 9709 9728 160618+ 82 Linux swap so then I added
/dev/hda6 swap swap defaults 0 0 to my fstab and then I did mount /dev/hda6 but then i get mount: mount point swap does not exist


What should I do now?

edit: I rebooted and it was loaded up

Last edited by cereal83; 02-10-2005 at 05:16 PM.
 
Old 02-10-2005, 05:09 PM   #12
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
Accually, I rebooted my machine and swap is now working.

Thanks guy for posting some info because it helped me too
 
Old 02-10-2005, 05:15 PM   #13
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
ok well I am making my computer work by doing updatedb in console and now my total memory is at 99% and my swap is still at 100% empty. Is there anything else I need to do, to get it working or how does the swap work?
 
Old 02-10-2005, 08:59 PM   #14
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
Anybody? can anybody help?
 
Old 02-11-2005, 10:07 AM   #15
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
bump

need some help still

 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
swap space alphisb0t Linux - Software 1 07-05-2004 03:16 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
swap space not being used bishal Linux - Software 16 05-07-2004 12:28 AM
Swap Space bawbag Slackware 6 07-16-2003 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:32 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration