You are not logged in.

#1 2013-02-27 16:32:19

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

[Solved] /var mounted as tmpfs

Is mounting /var as tmpfs a good idea or are there apps that do not adhere to /var being strictly for "transient and temporary files" that do not survive to the next boot?

Last edited by KairiTech (2013-02-27 16:55:28)

Offline

#2 2013-02-27 16:43:46

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,408

Re: [Solved] /var mounted as tmpfs

having the entire var on tmpfs is bad. Ignoring all of the other problems, you would lose your logs and pacman database on every boot.

Offline

#3 2013-02-27 16:44:05

hiciu
Member
Registered: 2010-08-11
Posts: 85

Re: [Solved] /var mounted as tmpfs

No, mouting /var as tmpfs is not a good idea. Things in /var/lib (i.e. pacman's database), /var/log, /var/spool (i.e. crontabs, mails) are meant to be persistent.

Offline

#4 2013-02-27 16:55:10

KairiTech
Member
From: Toronto, Canada
Registered: 2011-06-04
Posts: 275

Re: [Solved] /var mounted as tmpfs

Thanks guys.

Glad I asked before wasting any time trying it. The Filesystem Hierarchy Standard (FHS) says that files in /var are transient and temporary when it really means variable and changes often.

Last edited by KairiTech (2013-02-27 16:56:57)

Offline

Board footer

Powered by FluxBB