Unix Technical Forum

Swap problem

This is a discussion on Swap problem within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> I have a gentoo system that I've given 256 mgs of swap to but the swap space does "show ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 11:08 AM
David
 
Posts: n/a
Default Swap problem

I have a gentoo system that I've given 256 mgs of swap to but the swap
space does "show up" when I use commands like df and mount, although
running top shows that there is 256 mgs of swap there. Support for swap
is enabled in the 2.6.10 kernel.

The only thing dmesg says about it is:
Adding 258040k swap on /dev/hda2. Priority:-1 extents:1

When I run swapon -a as root I get the response:
swapon: /dev/hda2: Device or resource busy

My /etc/fstab for the swap entry is:
/dev/hda2 none swap sw 0 0

Why does the system say the device is busy when I try to mount it, and
how can I mount get it to mount at boot?

TIA,
David
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 11:08 AM
Paul Bredbury
 
Posts: n/a
Default Re: Swap problem

David wrote:
> I have a gentoo system that I've given 256 mgs of swap to but the swap
> space does "show up" when I use commands like df and mount, although
> running top shows that there is 256 mgs of swap there. Support for swap
> is enabled in the 2.6.10 kernel.


"Does" or "does not"?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 11:08 AM
FriendlyGhost
 
Posts: n/a
Default Re: Swap problem

David wrote:
> I have a gentoo system that I've given 256 mgs of swap to but the swap
> space does "show up" when I use commands like df and mount, although
> running top shows that there is 256 mgs of swap there. Support for swap
> is enabled in the 2.6.10 kernel.
>
> The only thing dmesg says about it is:
> Adding 258040k swap on /dev/hda2. Priority:-1 extents:1
>
> When I run swapon -a as root I get the response:
> swapon: /dev/hda2: Device or resource busy
>
> My /etc/fstab for the swap entry is:
> /dev/hda2 none swap sw 0 0
>
> Why does the system say the device is busy when I try to mount it, and
> how can I mount get it to mount at boot?
>
> TIA,
> David


Hi David,

I believe it is automatically 'mounted' during boot when it is in fstab
like you wrote.
What does swapon say when you've used swapoff first?

-FriendlyGhost

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 11:08 AM
Sybren Stuvel
 
Posts: n/a
Default Re: Swap problem

David enlightened us with:
> I have a gentoo system that I've given 256 mgs of swap to but the swap
> space does "show up" when I use commands like df and mount


Assuming you mean "doesn't" - it's really normal that it doesn't show
up there. Why would it? It isn't a file system, you don't mount it.
Why would it show up on the output of 'mount'?

> although running top shows that there is 256 mgs of swap there.


So no problem.

> The only thing dmesg says about it is:
> Adding 258040k swap on /dev/hda2. Priority:-1 extents:1


Yessss... so what is your problem?

> When I run swapon -a as root I get the response:
> swapon: /dev/hda2: Device or resource busy


Because it's already being used. Did you expect anything else?

> My /etc/fstab for the swap entry is:
> /dev/hda2 none swap sw 0 0


Which is apparently correct.

> Why does the system say the device is busy when I try to mount it


You're not even trying to mount it. Why do you mix things up so badly?

> and how can I mount get it to mount at boot?


Why do you keep insisting on mounting something that isn't mountable,
especially when your computer tells you everything is fine?

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com