LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-15-2004, 04:44 PM   #1
Valso
LQ Newbie
 
Registered: Oct 2004
Location: Madison, WI
Distribution: Debian
Posts: 7

Rep: Reputation: 0
Swap setup concerns


Hi there, I just recently started using the Debian stable dist. (and this is my first *inx) system so if I don't explain anything clearly enough, let me know.

My problem is I do not think the swap file was initially setup properly. These are the results of free, /etc/fstab:

debian:/etc# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda5 /home ext3 defaults 0 2
/dev/hda6 none swap sw 0 0
/dev/hdc /media/cdrom0 iso9660 ro,user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
debian:/etc# free
total used free shared buffers cached
Mem: 775600 760244 15356 0 85264 559692
-/+ buffers/cache: 115288 660312
Swap: 1494004 0 1494004
----------------------------------------------------------------------------------------------
It seems like my swap is there, but not actually mounted, however i can't quite understand what is wrong, or how to go about fixing this. There is also the chance it is working, and I just have all the swap being used in the cache?

- Ted
 
Old 10-15-2004, 04:54 PM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
You can mount it with:

Code:
swapon /dev/hda6
Only a temporary solution. You have to run that on startup as well.
 
Old 10-15-2004, 08:16 PM   #3
Valso
LQ Newbie
 
Registered: Oct 2004
Location: Madison, WI
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
I get this message when i tried that:

Code:
swapon: /dev/hda6: Device or resource busy
but i don't see what is causing it to be busy.

- Ted
 
Old 10-15-2004, 08:30 PM   #4
Valso
LQ Newbie
 
Registered: Oct 2004
Location: Madison, WI
Distribution: Debian
Posts: 7

Original Poster
Rep: Reputation: 0
Nm, seems like I found my solution:

http://www.linuxquestions.org/questi...t=memory+usage

along with reading the 'man swapon' pages, it seems that if I type: swapon -a, and i don't see the /dev/hda6, but it is listed in /etc/fstab, then it is currently active, and just hasn't been needed.

(if i am wrong, please let me know)

-Ted
 
Old 10-16-2004, 04:34 AM   #5
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Yes that error you got was because it was already turned on.
 
  


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
A how to: How much Swap to setup/Linux eats my RAM MasterC Linux - General 5 01-13-2004 07:30 AM
virus concerns? bosewicht Mandriva 6 08-29-2003 12:55 PM
apache concerns patski888 Linux - Networking 2 07-24-2003 08:41 PM
concerns davidpurple Linux - Newbie 9 10-12-2001 10:38 AM
Setup free space on /dev/hdc without screwing up /swap DavidPhillips Linux - General 4 06-24-2001 11:35 AM

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

All times are GMT -5. The time now is 11:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration