LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-30-2004, 04:51 AM   #1
gt73
Member
 
Registered: Sep 2003
Distribution: LDME
Posts: 41

Rep: Reputation: 15
No swap activated on kernel 2.6


Hi,

I compiled the kernel 2.6.4 with make oldconfig. I don't have swap:

root@Colossus:~# free -m
total used free shared buffers cached
Mem: 502 498 4 0 14 338
-/+ buffers/cache: 145 357
Swap: 0 0 0

root@Colossus:~# swapon /dev/hda4
swapon: /dev/hda4: Function not implemented

root@Colossus:~# fdisk -l /dev/hda
Disk /dev/hda: 80.0 GB, 80054059008 bytes
255 heads, 63 sectors/track, 9732 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3 24066 83 Linux
/dev/hda2 4 4869 39086145 83 Linux
/dev/hda3 4870 9716 38933527+ 83 Linux
/dev/hda4 9717 9732 128520 82 Linux swap

root@Colossus:~# cat /etc/fstab
/dev/hda4 swap swap defaults 0 0

root@Colossus:~# grep SWAP /usr/src/linux-2.6.4/.config
CONFIG_SWAP=y
CONFIG_X86_BSWAP=y

What else do I need to do to activate this damn swap ? I need it !

Thank you,
 
Old 08-30-2004, 07:08 AM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
did you try : #mkswap /dev/hda4 ?
and then : #swapon -a ?

egag
 
Old 08-30-2004, 07:13 AM   #3
gt73
Member
 
Registered: Sep 2003
Distribution: LDME
Posts: 41

Original Poster
Rep: Reputation: 15
root@Colossus:~# mkswap /dev/hda4
Setting up swapspace version 1, size = 131600 kB

root@Colossus:~# swapon -a
swapon: /dev/hda4: Function not implemented

Sigh !
 
Old 08-30-2004, 07:48 AM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
maybe it's got something to do with ' make oldconfig '. you're using the .config
of your prev. ( 2.4.x ) ?. also found this : http://kerneltrap.org/node/view/2987
seems like your Q ?

i should try a 'make xconfig' with the old .config ( to start with ) and check if all swap and paging functions are enabled , and then 'make bzImage etc....

egag

Last edited by egag; 08-30-2004 at 07:49 AM.
 
Old 08-30-2004, 07:51 AM   #5
gt73
Member
 
Registered: Sep 2003
Distribution: LDME
Posts: 41

Original Poster
Rep: Reputation: 15
yeah, it was my question but nobody was able to solve the matter, I will try make xconfig as you suggested me.

Thank you,
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I swap kernel modules ?? ozymandias Linux - Newbie 6 10-28-2005 10:46 PM
Swap partition not activated... BobL Arch 5 03-17-2005 07:08 PM
Swap and Kernel 2.6.7 d00msweek Linux - Newbie 3 06-17-2004 06:29 PM
kernel compiling problem (need to activated acpi) noyz Linux - Newbie 12 03-28-2004 05:06 AM
new kernel(2.6.0) --> no more swap elluva Linux - Software 11 01-12-2004 06:56 AM

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

All times are GMT -5. The time now is 01:20 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