DF does not show swap partition

I am using DF to check disk usage and partition. Why isn't it showing my swap partition? I have 8GB to share when I installed CentOS 7.

root@localhost abigail]# df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root  196G   30G  166G  16% /
devtmpfs                 3.8G     0  3.8G   0% /dev
tmpfs                    3.9G  130M  3.7G   4% /dev/shm
tmpfs                    3.9G  8.9M  3.8G   1% /run
tmpfs                    3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda1                2.0G  129M  1.9G   7% /boot
/dev/mapper/centos-home  261G   54G  207G  21% /home

      

+3


source to share


1 answer


Swap is not a filesystem (like ext3) and therefore is not mountable in the usual sense. Use "swapon -s", it will validate digits from the "free" output.



+3


source







All Articles