Valve investigating Steam bug that could evaporate your entire hard drive

Team Fortress 2 Linux
Nobody wants a trip to the data doctor

Valve is investigating a particularly nasty bug affecting Steam for Linux that's capable of wiping out both personal PC data and files stored on external storage drives.

As detailed by users on Valve's GitHutb Steam for Linux page, it stems from a line of code in steam.sh, which reads 'rm -rf "$STEAMROOT/". Normally the command is used when you choose to refresh Steam files -- something that can help solve game installation and other problems -- but users have discovered that it is also triggered when the Steam installation directory has been moved.

Doing so removes the directory part of the code, which then becomes 'rm -rf "/'". With no Steam folder specified, opening the app causes the deletion of every file on the machine and any connected external drives.

Valve told PC World that the bug had affected a "handful of users", adding that it has been unable to replicate the problem itself and is "adding some additional checks to ensure this is not possible while we continue to investigate".

Wiped out

One of the users on Valve's GitHub for Linux page reported losing all system data, in addition to files stored on a 3TB external drive -- many of which was, luckily for them, backed up to the cloud.

The message is pretty clear: unless you want to risk losing your personal files in a Steam-shaped black hole, it's best to leave the Steam installation directory where it is until Valve has done a bit more investigating.

TOPICS
Kane Fulton
Kane has been fascinated by the endless possibilities of computers since first getting his hands on an Amiga 500+ back in 1991. These days he mostly lives in realm of VR, where he's working his way into the world Paddleball rankings in Rec Room.
Latest in Websites & Apps
Quordle on a smartphone held in a hand
Quordle hints and answers for Tuesday, March 25 (game #1156)
NYT Strands homescreen on a mobile phone screen, on a light blue background
NYT Strands hints and answers for Tuesday, March 25 (game #387)
Quordle on a smartphone held in a hand
Quordle hints and answers for Monday, March 24 (game #1155)
NYT Strands homescreen on a mobile phone screen, on a light blue background
NYT Strands hints and answers for Monday, March 24 (game #386)
Quordle on a smartphone held in a hand
Quordle hints and answers for Sunday, March 23 (game #1154)
NYT Strands homescreen on a mobile phone screen, on a light blue background
NYT Strands hints and answers for Sunday, March 23 (game #385)
Latest in News
Disney Plus logo with popcorn
You can finally tell Disney+ to stop bugging you about that terrible Marvel show you regret starting
Google Gemini AI
Gemini can now see your screen and judge your tabs
Girl wearing Meta Quest 3 headset interacting with a jungle playset
Latest Meta Quest 3 software beta teases a major design overhaul and VR screen sharing – and I need these updates now
Philips Hue
Philips Hue might be working on a video doorbell, and according to a new report, we just got our first look at it
Microsoft
"Another pair of eyes" - Microsoft launches all-new Security Copilot Agents to give security teams the upper hand
The Samsung Galaxy S25 Edge on display the January 22, 2025 Galaxy Unpacked event.
A fresh Samsung Galaxy S25 Edge leak hints at a 2K display and a titanium frame