Problem Description:
Hello! I’m fairly new to the Linux world and I just installed a new hard drive for my Steam Games and I’m trying to figure out how to mount it so it persists between reboots and Steam is able to properly access it. I’m using the Steam Debian package at the moment.
Here’s a general purpose guide to do this, which should be useful for you, and others.
Adding a disk for Steam Game storage
Find the partition name:
lsblk
# or
sudo fdisk -l
The new disk will likely show up as /dev/sdX (where X is a letter like b, c, etc.), or /dev/nvmeX for more modern disks.
Use the letter or number in the steps below, e.g. replace /dev/sdX with /dev/sdf or replace /dev/nvmeX with /dev/nvme5 or whatever you found in this step.
Format with ext4:
sudo mkfs.ext4 /dev/sdX1 # if it's the first partition
Create mount point:
sudo mkdir /mnt/games
Test mount:
sudo mount /dev/sdX1 /mnt/games
Add to /etc/fstab by adding a line like:
Edit with sudo nano /etc/fstab.
/dev/sdX1 /mnt/games ext4 defaults 0 2
(Using UUID instead of /dev/sdX1 is more robust - can get it with blkid)
Test fstab:
sudo umount /mnt/games
sudo mount -a
Set up permissions:
sudo chown $USER:$USER /mnt/games
If you’re using the steam snap, grant access to external drives
For existing games: Right click game → Properties → Local Files → Move Install Folder
This is a common setup I’ve used personally. The main cautions are making absolutely sure you’re formatting the correct drive, and backing up the fstab before editing it.
In case these “others” coming here and use the steam snap instead, I’d like to point out that in this case you additionally need to allow the snap access to /mnt with:
It looks like it worked! Thank you @popey! I did a reboot and it’s still showing up in my library. @ogra I haven’t tried the Steam Snap version yet. Are the drive formatting steps that popey gave the same for it as well?
There is also an option to edit disk mounts in Disks (gnome-disk-utility)
Open Disks > Select disk in left pane > Click gear wheel (additional partition options) > Edit Mount Options > Switch off User Session Defaults > Continue editing
Oops - I’ve just noticed the OP is using Plasma, Disks may not be present