LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2006, 10:45 AM   #1
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30
swap not mounted?


Actually it is mounted, since I can see it when using "free" command.

Quote:
total used free shared buffers cached
Mem: 256152 197144 59008 0 10404 103768
-/+ buffers/cache: 82972 173180
Swap: 538168 0 538168
But I can't see it when typing "mount"
Quote:
/dev/hda3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/fd0 on /mnt/fd0 type vfat (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
automount(pid1424) on /net type autofs (rw,fd=4,pgrp=1424,minproto=2,maxproto=4)
Below is my /etc/fstab. Notice there isn't a "/" before swap. Swap don't need
to be a physical directory?

Quote:
/dev/hda2 swap swap defaults 0 0
 
Old 07-10-2006, 10:57 AM   #2
AzrielMacKay
Member
 
Registered: Jul 2001
Location: Moody, AL
Distribution: Debian and Kubuntu
Posts: 249

Rep: Reputation: 30
No it doesnt. If you see it when you do free it should be good. You can also check with "top".
 
Old 07-10-2006, 11:01 AM   #3
antidrugue
LQ Newbie
 
Registered: Dec 2005
Distribution: Debian Sarge/Etch
Posts: 9

Rep: Reputation: 0
Quote:
Originally Posted by blackzone
Swap don't need
to be a physical directory?
Nope it doesn't. A typical swap entry in /etc/fstab would look like that :
Quote:
Originally Posted by /etc/fstab
/dev/hda2 none swap sw 0 0
Issuing
Code:
cat /proc/swaps
informs you about your swap file physical location and its priority.
 
Old 07-10-2006, 12:41 PM   #4
AzrielMacKay
Member
 
Registered: Jul 2001
Location: Moody, AL
Distribution: Debian and Kubuntu
Posts: 249

Rep: Reputation: 30
Yea having swap mounted would be very bad. Think of swap as just a stick of memory. If you were to be able to go into a stick of memory your kernel is using and just start sticking crap in there or removing stuff your kernel would not be too happy .
 
  


Reply



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
swap device not getting mounted jacobselvin Linux - Newbie 9 07-20-2005 09:48 AM
SWAP partion not being mounted Boffy Linux - General 6 02-14-2005 03:37 PM
swap partition not mounted after Debian installation codeape Linux - Hardware 4 02-12-2004 03:11 PM
3 issues: Making swap, fixing partitions, changing ownership of mounted filesystem. Dunedain Linux - Newbie 2 01-27-2004 03:52 PM
swap partition not being mounted jclark00001 Linux - Newbie 28 02-15-2003 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 AM.

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
Open Source Consulting | Domain Registration