CentOS 7.2 /tmp not mounting every bootup

seekuel <[email protected]> Mon, 6 Jun 2016 15:16:01 +0800
Newsgroups gmane.org.user-groups.linux.philippine
Message-ID <CABgN9w8=UX35efRj45FS2hr3Ks6gWc5GKEcbpi5f7BbC0z7JcA@mail.gmail.com>
--===============3760863492376545482==
Content-Type: multipart/alternative; boundary=001a113db504482bb6053496d85e

--001a113db504482bb6053496d85e
Content-Type: text/plain; charset=UTF-8

Hi,

Good day.

In our Linux box, we have an entry in fstab to mount /tmp but every time
the system is bootup /tmp is not mounted. Mounting manually with command
'mount /tmp' will mount the partition correctly as per fstab.

I have tried to add the command 'mount /tmp' in rc.local but its not
working /tmp is not mounted.

I can delete /tmp directory and every time I reboot the system /tmp is
recreated with 1777 permission.

I can also see files under /tmp:


root@xxx: [/tmp]
# df -h .
Filesystem             Size  Used Avail Use% Mounted on
/dev/mapper/ol00-root  3.8G   80M  3.7G   3% /

root@xxx: [/tmp]
# ll -al
total 8
drwxrwxrwt   7 root root  136 Jun  6 03:13 .
dr-xr-xr-x. 29 root root 4096 Jun  6 02:18 ..
drwxrwxrwt   2 root root    6 Jun  6 02:19 .font-unix
drwxrwxrwt   2 root root    6 Jun  6 02:19 .ICE-unix
drwxrwxrwt   2 root root    6 Jun  6 02:19 .Test-unix
drwxrwxrwt   2 root root    6 Jun  6 02:19 .X11-unix
drwxrwxrwt   2 root root    6 Jun  6 02:19 .XIM-unix
-rw-------   1 root root  451 Jun  6 02:29
yum_save_tx.2016-06-06.02-29.HL1NRp.yumtx


fstab: /dev/mapper/ol01-lvol0  /tmp                    ext3     defaults
     0 0

I also tried changing the partition from xfs to ext3 but to no avail. When
I update /tmp to /tmp1 in fstab, then after bootup the system will
correctly mount /tmp1.

Anyone have experience this? Any suggestions to solve this?

Thanks

--001a113db504482bb6053496d85e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>Good day.</div><div><br></div><div>=
In our Linux box, we have an entry in fstab to mount /tmp but every time th=
e system is bootup /tmp is not mounted. Mounting manually with command &#39=
;mount /tmp&#39; will mount the partition correctly as per fstab.</div><div=
><br></div><div>I have tried to add the command &#39;mount /tmp&#39; in rc.=
local but its not working /tmp is not mounted.</div><div><br></div><div>I c=
an delete /tmp directory and every time I reboot the system /tmp is recreat=
ed with 1777 permission.</div><div><br></div><div>I can also see files unde=
r /tmp:</div><div><br></div><div><div><br></div><div>root@xxx: [/tmp]</div>=
<div># df -h .</div><div>Filesystem =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 Size =C2=A0Used Avail Use% Mounted on</div><div>/dev/mapper/ol00-root =
=C2=A03.8G =C2=A0 80M =C2=A03.7G =C2=A0 3% /</div><div><br></div><div>root@=
xxx: [/tmp]</div><div># ll -al</div><div>total 8</div><div>drwxrwxrwt =C2=
=A0 7 root root =C2=A0136 Jun =C2=A06 03:13 .</div><div>dr-xr-xr-x. 29 root=
 root 4096 Jun =C2=A06 02:18 ..</div><div>drwxrwxrwt =C2=A0 2 root root =C2=
=A0 =C2=A06 Jun =C2=A06 02:19 .font-unix</div><div>drwxrwxrwt =C2=A0 2 root=
 root =C2=A0 =C2=A06 Jun =C2=A06 02:19 .ICE-unix</div><div>drwxrwxrwt =C2=
=A0 2 root root =C2=A0 =C2=A06 Jun =C2=A06 02:19 .Test-unix</div><div>drwxr=
wxrwt =C2=A0 2 root root =C2=A0 =C2=A06 Jun =C2=A06 02:19 .X11-unix</div><d=
iv>drwxrwxrwt =C2=A0 2 root root =C2=A0 =C2=A06 Jun =C2=A06 02:19 .XIM-unix=
</div><div>-rw------- =C2=A0 1 root root =C2=A0451 Jun =C2=A06 02:29 yum_sa=
ve_tx.2016-06-06.02-29.HL1NRp.yumtx</div></div><div><br></div><div><br></di=
v><div>fstab: /dev/mapper/ol01-lvol0 =C2=A0/tmp =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ext3 =C2=A0 =C2=A0 defaults =C2=
=A0 =C2=A0 =C2=A0 =C2=A00 0</div><div><br></div><div>I also tried changing =
the partition from xfs to ext3 but to no avail. When I update /tmp to /tmp1=
 in fstab, then after bootup the system will correctly mount /tmp1.</div><d=
iv><br></div><div>Anyone have experience this? Any suggestions to solve thi=
s?<br></div><div><br></div><div>Thanks</div></div>

--001a113db504482bb6053496d85e--

--===============3760863492376545482==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph
--===============3760863492376545482==--