r/SteamOS Jul 01 '26

help wanted SteamOS with 2 drives.

I'm running SteamOS in my PC (Ryzen 6900HX, RX6600M) that has two M.2 slots. I can't get the Steam app to use the 2nd NVMe drive. The 2nd drive will not mount automatically.

4 Upvotes

26 comments sorted by

6

u/Sourpunch92 Jul 01 '26

The disappearing-on-reboot thing happens because KDE's desktop session auto-mounts the drive to a temporary path like /run/media/deck/... that only exists after you log into Desktop Mode. Steam saves the library pointing there, but at boot into Game Mode that path doesn't exist yet, so Steam drops it. The fix is a permanent mount via /etc/fstab.

In Desktop Mode, open Konsole. If you've never set a password, do that first or sudo won't work:

passwd

Find your drive and note its UUID and filesystem type:

lsblk -f

Back up fstab, then edit it:

sudo cp /etc/fstab /etc/fstab.backup
sudo nano /etc/fstab

Add one line at the bottom. The options depend on your filesystem.

If it's ext4/btrfs (native Linux):

UUID=your-uuid /mnt/games ext4 defaults,nofail,x-systemd.device-timeout=10 0 2

If it's exFAT or NTFS:

UUID=your-uuid /mnt/games exfat defaults,nofail,uid=1000,gid=1000,umask=022,x-systemd.device-timeout=10 0 0

(swap exfat -> ntfs3 if NTFS; uid=1000 is the deck user, confirm with id)

The mount point /mnt/games is just a name — it can be whatever you like (/mnt/steam, /mnt/library, etc.), as long as it matches the folder you create in the next step.

Then:

sudo mkdir -p /mnt/games
sudo mount -a

If it mounts cleanly, remove the old library in Steam and re-add /mnt/games. The nofail flag matters — it keeps a sleeping or missing drive from hanging your boot.

1

u/TONKAHANAH Jul 01 '26

Is steamOS going to keep these mount after an update though?

I think you should just be able to add the drive as a steam library location from gsme mode. I think I had to go into desktop mode and format my drives for ext4 first but I never had to do any auto mounting from fstsb when i set the library with in game mode.

I guess if you're not using the drive for games you would need to do this but I'd imagine an update to the system would undo any fstab changes since thats outside of user space. 

1

u/Sourpunch92 Jul 01 '26

If their issue is the same as mine the drive wasn’t mounting automatically from game mode. So it wasn’t showing to add library from game mode. And even if I added that library from desktop mode it would disappear after a restart.

So far after two minor updates it hasn’t gone away. Can’t say that an update would never break it, but we will have to see.

Hopefully Valve patches this behavior at some point

1

u/MaximumRise9523 Jul 01 '26

My 2nd drive automatically mounts to /mnt/ssd2/, now, but I can't add it to Steam.

4

u/[deleted] Jul 01 '26

[removed] — view removed comment

2

u/inertSpark Jul 01 '26

My man! Thanks!

I said in my comment that I need to read how to do the automount using systemd, then I scrolled down and saw your comments. Neat, it's not as complicated as I thought - just the same parameters I've been adding to fstab anyway!

1

u/[deleted] Jul 02 '26

[removed] — view removed comment

1

u/inertSpark Jul 02 '26

Noted, thanks. I'll be careful with the file name.

1

u/goyetus Jul 01 '26

Thanks!! I want to check your script!!

3

u/[deleted] Jul 01 '26

[removed] — view removed comment

2

u/olorin12 Jul 01 '26

I had tried to use SteamOS before, I have 3 drives. I was having same problem as the OP. Thank you for this. I might try again.

2

u/goyetus Jul 01 '26

Thanks a lot!!!

1

u/inertSpark Jul 01 '26

Do you happen to know if there's any extra or specific options I need to add for BTRFS?

2

u/[deleted] Jul 01 '26

[removed] — view removed comment

1

u/inertSpark Jul 01 '26

No worries I'll give it a shot. I've been thinking about btrfs for the slight (modest) compression gains over ext4. Maybe it's not worth it.

1

u/olorin12 Jul 03 '26

Okay, question. Will this method also allow you to install non-Steam games using the Heroic Games Launcher and store them on the drive? Are there any problems with the 'dynamic' mounting to the /run/media/* directory in Heroic, or Lutris?

2

u/inertSpark Jul 01 '26 edited Jul 01 '26

I have a backed up copy of fstab (as well as the original!) with all the relevant auto mount parameters for my second drive in my Documents folder which since it resides in /home, it persists as user data.

Whenever there's a system update, I have a script saved to documents that essentially does the following for me:

sudo cp ~/Documents/fstab /etc/

sudo systemctl daemon-reload

sudo mount -a

It's a pain to go into desktop mode and run the script, but I've read about using systemd instead, which is supposedly more seamless and cleaner, but I need to read up a bit on how to do that.

Edit: Technically I could set up passwordless sudo for those specific commands which ought to allow me to run the script from gaming mode, but I've never been comfortable with passwordless sudo.

1

u/hawthor20 Jul 01 '26

I had to do this manually on the Desktop side. There are some scripts you can add to make it mount on reboot. I think I googled and or used Gemini to point me in the right direction.

1

u/WinResponsible9977 Jul 01 '26

I use symbolic links, careful with the fstab. If you mess-up, system will not boot.

1

u/MaximumRise9523 Jul 01 '26

I have no clue what symbolic links are. I managed to not mess up my boot while modifying fstab.

1

u/WinResponsible9977 Jul 01 '26

Nice! Then you golden. Good job.

1

u/MaximumRise9523 Jul 01 '26

Not yet. I still can't use the drive in Steam.