Page 1 of 1

How to get programs to install on a different HDD

Posted: Thu Jan 24, 2013 5:40 pm
by Seltox
I just bought a 2nd SSD so I could run Linux off of an SSD as well - but now i'm faced with the problem of not knowing how to keep it clean. In Windows I typically just have Windows itself, and fairly critical programs that run all the time on the SSD, and all the other programs on a seperate HDD. I want to emulate this sort of behavour in Linux, but i'm just not familiar enough with the layout. I'm assuming it would involve relocating wherever the programs are installed (putting /usr or something on a second drive?) but i'm not sure, and don't want to just start fiddling :P

For clarification, it won't be the same HDD Windows program uses. Windows has its own SSD and HDD, as does Linux. Then I have two more HDD's that contain common things (documents, music, etc)

Re: How to get programs to install on a different HDD

Posted: Thu Jan 24, 2013 5:49 pm
by passerby
Create two partitions on the disk you want to install programs on.
Copy /home and /usr/bin to those two partitions, then set them to mount on boot. The one for /home should be much bigger.
(If you haven't done this before, look for a tutorial on moving /home, then follow the instructions for /home and /usr/bin)
AFAIK, most programs are stored in either /usr/bin (programs for all users) or /home (for individual users). There may be a third install location, but not to my knowledge.

If you're able to boot successfully after setting those two partitions to be mounted in fstab, you can boot through a live CD/DVD/USB and delete those directories on the original disk. Only do this after you've made sure they work on the new device though.