LinuxQuestions.org
Visit Jeremy's Blog.
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 06-17-2009, 10:35 PM   #1
surya_prakash
LQ Newbie
 
Registered: Oct 2008
Location: Hyderabad
Posts: 26

Rep: Reputation: 15
swap space does not show in df command


Hi All,


I have one question.Can any one tell me why out put of df command does not show me swap space on my system.


output of df command
--------------------
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda5 5952252 1445120 4199892 26% /
/dev/sda1 101086 11638 84229 13% /boot
none 2023508 0 2023508 0% /dev/shm
/dev/sda6 220100296 414432 208505428 1% /nems
/dev/sda2 7936288 202920 7323712 3% /var


output of /etc/fstab
----------------------
/dev/sda5 / ext3 defaults 1 1
/dev/sda1 /boot ext3 defaults,nodev 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/sda6 /nems ext3 defaults,nodev 1 2
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/sda2 /var ext3 defaults,nodev 1 2
/dev/sda3 swap swap defaults 0 0

output of free -m
-----------------
total used free shared buffers cached
Mem: 3952 1085 2866 0 305 184
-/+ buffers/cache: 595 3356
Swap: 6000 0 6000

output of /proc/swaps
-----------------------
Filename Type Size Used Priority
/dev/sda3 partition 6144852 0 -1


Please let me know whether swap is enabled or not ,if it is enabled why it is not showing in df command.

Thanks,
surya

Last edited by surya_prakash; 06-17-2009 at 10:43 PM.
 
Old 06-17-2009, 10:47 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Swap isn't a filesystem (like e.g. ext3) and thus isn't mounted in the normal sense. Use "swapon -s", it will confirm the numbers from the "free" output.
 
  


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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
swap file or swap space? simonb1975uk Linux - General 11 08-15-2008 02:39 PM
swap space (or) swap file yusufs Linux - Newbie 8 07-17-2008 02:02 AM
how much swap space is needed; how to increase swap space? johnpaulodonnell Linux - Newbie 5 03-23-2007 03:20 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM

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

All times are GMT -5. The time now is 05:49 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