I am trying to move /tmp to RAM and obey good practice:
/var/tmpshould NOT be placed intmpfs, as it must survive rebootsnot mount
/tmpas a stand-alonetmpfs, but rely on/dev/shmor/run/shm
However, things have changed between 2.6 and 3.2 kernels :
Changes to the configuration and defaults of tmpfs filesystems
On 3.2 kernel, use RAMTMP=yes in /etc/default/tmpfs.
My question is: how can I achieve this goal with older kernels ?
My choice is nor to modify /etc/fstab neither this :
mkdir /dev/shm/tmp
chmod 1777 /dev/shm/tmp
mount --bind /dev/shm/tmp /tmp
Is there something like RAMTMP for 2.6 kernels ?
tmpfsconsidered harmful. Food for thought. – sr_ Nov 15 '12 at 8:05/tmpcan and should be used for temporary files, that's the whole point of it./tmpis not supposed to survive a reboot (use/var/tmpfor that) and who composes an email half the size of RAM+swap (without saving it)? – Marco Nov 15 '12 at 10:29