The file /etc/fstab doesn't contain 'shm'

General support questions
Post Reply
Posts: 23
Joined: 2014/08/24 07:10:22

The file /etc/fstab doesn't contain 'shm'

Post by yaoyansi » 2016/01/26 08:11:00

Hi all,
I'm modifying /etc/fstab with this guide: ... n-centos-6

It says:

Code: Select all

Look for the line in the fstab file with tmpfs and /shm. Replace 'defaults' with 'defaults,nosuid,noexec,nodev'. Save the file.
But I can't find any 'shm' in my /etc/fstab.
Here is the content of my /etc/fstab

Code: Select all

# /etc/fstab
# Created by anaconda on Tue Jan 26 04:35:48 2016
# 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
/dev/mapper/centos-root /                       xfs     defaults        1 1
UUID=97b63094-a04d-4060-86f8-164c558ba1f3 /boot                   xfs     defaults        1 2
UUID=79DA-BD0B          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
/dev/mapper/centos-home /home                   xfs     defaults        1 2
/dev/mapper/centos-swap swap                    swap    defaults        0 0
Is there anything wrong with my file?

Posts: 394
Joined: 2014/06/10 19:13:41

Re: The file /etc/fstab doesn't contain 'shm'

Post by owl102 » 2016/01/26 09:09:09

yaoyansi wrote:Is there anything wrong with my file?
No, the Guide is for CentOS 6 and you are using CentOS 7, that's the problem. /dev/shm is no longer handled by /etc/fstab in CentOS 7 but by systemd instead.
German speaking forum for Fedora and CentOS:

Post Reply

Return to “CentOS 7 - General Support”