When I installed CentOS, I set up and formatted an ~8GB swap partition. I have just recently noticed that the partition exists and is formatted as swap but is not mounted. The swapon -s command does not return any value.
The free command also does not list any available swap.
Code: Select all
[user_name@localhost ~]$ free -m
total used free shared buff/cache available
Mem: 15745 1147 13763 121 834 14202
Swap: 0 0 0
Code: Select all
#
# /etc/fstab
# Created by anaconda on Mon Jan 20 11:41:51 2020
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
# centos root partition
UUID=59f2a07f-5863-4e45-9a18-1dd5f7a97463 / ext4 defaults 1 1
# centos home
UUID=43eae339-979e-4cbe-8c2a-21beb2365426 /home ext4 defaults 1 2
# centos swap
UUID=d960b749-64db-4a02-b225-1eb13f55463c swap swap defaults 0 0
# shared linux data partition
UUID=a89334f7-59b7-4d04-b89b-a5a30c379644 /run/media/lmhall/linux_data ext4 defaults 1 2
Code: Select all
[user_name@localhost ~]$ blkid /dev/sda7
/dev/sda7: UUID="d961b749-64db-4a02-b225-1eb13f55463c" TYPE="swap"
A check of the mount options using the Disks utility shows the same thing with the box checked for "mount at system startup" and "identify by" as,
Code: Select all
/dev/disk/by-uuid/d961b749-64db-4a02-b225-1eb13f55463c
I have looked at these instructions,
https://www.digitalocean.com/community/ ... n-centos-7
but this is for creating a swap on /root.
LMHmedchem