How can Steam recognize second SSD?

Hey,

since I have now many games to play which don’t fit all with my 512 GB SSD, I added now a second 512 GB SSD to my system.
I formatted my SSD with ext4 and configured system files to automount it (through blkid and editing the /etc/fstab). The Volume is located in my /run/media directory. This second SSD should store most of my steam Games, So I want to add it to Steam. But if I want to select /run in the “Steam Library Folders” in the Settings, it doesn’t allow me to show /media.
So how do I fix this problem? Should I relocate the Directory of the second SSD?

Can you tell exactly how you are mounting the new disk? For example, by showing the contents of /etc/fstab and the output of command df -hT.

I did the same steps like in this Tutorial: https://www.techhut.tv/auto-mount-drives-in-linux-fstab/
With the difference, that I located the mounting directory at /run/media

If you used /run/media as a mount point in /etc/fstab, that might not be the best solution. As far as I know, some automounting tools use /run/media automatically.

So if it is in your /etc/fstab, please show that line here.

# Gaming (/dev/sda1)
UUID=[the UUID of my drive I want to auto-mount] (TAB) /run/media (TAB) ext4 (TAB) defaults (TAB) 0 (TAB) 0

I suggest using another moint point, for example /ssd2, and you should manually create that folder too.
Something like this:

sudo mkdir /ssd2

and then in /etc/fstab use /ssd2 instead of /run/media.

Note that steam can have limitations about where to search disks. I’m not using steam so if the above doesn’t work with steam, hopefully a steam user here can chime in.

1 Like

you need to :

  • add a mountpoint (/ssd2 or any other /name )
  • apply a chown from user:user to /name
  • reboot and add /name to Steam biblio pref
1 Like

So I did all your steps… sadly it didn’t work yet.

I added the mount point /gaming (in my Case) and the address is at root “/”
I applied a chown on my user to /gaming (sudo chown my_user:my_user /gaming)
And I rebooted.
I have full root access to it and the drive is automounted, but it again isn’t recognized by Steam in the “Steam Library Folders” Settings…

EDIT: I have to Steams: One is a flatpak and the other is Steam (Runtime) from pacman. I tried all this on the flatpak Version, all that didn’t worked out. So I tried the Steam (Runtime) Version and it WORKED. Seems to be a Steam Flatpak Problem.
Issue solved. Thanks for the help!

If the chown is done correctly, then you should have (your user) full access to the partition not needing root.

What says: ls -al /gaming ?

I edited my last post; I figured it out: Seems that this was a flatpak Problem, I tried the Steam Runtime Version and it instantly worked

Glad you figured it out.
You might have needed to grant permissions to the flatpak app to access the relevant directory.

Oh, how can I do that in this case? That might help me in the future with some other flatpaks

I’m not that well-versed in flatpaks but look into flatseal (which is another flatpak app) and also research about:

flatpak override <package_name_here> --filesystem=<path_here>

For documentation:
:eye: http://docs.flatpak.org/en/latest/sandbox-permissions.html

1 Like

Ok, thanks a lot!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.