[CentOS] putting "/tmp" to memory

Sun Jan 23 14:05:59 UTC 2011
Lucian <lucian at lastdot.org>

On Sun, Jan 23, 2011 at 1:47 PM, kellyremo <kellyremo at zoho.com> wrote:
>
> "to memory" means: mounting a ~2 GByte filesystem [ tmpfs?, or ramfs? ], and
> put the "/tmp" on it. [ e.g.: 4 GByte ram in the pc ]. what to write in the
> "/etc/fstab"?
>
> I would like to collect the [ answers too:P ]:
>
> Advantages:
> - Memory is way faster then HDD/SSD, so it could speed things up
> - "SSD amortization" is less
>
> Disadvantages:
> - Security? [ how to set this up to be secure? any clear howtos/links
> regarding it? :O ]
>
> Really thank you for any good help...
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>

add this to fstab:
none             /tmp      tmpfs    defaults,nosuid,nodev,noexec       0 0

(unverified)

then reboot or remount /tmp.