URN Logo
UNIX Resources » Linux » Linux Forum » Gentoo Help » Page.10 » Swap problem
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Swap problem
Subject: Swap problem
Author: David    Posted: 2005-06-24 13:58:51    Length: 879 byte(s)
[Original] [Print] [Top]
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

[Original] [Print] [Top]
Subject: Swap problem
Author: Paul Bredbury    Posted: 2005-06-24 10:31:20    Length: 523 byte(s)
[Original] [Print] [Top]
David wrote:
QUOTE
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"?

[Original] [Print] [Top]
Subject: Swap problem
Author: FriendlyGhost    Posted: 2005-06-24 16:03:32    Length: 1,313 byte(s)
[Original] [Print] [Top]
David wrote:
QUOTE
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

[Original] [Print] [Top]
Subject: Swap problem
Author: Sybren Stuvel    Posted: 2005-06-24 16:47:54    Length: 3,218 byte(s)
[Original] [Print] [Top]
David enlightened us with:
QUOTE
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'?

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

So no problem.

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

Yessss... so what is your problem?

QUOTE
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?

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

Which is apparently correct.

QUOTE
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?

QUOTE
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

[Original] [Print] [Top]
« Previous thread
Second instalation
Gentoo Help
Page. 10
Next thread »
libdirectfb-0.9.so.20 not found
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 13:18:20, cost 0.042501926422119 ms.