Jump to content

Valve investigating Steam bug that could evaporate your entire hard drive


sincity

Recommended Posts

Valve investigating Steam bug that could evaporate your entire hard drive

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.

mf.gif


rc.img
rc.img
rc.img

a2.imga2t.img8W6hXJwXKD0
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.