Install programs on another partition?
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Install programs on another partition?
I have one SSD with 20 GB which I´m running root and swap on, and one 500 GB hard drive for movies etc. My problem is that I´ve installed Steam and want to buy some games to play. But Steam is installed on my SSD, and one can not change where games are installed, so it is on the SSD, which doesn´t have enough space for it.
Is there any way to go around this, like installing Steam on the other partition? Or do I simply have to install Mint on the hard disk and not use the SSD?
I apologize if there´s already a topic on this or if it´s the wrong category.
Is there any way to go around this, like installing Steam on the other partition? Or do I simply have to install Mint on the hard disk and not use the SSD?
I apologize if there´s already a topic on this or if it´s the wrong category.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Install programs on another partition?
How big is this 'Steam' then? I have 3 root partitions (3 different distros) complete with all the apps I ever need (but not Steam as I have no interest in it) and none of my root partitions has more than 5Gb on it. Why is yours so full? Maybe if you answer this question you might solve the problem.
Re: Install programs on another partition?
Well Steam itself is not that big. But the games are, for example Team fortress 2 is about 10 GB.
Re: Install programs on another partition?
OK in that case I think you are stuck. You could repartition so that only certain parts of / are on the SSD For instance create separate partitions on the ordinary disk for /usr /var /lib (these are always the largest three). But even then if one game is 10Gb I have no idea how much of that will end up on the SSD, it could still fill up quite quickly and I also have no idea how that kind of partitioning would affect the performance of the SSD.
Re: Install programs on another partition?
You can mount and bind a folder to another one on another partition. All you have to do is to move the content of your overloaded directory to this other partition and edit your fstab:
then you add this line:
for example I keep my /var/www out of my SSD to have it stored on the /opt volume of my HDD raid array:
and my website is transparently still reachable on /var/www (a better and safer solution than a symlink or hardlink for what I want)...
Similarly I have /usr/local mounted on the raid array:
Using the bind-mount option is useful to reuse the same partition for a few mountpoints instead of an expensive one-on-one basis.
/opt itsef is mounted in a quite traditional way:
Code: Select all
sudo nano /etc/fstab
Code: Select all
/path/to/moved_dir /path/to/original_overloaded_dir none bind
Code: Select all
/opt/link/var_www /var/www none bind
Similarly I have /usr/local mounted on the raid array:
Code: Select all
/opt/link/usr_local /usr/local none bind
/opt itsef is mounted in a quite traditional way:
Code: Select all
/dev/md2 /opt ext4 defaults,barrier=0,noatime 0 2
Re: Install programs on another partition?
Thanks for replying.
eanfrid: This might work, the problem is that I have no idea which folders I should mount and bind. It´s annoying, because one may add other folders in Steam for it to install games on, but when I´m trying to install something it just goes for the SSD.
Maybe I should try with Steams own forum.
eanfrid: This might work, the problem is that I have no idea which folders I should mount and bind. It´s annoying, because one may add other folders in Steam for it to install games on, but when I´m trying to install something it just goes for the SSD.
Maybe I should try with Steams own forum.
Re: Install programs on another partition?
IMO best way to move Steam games is creating symbolic link for SteamApps folder [where Steam stores downloaded/installed game data].
It's placed in home/user/.steam/steam/SteamApps.
1. Make sure that Steam is closed;
2. Move directory SteamApps to folder at another partition (I assume it's mounted already!) It can be a while.
In my example, folder localization is "/mnt/disk/".
3. Create symbolic link:
Now run Steam and check if everything's working correctly - in my case it's working great.
It's placed in home/user/.steam/steam/SteamApps.
1. Make sure that Steam is closed;
2. Move directory SteamApps to folder at another partition (I assume it's mounted already!) It can be a while.
In my example, folder localization is "/mnt/disk/".
Code: Select all
sudo mv ~/.steam/steam/SteamApps /mnt/disk
Code: Select all
sudo ln -s ~/.steam/SteamApps /mnt/disk/SteamApps
Re: Install programs on another partition?
A symlink to another disk or to another partition may have unexpected results with some softwares (essentially backup with rsync or similar programs). But if it works correctly for Steam, this simpler solution than mine is worth a try.
Re: Install programs on another partition?
Good solution dRaiser and so simple
I echo what eanfrid says though, symlinks and backup programs sometimes don't play nicely, I used to have tremendous problems with Dropbox and an imaging program because of symlinks - enough to stop using Dropbox in fact, but in gemini89's case I don't think it will be too big an issue.
I echo what eanfrid says though, symlinks and backup programs sometimes don't play nicely, I used to have tremendous problems with Dropbox and an imaging program because of symlinks - enough to stop using Dropbox in fact, but in gemini89's case I don't think it will be too big an issue.
Re: Install programs on another partition?
It works! Nice! Thanks a lot for sharing your solution.dRaiser wrote:IMO best way to move Steam games is creating symbolic link for SteamApps folder [where Steam stores downloaded/installed game data].
Re: Install programs on another partition?
Glad it's working for you too. Fortunatelly Steam doesn't have any problems with synchronizing files when its folder is symlinked.