Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steam can't see second drive #1027

Open
c0debeats opened this issue Apr 27, 2024 · 8 comments
Open

Steam can't see second drive #1027

c0debeats opened this issue Apr 27, 2024 · 8 comments

Comments

@c0debeats
Copy link

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

@msisinni
Copy link

msisinni commented May 4, 2024

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.

@c0debeats
Copy link
Author

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.

@nmlynch94
Copy link

nmlynch94 commented Jun 2, 2024

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.

@Isaaki
Copy link

Isaaki commented Jun 5, 2024

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
Copy link

Isaaki commented Jun 5, 2024

This workaround solved the issue for me :)
ValveSoftware/steam-for-linux#9640 (comment)

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 4, 2024
@c0debeats
Copy link
Author

The workaround from @Isaaki did not work for me.

@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 13, 2024
Copy link

dosubot bot commented Dec 13, 2024

Hi, @c0debeats. I'm Dosu, and I'm helping the bazzite team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You reported a bug where Steam cannot recognize or install games on a second drive in a new Bazzite installation.
  • Other users, including nmlynch94 and Isaaki, have experienced similar issues, with logs showing permission errors and read-only file system messages.
  • Isaaki found a workaround that worked for them, but it did not resolve the issue for you.
  • The problem persists despite attempts to adjust permissions and disable Windows fast boot, indicating a potential compatibility issue.

Next Steps:

  • Please let us know if this issue is still relevant to the latest version of the bazzite repository by commenting on this issue.
  • If there is no further activity, this issue will be automatically closed in 14 days.

Thank you for your understanding and contribution!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Dec 13, 2024
@tbelway
Copy link

tbelway commented Dec 17, 2024

Issue persists but the work-around resolves it.

@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants