07 October 2014

The size of in-memory file system mounted at /dev/shm is "2048" megabytes which does not match the size in /etc/fstab as "0" megabytes

Error:-


Starting check for /dev/shm mounted as temporary file system ...

WARNING:

The size of in-memory file system mounted at /dev/shm is "2048" megabytes which does not match the size in /etc/fstab as "0" megabytes
The size of in-memory file system mounted at /dev/shm is "2048" megabytes which does not match the size in /etc/fstab as "0" megabytes

Check for /dev/shm mounted as temporary file system passed

Open /etc/fstab using vi or any text editor :-

Locate the line of /dev/shm and use the tmpfs size option to specify your expected size,

tmpfs      /dev/shm      tmpfs   defaults,size=2g   0   0


The /etc/fstab content format is documented in man fstab and the tmpfs filesystem options can be found in man mount

change effective immediately, run this remount command :

mount -o remount /dev/shm

No comments: