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, |
did you try : #mkswap /dev/hda4 ?
and then : #swapon -a ? egag |
root@Colossus:~# mkswap /dev/hda4
Setting up swapspace version 1, size = 131600 kB root@Colossus:~# swapon -a swapon: /dev/hda4: Function not implemented Sigh ! |
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 |
yeah, it was my question but nobody was able to solve the matter, I will try make xconfig as you suggested me.
Thank you, |
All times are GMT -5. The time now is 10:03 PM. |