29
submitted 1 year ago by Mandrew002@lemm.ee to c/linux@lemmy.ml

When trying to install games on an ext4 external drive I get a disk write error from steam. Whenever I reset the permissions on the drive to both read and write, not just read, steam immediately reverts that whenever it's opened.

top 4 comments
sorted by: hot top controversial new old
[-] conorab@lemmy.conorab.com 5 points 1 year ago

Where is Steam writing to and where is the drive mounted to? If the drive is mounted at /mnt/games, create the folder: /mnt/game/steam, run "chmod /mnt/game/steam" and then have Steam create it's library within there. So in the end, Steam's folder will probably be at /mnt/games/steam/SteamLibrary. This way it shouldn't matter what Steam is setting the permissions to.

[-] conorab@lemmy.conorab.com 1 points 1 year ago

Just noticed the chmod command I included missed the username part. I've edited the comment to fix it.

[-] deadcade@lemmy.deadca.de 1 points 1 year ago

You either have broken permissions, or a broken drive.

Try going into a terminal as your user, not root, and try creating a file in the directory you want to use for your Steam games. touch filename can be used to create files. If it spits back an error about permissions, you likely need to change ownership of the directory to your user. This would be sudo chown -R username:username /path/to/games/directory Make sure to only run this on a directory that's not used for anything else, as it can break system components if you run it on the wrong files.

If, when creating a file, you instead get a "Read only filesystem" or similar error, your external drive might be broken. This would be a whole separate thing to troubleshoot, and you'll have to look up your specific error for further actions.

[-] Mandrew002@lemm.ee 1 points 1 year ago

I get the Read only filesystem error but I can still create files on the drive

this post was submitted on 09 Sep 2023
29 points (100.0% liked)

Linux

47370 readers
912 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS