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

I my next Ubuntu installation I want to put /var and /tmp folders together in the same partition, but differente from /.

It's possible to do this from installer menu? As far as I know you can only select a folder from several options to mount in a certain partition.


share|improve this question

That is not possible. You can add both directories to the / partition or you can put /var and /tmp each on a seperate partition.


You can use a symlink and have /tmp store its files on a new directory like /var/temp/. That would require the following commands:

sudo mkdir /var/temp/
sudo rm -rf /tmp/
sudo ln -s /var/temp/ /tmp/

This also requires you to recreate the permissions to /tmp/.

sudo chmod 777 /tmp
sudo chmod +t /tmp/
sudo chown root:root /tmp/

Untested. Use at own risc:possible issue: you might have to set /var/temp/ with the same permissions as /tmp!

share|improve this answer

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.