Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #171594

Mount /tmp on tmpfs jessie and stretch -- howto?

From Ken Heard <kenslists@teksavvy.com>
Newsgroups linux.debian.user
Subject Mount /tmp on tmpfs jessie and stretch -- howto?
Date 2016-08-31 02:10 +0200
Message-ID <sc1gl-3sb-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I would like in my jessie and stretch boxes (one of each, both with
systemd) to mount /tmp on tmpfs instead of a hard drive partition tmp
or /dev/mapper/SOL1-tmp.  I assumed that to do so I could not have
either of those partitions; so I unmounted them and then deleted them
as a partition or as part of a LVM as the case may be.

I then created a created a line in /etc/fstab as follows:
tmpfs	/tmp/	tmpfs	nodev,nosuid,size=20%	0	0.  When I rebooted I
received dependency errors.

In addition to the line above /etc/fstab still had a line
/dev/mapper/SOL1-tmp	/tmp	ext2	defaults	0	2.

However, df shows the first line (tmpfs /tmp etc.), but not the second
(/dev/mapper/SOL1-tmp etc.)

Obviously something is wrong but what?  I know that file
/etc/default/tempfs cannot be used in systemd, but I am at a loss to
know what if anything replaces it in systemd.  Apparently it is not
enough to add the tmpfs /tmp tmpfs etc line in /etc/fstab or run
"systemctl enable tmp.mount".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlfGHiUACgkQlNlJzOkJmTceiACcCZfxiTfMOQ1i8n/gm1ZBQvTB
rf8AnjBT3QkxzIk85aLQmZc9Yw3wMoJR
=wWwi
-----END PGP SIGNATURE-----

Back to linux.debian.user | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Mount /tmp on tmpfs jessie and stretch -- howto? Ken Heard <kenslists@teksavvy.com> - 2016-08-31 02:10 +0200
  Re: Mount /tmp on tmpfs jessie and stretch -- howto? Rick Thomas <rbthomas@pobox.com> - 2016-08-31 03:20 +0200

csiph-web