You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Moving game between drives fails with error "content file locked" #12139
Please describe your issue in as much detail as possible:
Attempting to move a game from one disk to another should, ideally, result in the game being moved from one disk to another. What happens instead is that the Steam client will make me wait as though it's moving the files, and then at the point of completion throw the error "content file locked" and revert all changes.
Attempting to move "Steam Linux Runtime 3.0 Sniper" to the library in my home directory, which is where 1.0 Scout and 2.0 Soldier are already, similarly failed - although with the error "disk write error" instead.
Do be aware that this may not show in the logs as one step I took in trying to fix the issue was reinstalling Steam, and since then I've only tried moving a smaller game (Balatro) from a HDD partition to an SSD partition.
Steps for reproducing this issue:
Go to "Storage" in Steam settings
Select any game on a partition not in the home directory
Attempt to move the game to any other partition
Await process completion
Process will fail and the described error will occur instead
Reacted by Izzur Zuhri, Miguel Hernández, grimshins, fmevrel and Tomas
I think you're spot on: there most definitely is a pre-existing wineprefix - but it's not actually on sda4.
For context, I dual-boot Windows, so have some partitions formatted in NTFS so that both operating systems can access them.
For further context, I have 3 steam library folders, which are on:
sda3, the ext4 partition where Linux and Steam itself are installed
sda4, a shared NTFS partition on an SSD
sdb2, a shared NTFS partition on an HDD
The steam libraries on sda4 and sdb2 do contain compatdata folders - but they're just symlinks to the one on sda3 (where Steam is installed). I didn't manually configure this, I assume it's a default behaviour of wine/proton since I suspect they need to be on an ext4 or other Linux partition to work.
I think based on what you said, it looks like Steam isn't checking the canonical path for compatdata and is attempting to move the wineprefix to where it already is, and is thusly failing, causing it to undo the move for the actual game folder as well.
I realise I'm probably just being woefully naive and/or simplistic, but hopefully that at least helps clarify some things. Thanks again!
I get this error on my Steam Deck when I try to move a game to a drive where it's already been. The moving process will result in a 'content file locked' error. Clearing out the prefixes from both drives fixes this. I'm assuming it has something to do with it moving the Proton Prefix along with the game, except the first prefix doesn't get cleared out completely and on the move back it finds a duplicate prefix. This is a really jarring issue on the Steam Deck specifically because moving large games takes a long time, only to have that process error out at the end. It should either offer to remove the preexisting prefix, or alert me of the fact that a duplicate prefix exits, or delete the original prefix where it was moved from.
How to reproduce: (I chose The Room as example because it's small)
install the game on internal drive
move game to MicroSD card
move game back from MicroSD card to internal drive, and the error appears.
Same issue here: dual-boot Arch Linux + Windows 11, game library on a shared Btrfs partition (`/mnt/volume_data_3`).
After booting into Windows and launching Steam there, all Linux-native titles that already exist on disk become **"Update required"** with **"content file locked"** error and **cannot be launched at all** until the lock is removed.
Steam logs show:
Then restart Steam and press Play – manifest is re-read, no download happens, games launch normally.
Root cause:
Steam stores *.acf.lock files inside the shared library folder; after switching OS the inode/owner differs and the client treats the files as still locked by another process.
Please move lock files into the local Steam directory (~/.steam/...) so they are OS-private and do not interfere when dual-booting.
Confirmed: Found multiple .lock files preventing game launches:
pfx.lock in compatdata directories (Wine/Proton prefixes)
unity.lock in game directories
dist.lock in Proton directory
db.lock in workshop content
After deleting all .lock files and clearing appcache, games launch normally without re-downloading.
Root cause: Cross-platform lock file conflicts on shared Btrfs partition.
Lock files should be stored in OS-specific directories, not shared library locations.
UPDATE: Root cause confirmed - Windows on Btrfs sets file ownership to nobody:100 for downloaded content. When switching back to Linux, Steam cannot overwrite these files due to permission issues.
@kisak-valve Thank you for clarifying the official stance!
Understood that shared libraries aren't supported. However, the core issue remains: Steam stores OS-specific lock files (.lock, pfx.lock, etc.) in shared library locations where they cause cross-OS conflicts.
Even if shared libraries aren't officially supported, could Steam at least store these lock files in OS-specific directories (~/.steam/...) rather than the library folders? This would prevent the "content file locked" errors for dual-boot users who occasionally access the same game files from different OSes.
The current behavior breaks basic game functionality after OS switching, requiring manual file cleanup.
I dont know how this would have something to do with pre existing wine prefixes, as each game has their own? The other game has /mnt/nvme/SteamLibrary/steamapps/compatdata/233860 ...
The problem seems to be caused by case-insensitivity shenanigans. In the source directory there is both a gameinput.dll and a GameInput.dll. So gameinput.dll gets moved to the new directory, then it tries to move GameInput.dll but due to some case-insensitivity thing steam detects that there is already a file of that name in the target directory and so it fails. Seems to me too that the solution is to simply delete GameInput.dll in the source directory
Ran into this issue aswell. In my case I was moving a game from an ntfs drive (with compatdata symlink fix for compatability with windows) to my main Linux drive. The problem can happen whenever you try move a proton game between any drives that share the same compatdata directory.
Below is an example setup where moving a game between any of the drives would fail:
Drive Name
Filesystem
SteamLibrary's compatdata folder
Usecase
A
EXT4/BTRFS/etc
Default
Main linux drive where steam is installed
B
NTFS
symlinked -> Drive A's compatdata
Games SSD shared with windows
C
NTFS
symlinked -> Drive A's compatdata
Bulk storage HDD shared with windows
TLDR fix:
Start moving the game from within steam
Wait till progress bar starts moving
Manually delete the game's compatdata folder
This has to be done while the game is transferring
The games in compatdata are named by their steam AppID, not their name
Eg, when moving Marvel Rivals run rm -r ~/.steam/steam/steamapps/compatdata/2767030
The rest of this is the detailed steps to reproduce the problem and the fix
1. Drive Config:
Simple setup with Linux on its own drive, and a games drive formatted with NTFS to share with windows. Windows freaks out because of the file naming convention used in the proton compatdata folder, so instead the compatdata folder is symlinked to the linux drive where steam is installed.
1.1. Steam installed on BTRFS root /home/bentenjamin/.local/share/Steam
1.2. NTFS drive mounted with UUID=xxxxxx /home/bentenjamin/Mount/Warehouse ntfs-3g defaults,nofail,x-systemd.device-timeout=2 0 2
1.3. SteamLibrary compatdata directory of NTFS drive symlinked to the compatdata directory in Steam's install directory ln -sf /home/bentenjamin/.local/share/Steam/steamapps/compatdata /home/bentenjamin/Mount/Warehouse/SteamLibrary/steamapps/
2. Install game with Linux client onto drive that has a symlinked compatdata - result: Works as expected
2.1. Install Marvel Rivals to /home/bentenjamin/Mount/Warehouse
2.2. Game files are installed in /home/bentenjamin/Mount/Warehouse/SteamLibrary/steamapps/common/MarvelRivals
2.3. Marvel Rivals compatdata folder is automatically created on BTRFS drive /home/bentenjamin/.local/share/Steam/steamapps/compatdata/2767030
2.4. Marvel Rivals can be played from both Linux and windows
3. Move proton game with Linux client - result: Error
5. Move game with Linux client, deleting compatdata folder after it is automatically created - result: Success
Seems like steam knows how to recreate a game's compatdata folder, and will do so before it moves the game if it is missing. So I'll delete it manually while it is transferring the rest of the game, and it won't fail at the end when it does the overwrite check.
5.1. Repeat previous step 3.1.
5.2. Exact same results as 4.2, 4.2.1, 4.2.2
[2026-05-20 10:35:45] AppID 2767030 moving from "/home/bentenjamin/Mount/Warehouse/SteamLibrary/steamapps/common/MarvelRivals" to "/home/bentenjamin/.local/share/Steam/SteamLibrary/steamapps/common/MarvelRivals"
[2026-05-20 10:35:45] AppID 2767030 state changed : Fully Installed,Moving Folder,
[2026-05-20 10:35:51] Finished uninstall script before moving folders
5.3. After waiting for a few gigs to be moved, manually delete the compatdata directory that was automatically created: rm -r /home/bentenjamin/.local/share/Steam/steamapps/compatdata/2767030
5.4. Game is moved successfully
5.4.1. Old folder /home/bentenjamin/Mount/Warehouse/SteamLibrary/steamapps/common/MarvelRivals is deleted
5.4.2. compatdata folder /home/bentenjamin/.local/share/Steam/steamapps/compatdata/2767030 is automatically created again at the end of the move process
This is probably overly verbose and not particularly useful as I understand it is unsupported, but I figured I'd document it for anyone else who's interested or has the same problem
I had this issue and all I had to do was delete the prefix from the original drive. There was no prefix for the game in the new drive.
The error in the logs was: Can't overwrite existing file "/home/user/.local/share/Steam/steamapps/compatdata/1091500/pfx/drive_c/windows/system32/GameInput.dll"
Might even be enough to only delete that file. Like insunaa said
I did a bunch of debugging and I believe we are dealing with multiple bugs.
First, this has nothing to do with NTFS, I can reproduce the problem from ext4 to ext4. Steam must be overzealous and checking if a similar file already exists (GameInput.dll versus gameinput.dll).
However there is another bug where config_info fails to be copied. I made a backup of one small game that consistently reproduces this, the config_info says the prefix was from GE-Proton10-17.
After that failure, the prefix is updated to the current version (GE-Proton11-6) and the new files gameinput.dll are created, but the old files GameInput.dll are not removed, and that creates the second issue.
So I believe we are dealing with 3 issues:
Steam for some reason thinks it's overwriting an existing "config_info" file, even though it isn't (happens with old proton prefixes)
Steam doesn't update the prefixes correctly (leaves potentially conflicting libraries)
Steam is overzealous when moving games and checking for files with the same name (assuming case-insensitivity)
Removing the old GameInput.dll fixes the problem for me.
And for the record, NTFS is case-sensitive, it's allowed to have GameInput.dll and gameinput.dll. Windows doesn't allow the creation of such files, but internally it's possible and it can be done in linux.
If any developer wants the compatdata that creates the config_info, it's 930 M, and the game is only 1.1 G.
Just an observation that I just made with this problem I'm also having on Bazzite. The file mentioned by @Snack555 is the same file that my failed game moves are having a fit about. The file in question at least in my case and I suspect it's the same for everone else, is a symbolic link to the proton version that people are using for the game.
I just ran into this on a completely standard Steam Deck. I moved Prey temporarily to an SD card, and now I can't move it back. I did the easy thing of removing it from the card and re-downloading.
Activity
kisak-valve commentedon Jun 26, 2025
Hello @PseudonymousNX, looking at your content_log.txt, these are the lines of interest:
That suggests there's a pre-existing wineprefix on the sda4 Steam library folder that's tripped a failsafe mechanism.
PseudonymousNX commentedon Jun 26, 2025
Thanks for your help!
I think you're spot on: there most definitely is a pre-existing wineprefix - but it's not actually on sda4.
For context, I dual-boot Windows, so have some partitions formatted in NTFS so that both operating systems can access them.
For further context, I have 3 steam library folders, which are on:
The steam libraries on sda4 and sdb2 do contain
compatdatafolders - but they're just symlinks to the one on sda3 (where Steam is installed). I didn't manually configure this, I assume it's a default behaviour of wine/proton since I suspect they need to be on an ext4 or other Linux partition to work.I think based on what you said, it looks like Steam isn't checking the canonical path for
compatdataand is attempting to move the wineprefix to where it already is, and is thusly failing, causing it to undo the move for the actual game folder as well.I realise I'm probably just being woefully naive and/or simplistic, but hopefully that at least helps clarify some things. Thanks again!
stellaberrant commentedon Sep 28, 2025
I get this error on my Steam Deck when I try to move a game to a drive where it's already been. The moving process will result in a 'content file locked' error. Clearing out the prefixes from both drives fixes this. I'm assuming it has something to do with it moving the Proton Prefix along with the game, except the first prefix doesn't get cleared out completely and on the move back it finds a duplicate prefix. This is a really jarring issue on the Steam Deck specifically because moving large games takes a long time, only to have that process error out at the end. It should either offer to remove the preexisting prefix, or alert me of the fact that a duplicate prefix exits, or delete the original prefix where it was moved from.
How to reproduce: (I chose The Room as example because it's small)
Brensom commentedon Nov 15, 2025
update canceled : Temp folder not writable (Disk write failure)
Can't overwrite existing file ... (content file locked)
Then restart Steam and press Play – manifest is re-read, no download happens, games launch normally.
Root cause:
Steam stores
*.acf.lockfiles inside the shared library folder; after switching OS the inode/owner differs and the client treats the files as still locked by another process.Please move lock files into the local Steam directory (
~/.steam/...) so they are OS-private and do not interfere when dual-booting.Confirmed: Found multiple
.lockfiles preventing game launches:pfx.lockin compatdata directories (Wine/Proton prefixes)unity.lockin game directoriesdist.lockin Proton directorydb.lockin workshop contentAfter deleting all
.lockfiles and clearing appcache, games launch normally without re-downloading.Root cause: Cross-platform lock file conflicts on shared Btrfs partition.
Lock files should be stored in OS-specific directories, not shared library locations.
UPDATE: Root cause confirmed - Windows on Btrfs sets file ownership to
nobody:100for downloaded content. When switching back to Linux, Steam cannot overwrite these files due to permission issues.Final solution:
Needs fix in Steam: Lock files and temporary download folders should use OS-specific locations, not shared library paths.
kisak-valve commentedon Nov 15, 2025
Hello @Brensom, it should be noted that sharing a Steam library folder between OSes is not supported and that's the kind of undefined behavior that might occur. (https://github.com/ValveSoftware/steam-for-linux/blob/master/RelNotes.md#installation)
Brensom commentedon Nov 15, 2025
@kisak-valve Thank you for clarifying the official stance!
Understood that shared libraries aren't supported. However, the core issue remains: Steam stores OS-specific lock files (.lock, pfx.lock, etc.) in shared library locations where they cause cross-OS conflicts.
Even if shared libraries aren't officially supported, could Steam at least store these lock files in OS-specific directories (
~/.steam/...) rather than the library folders? This would prevent the "content file locked" errors for dual-boot users who occasionally access the same game files from different OSes.The current behavior breaks basic game functionality after OS switching, requiring manual file cleanup.
br4nnigan commentedon Dec 28, 2025
I got the same error, but source and target disks are linux (ext4) ...
Actually I moved one game successfully, but then another one gave me this error.
I dont know how this would have something to do with pre existing wine prefixes, as each game has their own? The other game has /mnt/nvme/SteamLibrary/steamapps/compatdata/233860 ...
uliss3s commentedon Jan 8, 2026
Just tried to move DARKTIDE and got the same error.
The path '/data/SteamLibrary/steamapps/compatdata/1361210' did not exist before i tried to move the game.
I did the process with Arc Raiders successfully before that.
mazeratibooloo commentedon Jan 13, 2026
Having this issue as well, trying to move TCG Card Shop Simulator from a btrfs partition to my ext4 partition.
Upon checking, this file the logs claims to exist does not. Same error occurred 5 times, even after a reboot.
uliss3s commentedon Jan 13, 2026
I have the same problem and "solved" it by deleting the problematic files before starting the move process. #12632
insunaa commentedon May 8, 2026
The problem seems to be caused by case-insensitivity shenanigans. In the source directory there is both a
gameinput.dlland aGameInput.dll. Sogameinput.dllgets moved to the new directory, then it tries to moveGameInput.dllbut due to some case-insensitivity thing steam detects that there is already a file of that name in the target directory and so it fails. Seems to me too that the solution is to simply deleteGameInput.dllin the source directorybentenjamin commentedon May 20, 2026
Ran into this issue aswell. In my case I was moving a game from an ntfs drive (with compatdata symlink fix for compatability with windows) to my main Linux drive. The problem can happen whenever you try move a proton game between any drives that share the same compatdata directory.
Below is an example setup where moving a game between any of the drives would fail:
TLDR fix:
rm -r ~/.steam/steam/steamapps/compatdata/2767030The rest of this is the detailed steps to reproduce the problem and the fix
1. Drive Config:
Simple setup with Linux on its own drive, and a games drive formatted with NTFS to share with windows. Windows freaks out because of the file naming convention used in the proton compatdata folder, so instead the compatdata folder is symlinked to the linux drive where steam is installed.
1.1. Steam installed on BTRFS root
/home/bentenjamin/.local/share/Steam1.2. NTFS drive mounted with
UUID=xxxxxx /home/bentenjamin/Mount/Warehouse ntfs-3g defaults,nofail,x-systemd.device-timeout=2 0 21.3. SteamLibrary
compatdatadirectory of NTFS drive symlinked to thecompatdatadirectory in Steam's install directoryln -sf /home/bentenjamin/.local/share/Steam/steamapps/compatdata /home/bentenjamin/Mount/Warehouse/SteamLibrary/steamapps/2. Install game with Linux client onto drive that has a symlinked compatdata - result: Works as expected
2.1. Install Marvel Rivals to
/home/bentenjamin/Mount/Warehouse2.2. Game files are installed in
/home/bentenjamin/Mount/Warehouse/SteamLibrary/steamapps/common/MarvelRivals2.3. Marvel Rivals
compatdatafolder is automatically created on BTRFS drive/home/bentenjamin/.local/share/Steam/steamapps/compatdata/27670302.4. Marvel Rivals can be played from both Linux and windows
3. Move proton game with Linux client - result: Error
3.1. Steam client -> Library -> installed locally collection -> right click Marvel Rivals -> properties -> Installed Files -> Move install folder -> select
/home-> click Move3.2. Loading bar shows data move progress
/home/bentenjamin/.local/share/Steam/steamapps/common/MarvelRivalsis automatically created/home/bentenjamin/.local/share/Steam/logs/content_log.txt:3.3. Error is thrown at 100% progress bar
/home/bentenjamin/.local/share/Steam/steamapps/common/MarvelRivalsis automatically deleted/home/bentenjamin/.local/share/Steam/steamapps/compatdata/2767030is automatically deleted/home/bentenjamin/.local/share/Steam/logs/content_log.txt:4. Move proton game with Linux client, after deleting it's compatdata - result: Error
Retry moving the game as the
config_infofile mentioned in the logs, as well as the entire2767030folder, don't exist.4.1. Repeat previous step 3.1.
4.2. Loading bar shows data move progress
/home/bentenjamin/.local/share/Steam/steamapps/common/MarvelRivalsis automatically created/home/bentenjamin/.local/share/Steam/steamapps/compatdata/2767030is automatically created/home/bentenjamin/.local/share/Steam/logs/content_log.txt:4.3. Exact same results as 3.3.1, 3.3.2, and 3.3.3
/home/bentenjamin/.local/share/Steam/logs/content_log.txt:5. Move game with Linux client, deleting compatdata folder after it is automatically created - result: Success
Seems like steam knows how to recreate a game's compatdata folder, and will do so before it moves the game if it is missing. So I'll delete it manually while it is transferring the rest of the game, and it won't fail at the end when it does the overwrite check.
5.1. Repeat previous step 3.1.
5.2. Exact same results as 4.2, 4.2.1, 4.2.2
/home/bentenjamin/.local/share/Steam/logs/content_log.txt:5.3. After waiting for a few gigs to be moved, manually delete the compatdata directory that was automatically created:
rm -r /home/bentenjamin/.local/share/Steam/steamapps/compatdata/27670305.4. Game is moved successfully
/home/bentenjamin/Mount/Warehouse/SteamLibrary/steamapps/common/MarvelRivalsis deleted/home/bentenjamin/.local/share/Steam/steamapps/compatdata/2767030is automatically created again at the end of the move process/home/bentenjamin/.local/share/Steam/logs/content_log.txt:This is probably overly verbose and not particularly useful as I understand it is unsupported, but I figured I'd document it for anyone else who's interested or has the same problem
Datastreamx commentedon Aug 17, 2026
I had this issue and all I had to do was delete the prefix from the original drive. There was no prefix for the game in the new drive.
The error in the logs was:
Can't overwrite existing file "/home/user/.local/share/Steam/steamapps/compatdata/1091500/pfx/drive_c/windows/system32/GameInput.dll"Might even be enough to only delete that file. Like insunaa said
felipec commentedon Sep 9, 2026
I did a bunch of debugging and I believe we are dealing with multiple bugs.
First, this has nothing to do with NTFS, I can reproduce the problem from ext4 to ext4. Steam must be overzealous and checking if a similar file already exists (
GameInput.dllversusgameinput.dll).However there is another bug where
config_infofails to be copied. I made a backup of one small game that consistently reproduces this, the config_info says the prefix was from GE-Proton10-17.After that failure, the prefix is updated to the current version (GE-Proton11-6) and the new files
gameinput.dllare created, but the old filesGameInput.dllare not removed, and that creates the second issue.So I believe we are dealing with 3 issues:
Removing the old
GameInput.dllfixes the problem for me.And for the record, NTFS is case-sensitive, it's allowed to have
GameInput.dllandgameinput.dll. Windows doesn't allow the creation of such files, but internally it's possible and it can be done in linux.If any developer wants the compatdata that creates the
config_info, it's 930 M, and the game is only 1.1 G.This is on Arch Linux, BTW.
Snack555 commentedon Sep 14, 2026
This is happening with dxvk-igdext files now. All my games have the same error when trying to move them.
For example when moving a game this can be seen in content_log.txt (same file for every game):
AppID 211420 canceled moving : File locked at 4605952321/4795925615 bytes, 652 files moved (Can't overwrite existing file "/mnt/steam/SteamLibrary/steamapps/compatdata/211420/pfx/drive_c/windows/system32/DriverStore/FileRepository/igd_faux.inf_1/igd10iumd64.dll" (35867 bytes))The workaround is just removing that file and trying to move the game again.
SkissorsWolf commentedon Sep 15, 2026
Just an observation that I just made with this problem I'm also having on Bazzite. The file mentioned by @Snack555 is the same file that my failed game moves are having a fit about. The file in question at least in my case and I suspect it's the same for everone else, is a symbolic link to the proton version that people are using for the game.
justasimpleuser3 commentedon Sep 27, 2026
Looks like got similar error when tried to move Broken Arrow game between drives on Fedora 44 with flatpak version of steam.
Did it two times. There is no even such compatdata folder on drive I'm moving game into. So looks like there is a mistake in moving script.
deviantintegral commentedon Oct 6, 2026
I just ran into this on a completely standard Steam Deck. I moved Prey temporarily to an SD card, and now I can't move it back. I did the easy thing of removing it from the card and re-downloading.
proton: use lowercase driverstore path for igdext64.dll
proton: unify driverstore hierarchy to CamelCase DriverStore to avoid…
proton: unify driverstore hierarchy to CamelCase DriverStore to avoid…
proton: unify driverstore hierarchy to CamelCase DriverStore
proton: unify driverstore hierarchy to CamelCase DriverStore
proton: unify driverstore hierarchy to CamelCase DriverStore