My Oracle Support Banner

Oracle Linux 7: Custom Mountpoint for '/tmp' in '/etc/fstab/ is Not Mounted at Boot (Doc ID 2693995.1)

Last updated on JULY 30, 2020

Applies to:

Linux OS - Version Oracle Linux 7.7 with Unbreakable Enterprise Kernel [4.14.35] and later
Linux x86-64

Symptoms

/tmp is not automatically mounted after reboot even though an entry is present in /etc/fstab

Below outputs show an example of the issue:

# uptime
16:44:11 up 2 min, 1 user, load average: 0.21, 0.55, 0.44
# df -h
Filesystem                                        Size    Used Avail Use% Mounted on
devtmpfs                                          252G       0 252G    0% /dev
tmpfs                                             252G    817M 251G    1% /dev/shm
tmpfs                                             252G     11M 252G    1% /run
tmpfs                                             252G       0 252G    0% /sys/fs/cgroup
/dev/mapper/VolGroupXXX-LogVolRoot                 30G     25G 3.2G   89% /
/dev/mapper/VolGroupXXX-LogVolVar                 7.8G    588M 6.8G    8% /var
/dev/sda1                                         477M    234M 218M   52% /boot
/dev/mapper/VolGroupSys-LogVolHome                2.0G     12M 1.8G    1% /home
tmpfs                                              51G       0  51G    0% /run/user/0
# cat /etc/fstab
/dev/mapper/VolGroupXXX-LogVolRoot                  /             ext3 defaults 1 1
UUID=xxxx6a54-xxxx-xxxx-xxxx-121xxxxxxx83           /boot         ext3 defaults 1 2
/dev/mapper/VolGroupXXX-LogVolSwap                  swap         swap defaults 0 0
/dev/mapper/VolGroupXXX-LogVolTmp                   /tmp           ext3 defaults 1 2
/dev/mapper/VolGroupXXX-LogVolHome                  /home        ext3 defaults 1 2
/dev/mapper/VolGroupXXX-LogVolVar                   /var            ext3 defaults 1 2

Running "mount -a" mounts /tmp without any issues.

# mount -a
# df -h
Filesystem                                        Size    Used Avail Use% Mounted on
devtmpfs                                          252G       0 252G    0% /dev
tmpfs                                             252G    817M 251G    1% /dev/shm
tmpfs                                             252G     11M 252G    1% /run
tmpfs                                             252G       0 252G    0% /sys/fs/cgroup
/dev/mapper/VolGroupXXX-LogVolRoot                 30G     25G 3.2G   89% /
/dev/mapper/VolGroupXXX-LogVolVar                 7.8G    588M 6.8G    8% /var
/dev/sda1                                         477M    234M 218M   52% /boot
/dev/mapper/VolGroupXXX-LogVolHome                2.0G     12M 1.8G    1% /home
tmpfs                                              51G       0  51G    0% /run/user/0
/dev/mapper/VolGroupXXX-LogVolTmp                  40G     22G  17G   57% /tmp 

Changes

No changes.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.