Fedora Linux Support Community & Resources Center
  #1  
Old 6th December 2005, 10:44 PM
zabolots Offline
Registered User
 
Join Date: Dec 2005
Posts: 38
Is my swap partition being used?

During the install of FC4 I manually partitioned my drive and created 2 partitions, a big one for "/" and a smaller one for linux-swap. Does the installer recognize that I manually created a swap partition and automatically use it as such or do I need to do something to tell it where the swap partition is? How can I verify if my swap parition is being used correctly?

BTW, here's the output of df and parted if it helps:
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1            111513860   3301948 102455828   4% /
/dev/shm                387676         0    387676   0% /dev/shm
Code:
Using /dev/hda
(parted) print
Disk geometry for /dev/hda: 0.000-114473.460 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031 112423.623  primary   ext3        boot
2     112423.623 114470.969  primary   linux-swap
Reply With Quote
  #2  
Old 7th December 2005, 12:14 AM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304
Try "swapon -s"
Reply With Quote
  #3  
Old 7th December 2005, 12:19 AM
codergeek42's Avatar
codergeek42 Offline
Registered User
 
Join Date: Aug 2005
Location: Anaheim/Fullerton, CA (USA)
Age: 27
Posts: 388
Please run `cat /proc/swaps` as root. if you're using your swap space, it will show you how much is availabl and how much is being used currently.
__________________
~~ Peter ~~ :: ( Who am I? ) :: ( My Blog: A day (or more) in the life of a CS & Language student... ) :: ( Supporter of the EFF & FSF ) :: ( I'm a GNU/Linux addict and Free Software Advocate. ) :: ( How to Ask Questions the Smart Way ) :: ( The Fedora Project, sponsored by Red Hat ) :: ( GNOME: The Free Software Desktop Project ) :: ( GnuPG Public Key ) :: ( About me on the WIki )
Reply With Quote
  #4  
Old 7th December 2005, 02:55 AM
zabolots Offline
Registered User
 
Join Date: Dec 2005
Posts: 38
Code:
[root@dvarchive ~]# swapon -s
Filename                                Type            Size    Used    Priority
/dev/hda2                               partition       2096472 0       -1
I'm assuming that since this /dev/hda2 (the swap partition I created manually) is listed that it is the active swap partition (even though 0 bytes/blocks are currently being used).

I checked /etc/fstab and the only swap entry is
Code:
LABEL==m<85>É^Z¸5ãoÛ!CFRT   swap                    swap    defaults        0 0
but I have no way of knowing for sure if this label corresponds in some way to /dev/hda2
Reply With Quote
Reply

Tags
partition, swap

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a swap partition from an unallocated Partition? seahawk789 Using Fedora 2 22nd December 2008 04:32 AM
Swap file and complete removal of swap partition RVF16 Using Fedora 9 20th November 2008 10:32 PM
Swap partition chemicalrubber Installation and Live Media 2 1st July 2007 01:12 PM
Swap partition massimomm Using Fedora 3 10th March 2006 04:06 PM


Current GMT-time: 03:51 (Monday, 20-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat