Steam Deck: When moving a Proton game between SD and internal SSD fails with "content file locked" error, the game will point to compdata in the new location
steamopenSteam clientDistro Family: SteamOSProton
ValveSoftware/steam-for-linux#10219 ·
opened 2023-11-13
by dominalien ·
updated 2023-11-13 ·
1 comments ·
github
Have you checked for updates in Settings > System?: Yes
Please describe your issue in as much detail as possible:
When I try moving System Shock from SD card to internal SSD the operation fails with "content file locked". Settings->Storage is still showing the game on the SD card.
When I start the game, saves are gone. Looking at the file system, the game is still on the SD card, but now uses the compdata folder on the internal SSD, which was not moved from the SD card during the failed move operation and was created anew when the game started. As far as I can tell, this will also delete save files from the cloud when the sync is next performed.
What I would expect to happen is the game should not be made to point at the new compdata location before the move is fully finished and successful.
The original folder in compdata still exists on the SD, so data is not totally lost, but for someone who's not versed in this stuff it may as well be.
Still, when trying to diagnose this, I did manage to overwrite my saves and this got then synced to the cloud and I lost a ton of progress. I am very unhappy right now. :-(
Steps for reproducing this issue:
Have a Proton game that will fail to be moved from SD card to the internal SSD with the "content file locked" error.
Try and fail to move it.
Note in Settings->Storage the game is still listed on the SD card, note on the filesystem the game is still on the SD card.
Start the game and witness all saves being gone
Look at the filesystem and see there's now a folder in /home/deck/.steam/steam/steamapps/compdata/{gameno} which has no saves and this is the folder that the game now uses
Look at the filesystem and see there's still a /run/media/deck/{uuid}/steamapps/compdata/{gameno} folder there and that one includes all the saves, but the game no longer uses it
As additional info, this is how I lost my saves for the game:
I tried moving SS from SD to internal SSD a while ago and this failed.
I saw the game was now using the compdata folder on the internal SSD, so I copied my saves manually from the SD to the internal SSD
I played the game some more (game on the SD, compdata on the internal SSD)
Hoping it would somehow be fixed, I tried the move operation again and again it failed
It turns out during the failed move operation Steam deleted the [...]/compdata/{gameno} folder from the internal SSD and that was what contained all my current saves
After I'd started the game I saw my saves were, once again, gone
After I'd quit the game Steam deleted my saves from the cloud. Poof.
Your system information
Please describe your issue in as much detail as possible:
When I try moving System Shock from SD card to internal SSD the operation fails with "content file locked". Settings->Storage is still showing the game on the SD card.
When I start the game, saves are gone. Looking at the file system, the game is still on the SD card, but now uses the compdata folder on the internal SSD, which was not moved from the SD card during the failed move operation and was created anew when the game started. As far as I can tell, this will also delete save files from the cloud when the sync is next performed.
What I would expect to happen is the game should not be made to point at the new compdata location before the move is fully finished and successful.
The original folder in compdata still exists on the SD, so data is not totally lost, but for someone who's not versed in this stuff it may as well be.
Still, when trying to diagnose this, I did manage to overwrite my saves and this got then synced to the cloud and I lost a ton of progress. I am very unhappy right now. :-(
Steps for reproducing this issue: