Re: Swapon not working

2008-11-03 Thread Richard Melville

 Hello, this really does sound like it isn't enabled in your kernel.
 The option is CONFIG_SWAP, or under the name Support for paging of
 anonymous memory (swap).


  zgrep CONFIG_SWAP /proc/config.gz ( or substitute grep and your
 .config if you didn't create /proc/config.gz )



   
Yeah, sorry for the noise.  Not sure what I was doing with grep -- my
only excuse is that it was Friday evening and I was tired.

Kernel is now re-configured and re-built and all is OK.

Thanks Lauri and Ken.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Swapon not working

2008-10-31 Thread Richard Melville
Hi

I've managed without a swap partition until now, but  I'm trying to
build open office and the build is failing at the last minute due to
lack of memory.  So now I've made a swap partition of 2 gig and run
mkswap.  I've also amended the fstab.  All seems fine until I run swapon
-a which returns Function not implemented.

I've tried making a swap file rather than a partition but I get the same
output. If I reboot to run the script at boot-time I can see the same
output.  I've tried various sizes of swap -- no difference.  Could it be
a udev problem?  I upgraded to udev-124 some time ago but everything
else works fine.  Running free -m shows swap but with all zeros, of
course.  Maybe swapon is corrupted -- I just don't know.  I have no
/proc/swaps file.  When is this generated?  I was wondering whether swap
has to be enabled in the kernel but I can find no reference to it in the
kernel .config.

I'd be really grateful for some help as I'm right at the final stage of
my BLFS build.

Richard
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: Swapon not working

2008-10-31 Thread Lauri Kasanen
 Hi
 
 I've managed without a swap partition until now, but  I'm trying to
 build open office and the build is failing at the last minute due to
 lack of memory.  So now I've made a swap partition of 2 gig and run
 mkswap.  I've also amended the fstab.  All seems fine until I run swapon
 -a which returns Function not implemented.
 
 I've tried making a swap file rather than a partition but I get the same
 output. If I reboot to run the script at boot-time I can see the same
 output.  I've tried various sizes of swap -- no difference.  Could it be
 a udev problem?  I upgraded to udev-124 some time ago but everything
 else works fine.  Running free -m shows swap but with all zeros, of
 course.  Maybe swapon is corrupted -- I just don't know.  I have no
 /proc/swaps file.  When is this generated?  I was wondering whether swap
 has to be enabled in the kernel but I can find no reference to it in the
 kernel .config.
 
 I'd be really grateful for some help as I'm right at the final stage of
 my BLFS build.
 
 Richard

Hello, this really does sound like it isn't enabled in your kernel.
The option is CONFIG_SWAP, or under the name Support for paging of anonymous 
memory (swap).

Hope I could help.

Lauri

-- 
___
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: Swapon not working

2008-10-31 Thread Ken Moffat
On Fri, Oct 31, 2008 at 07:12:44PM +, Richard Melville wrote:
 Hi
 
 I've managed without a swap partition until now, but  I'm trying to
 build open office and the build is failing at the last minute due to
 lack of memory.  So now I've made a swap partition of 2 gig and run
 mkswap.  I've also amended the fstab.  All seems fine until I run swapon
 -a which returns Function not implemented.
 
 I've tried making a swap file rather than a partition but I get the same
 output. If I reboot to run the script at boot-time I can see the same
 output.  I've tried various sizes of swap -- no difference.  Could it be
 a udev problem?  I upgraded to udev-124 some time ago but everything
 else works fine.  Running free -m shows swap but with all zeros, of
 course.  Maybe swapon is corrupted -- I just don't know.  I have no
 /proc/swaps file.  When is this generated?  I was wondering whether swap
 has to be enabled in the kernel but I can find no reference to it in the
 kernel .config.
 
 I'd be really grateful for some help as I'm right at the final stage of
 my BLFS build.
 
 Richard

 zgrep CONFIG_SWAP /proc/config.gz ( or substitute grep and your
.config if you didn't create /proc/config.gz )

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page