Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is my pc specs

enter image description here

Based on this tutorial I made following changeds to fstab

tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/tmp tmpfs defaults,noatime,mode=1777 0 0
tmpfs /var/log tmpfs defaults,noatime,mode=0755 0 0 
tmpfs /var/log/apt tmpfs defaults,noatime 0 0

Now I got some question:

  1. Will it increase my system's performance?
  2. How safe it is for my pc?
  3. May some apps like dvd burning tool crash because of big temp space requirement? (My SWAP area is 8 gb as RAM)

Thx in advance for wasting your time and trying to help

share|improve this question
What are you trying to optimize? Is your laptop storage slow at the moment? Are you using an SSD? If so, trying to prevent wear and did you enable TRIM for example? Really... we need so much more information. Just running "because" is a big no-no for what I see in that "tutorial". – gertvdijk Jan 10 '13 at 0:35
up vote 4 down vote accepted

No, don't run this.

Moving /var/log onto ephemeral storage is very likely to get you into basic trouble. You'll lose all log files across reboots, including the directories packages are expected to be there. If for example /var/log/cups/ does not exists, you'll probably first have to re-create the directory before you can print anything and Cups can't even burp the errors in the meantime...

/var/log/apt on another tmpfs inside one? This does not make sense.

About /var/tmp and /tmp, I find this a nice explanation:

Since in most of the default installations the /tmp folder will be cleaned in every reboot. This is where /var/tmp comes in to play. Here, applications can expect their data to be preserved between reboots. In other words, data stored here is more persistent than /tmp.

So, stuff will probably break. Applications rely on the persistence of /var/tmp.

Common sense

Don't just do stuff people or blog posters recommend you to do.

share|improve this answer
Thx for anwer. I upvoted your answer, but there was nothing with my question to downvote. – Tural Aliyev Jan 10 '13 at 0:51
@TuralTeyyubogluAliyev Yes, there is. 1) Not enough information on what you're trying to accomplish. 2) Dumping a list of commands from a random website, without any research effort. 3) two out of three questions can only be answered by yourself (too many factors into play). – gertvdijk Jan 10 '13 at 0:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.