Ubuntu not using the swap partition
Derek Broughton
news at pointerstop.ca
Wed Mar 26 12:47:22 UTC 2008
Ioannis Vranos wrote:
> Bob McConnell wrote:
>>
>> What does free tell you? The swap partition shows up under memory usage
>> not disk usage.
>
>
> john at john-desktop:~$ free
> total used free shared buffers cached
> Mem: 1035616 487784 547832 0 9812 269948
> -/+ buffers/cache: 208024 827592
> Swap: 971924 77968 893956
> john at john-desktop:~$
>
>
> Well, previously I used CentOS & Scientific Linux, and "df" showed the
> swap partition there. It looks like this isn't the case with Ubuntu Linux.
I don't think so:
[derek at nautilus ~]$ cat /etc/issue
CentOS release 4.6 (Final)
Kernel \r on an \m
[derek at nautilus ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 20161084 13561020 5575928 71% /
none 2537828 0 2537828 0% /dev/shm
/dev/md2 218130980 27003928 180046624 14% /home
As somebody else pointed out, since swap isn't a filesystem, it shouldn't
appear in df - even in CentOS.
As long as you have an entry in /etc/fstab like:
<SOMETHING> none swap sw 0 0
you're fine. <SOMETHING> will probably be a UUID= string, as it was created
by the installer, but could just as easily be /dev/hdc1
--
derek
More information about the ubuntu-users
mailing list