LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2004, 02:48 AM   #1
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Rep: Reputation: 30
Unhappy new kernel(2.6.0) --> no more swap


I compiled and installed the 2.6.0 kernel yesterday and noticed it being really slow at some point, so I emediatly checked out the status of my memory and saw that he doesn't see or know that I have a swap partition...
My 2.4.22 (Backup) kernel does see it because he still works perfectly... And yes I have a swap partition...

How do I resolve this problem? Did I forget something in the kernel's configuration?

tnx 4 all help...
 
Old 01-12-2004, 03:47 AM   #2
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Hi!
Check your ".config" file (mine is in "/usr/src/linux/"), and look for a line like this one:
Code:
CONFIG_SWAP=y
(It should be at the very beginning of the file, under "General setup" section.)
if you have instead
Code:
CONFIG_SWAP=n
, that's your problem, you should recompile.
Regards
 
Old 01-12-2004, 03:51 AM   #3
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
... I forgot
This option ("CONFIG_SWAP") is found, when you do "make menuconfig", under "General setup", and is called "Support of paging of anonymous memory".
Regards
 
Old 01-12-2004, 04:09 AM   #4
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
nope, I have CONFIG_SWAP=y

I compiled this kernel based on my previous compile (and that kernel is my current backup kernel). It's really anoying since I don't have much ram 128Mb...
 
Old 01-12-2004, 04:15 AM   #5
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
...and, of course, your fstab didn't change in the process; i.e. you have a line like
Code:
/dev/hdc2        swap             swap        defaults         0   0
in your "/etc/fstab", don't you?
Regards
 
Old 01-12-2004, 04:43 AM   #6
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
Stupid of me overlooking this, but still... how is it possible that the fstab file changes with a kernel compile???

tnx!
 
Old 01-12-2004, 04:50 AM   #7
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
..I know, I know. I didn't mean
Quote:
that the fstab file changes with a kernel compile
but, I thought it could be changed (you or someone else).
Anyway, I didn't read properly , your first post tells
Quote:
My 2.4.22 (Backup) kernel does see it because he still works perfectly...
Does the "dmesg" say something about it?
Regards
 
Old 01-12-2004, 04:59 AM   #8
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
no I am sorry I wasn't quit clear in my previous post... it is solved, thi swas my problem.
I can't understand what removed the line in /etc/fstab, since I never altered this file.
I did on Mandrake, but on slack all seem to be in place as it was... It couldn't be someone else either, since I am the only one using this pc.
Hmm, strange...

well, it is solved anyway... next time my pc is running in slowmo, i'll check my fstab .

Greetz and many tanks,
Elluva
 
Old 01-12-2004, 05:10 AM   #9
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
I misunderstood you, sorry!

happy to hear you got swap again, though

But, it's strange...
I'm just curious; what do you mean with
Quote:
I did on Mandrake, but on slack all seem to be in place as it was...
Regards
 
Old 01-12-2004, 05:23 AM   #10
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
well on mandrake I had to change some things in /etc/fstab, some things that weren't mounted automatic.
Since everything mounted correctly on slackware, I didn't change the fstab file, 'cause i didn't need to...
 
Old 01-12-2004, 05:51 AM   #11
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
so both boot the same kernel? do slack and mdk share the "/boot" partition? or did you compile the kernel for only one of them?
Regards
 
Old 01-12-2004, 05:56 AM   #12
elluva
Member
 
Registered: Aug 2003
Location: Belguim, Ostend and Ghent
Distribution: Ubuntu
Posts: 600

Original Poster
Rep: Reputation: 30
they share /boot there I have:

*The original kernels that came with mdk to boot mdk. (mdk)
*My previous precompiled kernel (2.4.22) which I used as backup kernel (Slack)
*My new compiled 2.6.0 kernel (slack)

The only thing shared between mdk and slack are the /home and /boot partitions...
 
  


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 do I swap kernel modules ?? ozymandias Linux - Newbie 6 10-28-2005 09:46 PM
No HD swap with a home-compiled kernel. Linux.tar.gz Linux - Hardware 4 06-07-2005 04:57 PM
No swap activated on kernel 2.6 gt73 Slackware 4 08-30-2004 06:51 AM
Swap and Kernel 2.6.7 d00msweek Linux - Newbie 3 06-17-2004 05:29 PM
no swap on self-compiled 2.6.3 kernel sterrenkijker Debian 0 03-21-2004 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:45 AM.

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