Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 want to put /home, /var, /opt and /tmp on /dev/sda2 and /root on /dev/sda1 when installing Ubuntu.

My PC has an 8GB integrated SSD, and I would like to use it to speed up boot time and application loading, but I want to save everything else onto a single partition.

I do not want to put /home, /var, /opt and /tmp on separate partitions.

Is this feasible? How do I go about accomplishing this? Something with symlinks?

share|improve this question
What about everything else? Where should that go? – netcoder Jul 24 '12 at 17:34

Install with just /home on the other disk, then boot into recovery mode, go to the root shell, and move those other directories to /home and replace them with symlinks to their new location in /home.

mv /var /home/
ln -s /home/var/ /var
share|improve this answer
mv: cannot move '/var/' to '/home/var': Read-only file system – Ruslan Gerasimov Jun 23 '14 at 23:29
@RuslanGerasimov, right, in recovery mode the fs is initially mounted ro. mount -o remount,rw / to enable writes. – psusi Jun 24 '14 at 2:55
I've done this and got the next msg on tty1 during the booting Ubuntu: login: acpid: can't open socket /var/run/acpids.socket: No sush file or directory – Ruslan Gerasimov Jun 24 '14 at 4:19
If I check in root console in recovery mode ls -la /var it shows /var -> /home/var/ but my guess these links are missing somehow when pc boots in normal mode. Could it be? – Ruslan Gerasimov Jun 24 '14 at 4:22
there was a typo in..., here is correct message login: acpid: can't open socket /var/run/acpid.socket: No sush file or directory Sorry – Ruslan Gerasimov Jun 24 '14 at 4:37

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.