Ubuntu not using the swap partition

Smoot Carl-Mitchell smoot at tic.com
Wed Mar 26 01:40:44 UTC 2008


On Wed, 2008-03-26 at 03:15 +0200, Ioannis Vranos wrote:
> OS: Ubuntu 7.10 x86.
> 
> 
> During installation I had created a partition named /hdc1 for swap, but
>  Ubuntu is not using it:
> 
> 
> john at john-desktop:~$ df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hdc3             292G   13G  265G   5% /
> varrun                506M  132K  506M   1% /var/run
> varlock               506M     0  506M   0% /var/lock
> udev                  506M  104K  506M   1% /dev
> devshm                506M     0  506M   0% /dev/shm
> lrm                   506M   34M  472M   7%
> /lib/modules/2.6.22-14-generic/volatile
> /dev/hdc2             942M   35M  860M   4% /boot
> john at john-desktop:~$

You will not see swap in a df listing, since swap is not a mounted file
system.  Run this command:

swapon -s

and you should see the swap usage.
-- 
Smoot Carl-Mitchell
System/Network Architect
smoot at tic.com
+1 480 922 7313
cell: +1 602 451 9005




More information about the ubuntu-users mailing list