bazzite icon indicating copy to clipboard operation
bazzite copied to clipboard

Steam can't see second drive

Open c0debeats opened this issue 10 months ago • 6 comments

Describe the bug

Steam can't see or install games on second drive. When i add it in Steam via Storage it dosen't show up after clicking OK. Steam has created a "steamapps" folder on the drive. It is a new installation of Bazzite.

Screenshot_20240427_154222

What did you expect to happen?

Be able to install steam games on second drive.

Output of rpm-ostree status

rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia:stable
                   Digest: sha256:b6fe25cd8ebddef59b82f0d648a5ae52f7d345c737f7501154c9e686e247ba65
                  Version: nightly (2024-04-26T17:08:13Z)

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia:stable
                   Digest: sha256:d083443e63f59669047868dfb86a168e39967f4ae7e9a3ac63bbdedb0ef7bc6b
                  Version: main (2024-04-25T06:51:05Z)

Hardware

neofetch

Extra information or context

No response

c0debeats avatar Apr 27 '24 13:04 c0debeats

I ran into this issue because of Windows' fast boot. Unfortunately, I don't think that will solve your issue, because it doesn't look like you have another drive with Windows (unless if you overwrote a Windows partition when you installed Bazzite. If so, Windows might have left that other partition in an unwritable state as far as Steam and basic Linux commands are concerned). Maybe this will help someone else though.

I had a Windows partition, a partition full of Steam games that I installed using Windows, and a Bazzite partition that I set up later. Steam in Bazzite would let me select the games partition in the folder selector GUI, but it wouldn't actually get chosen and show up on the main Steam window when hitting OK. Booting back into Windows and disabling fast boot fixed it. Here's a guide on how to disable Windows fast boot: https://www.elevenforum.com/t/enable-or-disable-hibernate-in-windows-11.1894/ You might also need to disable hibernate. That was disabled for me by default. You might also need to set up automounting the ntfs drive in Bazzite.

msisinni avatar May 04 '24 01:05 msisinni

I haven´t run Windows in years. Both drives are formatet as BTRFS. It worked before i reinstalled Bazzite, since an update to KDE 6, completely broke the GUI.

c0debeats avatar May 14 '24 10:05 c0debeats

Also seeing this issue on a fresh installation

rpm-ostree status State: idle Deployments: ● ostree-unverified-registry:ghcr.io/ublue-os/bazzite-nvidia:stable Digest: sha256:1f485ba909fd32138e3dcef2be8d74275dec6f2ade04fe3f447a5fc922e97f31 Version: 40.20240531.0 (2024-05-31T17:07:54Z)

ostree-image-signed:docker://ghcr.io/ublue-os/bazzite:stable Digest: sha256:16b081d17ddfd29d66ecef85f9f2626122a841f66c960e41fee6f7722dc56197 Version: 40.20240527.0 (2024-05-27T15:37:48Z) image

In steam logs when I try to use the "add" dialogue for a new drive, I see this:

Couldn't write /sysroot/.steam_exec_test.sh: Read-only file system
Couldn't write /.steam_exec_test.sh: Operation not permitted
Couldn't write /etc/.steam_exec_test.sh: Permission denied
Couldn't write /usr/.steam_exec_test.sh: Read-only file system
Couldn't write /sysroot/ostree/deploy/default/var/.steam_exec_test.sh: Permission denied
Couldn't write /var/.steam_exec_test.sh: Permission denied
Couldn't write /boot/.steam_exec_test.sh: Permission denied
Couldn't write /boot/efi/.steam_exec_test.sh: Permission denied
Couldn't write /usr/bin/gamescope/.steam_exec_test.sh: Not a directory
Couldn't write /usr/libexec/ksysguard/ksgrd_network_helper/.steam_exec_test.sh: Not a directory
Couldn't write /usr/lib/waydroid/.steam_exec_test.sh: Permission denied
sh: line 1: /var/mnt/games/.steam_exec_test.sh: Permission denied
Failed system("/var/mnt/games/.steam_exec_test.sh") in execute test: 32256

When I choose the location and add it, the dialogue closes and no library is added.

I tested setting my user as the owner of all the files in the mounted drive. Also temporarily set perms to 777 and still unable to add.

nmlynch94 avatar Jun 02 '24 19:06 nmlynch94

I am also seeing the same problems on my system

rpm-ostree status
State: idle
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia:stable
                   Digest: sha256:1f485ba909fd32138e3dcef2be8d74275dec6f2ade04fe3f447a5fc922e97f31
                  Version: 40.20240531.0 (2024-05-31T17:07:54Z)

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia:stable
                   Digest: sha256:1f485ba909fd32138e3dcef2be8d74275dec6f2ade04fe3f447a5fc922e97f31
                  Version: 40.20240531.0 (2024-05-31T17:07:54Z)
                Initramfs: regenerate

  ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia:stable
                   Digest: sha256:1f485ba909fd32138e3dcef2be8d74275dec6f2ade04fe3f447a5fc922e97f31
                  Version: 40.20240531.0 (2024-05-31T17:07:54Z)

Screenshot_20240605_155950

I also get the same Steam errors:

Couldn't write /sysroot/.steam_exec_test.sh: Read-only file system
Couldn't write /.steam_exec_test.sh: Operation not permitted
Couldn't write /etc/.steam_exec_test.sh: Permission denied
Couldn't write /usr/.steam_exec_test.sh: Read-only file system
Couldn't write /sysroot/ostree/deploy/default/var/.steam_exec_test.sh: Permission denied
Couldn't write /var/.steam_exec_test.sh: Permission denied
sh: line 1: /var/mnt/games/.steam_exec_test.sh: Permission denied
Failed system("/var/mnt/games/.steam_exec_test.sh") in execute test: 32256
Couldn't write /boot/.steam_exec_test.sh: Permission denied
Couldn't write /boot/efi/.steam_exec_test.sh: Permission denied
sh: line 1: /var/mnt/windows_main/.steam_exec_test.sh: Permission denied
Failed system("/var/mnt/windows_main/.steam_exec_test.sh") in execute test: 32256
sh: line 1: /var/mnt/media/.steam_exec_test.sh: Permission denied
Failed system("/var/mnt/media/.steam_exec_test.sh") in execute test: 32256
sh: line 1: /var/mnt/stuff/.steam_exec_test.sh: Permission denied
Failed system("/var/mnt/stuff/.steam_exec_test.sh") in execute test: 32256
Couldn't write /usr/bin/gamescope/.steam_exec_test.sh: Not a directory
Couldn't write /usr/libexec/ksysguard/ksgrd_network_helper/.steam_exec_test.sh: Not a directory
Couldn't write /usr/lib/waydroid/.steam_exec_test.sh: Permission denied
sh: line 1: /var/mnt/games/steamapps/.steam_exec_test.sh: Permission denied
Failed system("/var/mnt/games/steamapps/.steam_exec_test.sh") in execute test: 32256

Here are the permissions for the directory:

ll /var/mnt/
total 60
drwxrwxrwx. 1 isaaki isaaki    18 Jun  5 16:08 games
drwxrwxrwx. 1 root   root    4096 Jun  5 16:08 media
drwxrwxrwx. 1 root   root   32768 Jun  5 16:08 stuff
drwxrwxrwx. 1 root   root    8192 Jun  5 16:08 windows_main

ll /var/mnt/games/
total 0
drwxr-xr-x. 1 isaaki isaaki 18 Jun  5 16:08 steamapps

Also since I am dual booting windows I did everything @msisinni said to do disabling fast boot, hibernate and setup auto mount for the ntfs drives, i also disabled fast boot in bios but I'm not sure if that is necessary. This did not fix the issue for me

I also noticed something strange when the games drive was formatted to btrfs, Steam made the steamapps folder in the directory, however when formatted to ext4 no folder would be made. I followed this auto mounting guide when mounting the drives.

Isaaki avatar Jun 05 '24 14:06 Isaaki

This workaround solved the issue for me :) https://github.com/ValveSoftware/steam-for-linux/issues/9640#issuecomment-1825064739

Isaaki avatar Jun 05 '24 20:06 Isaaki

The workaround from @Isaaki did not work for me.

c0debeats avatar Sep 13 '24 10:09 c0debeats