Swap Partition

Swap Partition for Fedora 12


Although there is a swap partition available it appears that the installer did not see it or make use of it during the installation of the OS. Somewhat odd based on past installs. At any rate, the swap partition is /dev/sdb6. Let's tell Fedora to make use of this partition.

sudo swapon /dev/sdb6

This command completed without error so I'm going to assume that the system is in fact using the swap partition now. I'm also going to reboot to see if this setting will stick.

No. Didn't stick through a reboot. No swap partition in use. Apparently the command I used is in fact a one-time-only command. Seems that I need to manually add a line to the file /etc/fstab, so I'm adding the following line and rebooting once again.

/dev/sdb6               swap                    swap    defaults        0 0

After a reboot I can see that the swap partition is in fact in use by using the command free or cat /proc/swaps.

[glenn@fedora12 ~]$ free
             total       used       free     shared    buffers     cached
Mem:       1010228     284372     725856          0      12948     117480
-/+ buffers/cache:     153944     856284
Swap:      1052216          0    1052216

[glenn@fedora12 ~]$ cat /proc/swaps 
Filename                                Type            Size    Used    Priority
/dev/sdb6                               partition       1052216 0       -1


swapoff /dev/sdb6
mkswap -L Swap /dev/sdb6
swapon /dev/sdb6


Return home

Swap Partition (last edited 2009-10-16 23:46:44 by GlennJohnson)