this post was submitted on 29 Jun 2023
41 points (100.0% liked)

Linux

69 readers
1 users here now

founded 2 years ago
 

Hello, last night on a whim, I pulled the cord and finally am making a push to use Linux exclusively. I am not the most knowledgeable when it comes to Linux but I can hold my own enough.

EXCEPT when it comes to mounting drives and making them work with programs. I've gotten them wiped and mounted, but steam does not see them as internal drives and at each reboot, they or any games I put on there are gone from steam. They also do not show up with their names I've given them during formatting.

Would adding them to fstab fix some of these issues? I know they would at least be mounted before I ever open steam. So maybe there is a chance?

For more info, these are two Samsung 800 series SSD drives. One 250 GB, and the other 500 GB. These are games only SSDs as it's their only job.

I am on elementary OS version 7.

Any help will be very much appreciated. Thanks for anyone who takes the time to respond.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 2 years ago* (last edited 2 years ago)

If you're on a system that has GNOME-based gio, the command

gio mount $(realpath /dev/disk/by-uuid/UUIDHERE)

is a way of mounting drives as a user.

This is basically what the file manager(s) like Nemo / Thunar / Nautilus do under the hood when mounting drives because they use the gio subsystem.

The trick would be to ensure whatever launches Steam ensures the right gio commands are despatched before the main Steam executable.

The reason I'm suggesting gio is that if you're used to mounting drives using the file manager, it will put those drives in the same filesystem places that the file manager does, and it means that those drives aren't mounted until you need them if that's preferable.

e.g. on my system, drives are mounted at /media/USERNAME/DRIVELABEL.

Of course, as others point out, all of this can also be done old-school with fstab.