1

I'm building a computer, with a 120GB SSD, and a 2TB Hard drive. I am planning to install the Ubuntu Operating System(14.04) to the 120GB ssd, But I would like to have my applications install by default to another hard drive.

I have seen this link: Installation -- Install apps to another disk

But that covers how to move an existing application to another disk. Is there any way to have all applications install, by default to another disk? Is it as simple as partitioning /usr, /lib, and /bin to another disk? or is that not possible? Any help would be appreciated.

One thing to point out: I am asking this, because I know you are able to do this on Windows 10 by changing the default installation drive via settings, But I do not want to use windows 10, as the licence terms are too strict in my opinion.

2 Answers2

2

Is it as simple as partitioning /usr/, /lib/, and /bin/ to another disk?

Yes. And maybe /var/, /etc/ and /opt/ too (depending on usage).

I would not bother. The only 3 things I would leave of the SSD are tmp filesystems, swap and the directories inside your users /home/. The 1st 2 you do during mounting. The 3rd you can do by editing /home/$USER/.config/user-dirs.dirs.

Rinzwind
  • 309,379
0

Yes you can do that. You have several choices - like mount /dev/sdb(b is for the second drive generally) so let's say your ubuntu partition on second hard drive is at /dev/sdb2 - then mount that into /etc/fstab

But better approach is LVM as you can change the partition sizes later and it's flexible. But it's not as straight forward as the previous method i mentioned above.

At the time of installation make use of LVM for your second drive(2TB hard drive). You can make some logical volumes like /opt, /usr, /home, /var into that and work accordingly. I tried to do it after the install(as i added the additional hard drive into my working Ubuntu). I got success to have my /var into the second drive and others - i have some problem. But i will say do it at the time of installation itself. You can refer to my detailed thread and it has got a lot of pointers to help others.

After going thru the LVM route /opt is on second drive where i install all the applications. This is how my second drive looks like - it has Windows partion as well as Linux. Using gparted I just changed the flag to lvm enter image description here You can get gparted

sudo apt-get install gparted

Hope this helps

Ashu
  • 4,004