This topic has been locked
Danny Feb 20, 2015 @ 4:32am
Steam CMD wiped my whole drive clean O_O [Major flaw]
I used steam cmd to download rust dedicated server, it had a problem at the last stage and it deleted the whole drive that It was downloading on.

This is not acceptable, please make sure STEAM CMD can not wipe a whole drive in the future.

I am using a file recovery program to try and get my ♥♥♥♥ back.
< >
Showing 1-15 of 19 comments
 KARR™ Feb 20, 2015 @ 5:23am 
There used to be a flaw in that it tried to run: rm -rf “$STEAMROOT/“* to remove folders. BUT, if the steamroot folder didnt exist or youve moved folders, it would just run rm -rf “$/“* and...voila..bye bye data!

Mostly because it tries to define steamroot earlier on and if it can't find the folder, rather than failing or warning, it just sets it up as nothing:

STEAMROOT="$(cd "${0%/*}" && echo $PWD)"
STEAMDATA="$STEAMROOT"

This was patched out though about a month ago.

A similar issue is on the main client, theres a warning on support about this one.

Warning:
The uninstallation process deletes the folder Steam was installed to to ensure it is fully uninstalled. If you accidentally installed Steam to a folder containing other data, for example C:\Program Files\ instead of C:\Program Files\Steam\, STOP! Do not run the uninstaller and instead carefully follow the instructions below for Manually Removing Steam, except only delete Steam-related files in step 3.
Last edited by  KARR™; Feb 20, 2015 @ 5:25am
Danny Feb 20, 2015 @ 6:14am 
what a ♥♥♥♥♥♥ bug, my files can not be restored, i had films, games, other videos.

jesus christ, steam have pissed me off big time.
Azza ☠ Feb 20, 2015 @ 6:17am 
Don't make any changes to the hard-drive, install/uninstall, etc.

Use a small app called "Undelete Plus" or similar to scan the drive. You can easily recover any deleted files so long they haven't been overwritten by any other content or secure wiped.
Danny Feb 20, 2015 @ 6:57am 
well i already tried with the program i use already. The files recovered were not windows compatible.

Steam really needs to make sure steam cmd can not and will not wipe the whole fking drive. :carkill:
Myrkur Aug 5, 2015 @ 2:20am 
ok i feel this was intental steam cmd whiped my entire second drive clean butthe servers folders and then removed all my restore points
numbaz1337 Aug 5, 2015 @ 2:27am 
o my gad
Originally posted by oWnGalacon 2015 | The Doctor:
ok i feel this was intental steam cmd whiped my entire second drive clean butthe servers folders and then removed all my restore points
How did it happen?
 KARR™ Aug 5, 2015 @ 5:17am 
Originally posted by oWnGalacon 2015 | The Doctor:
ok i feel this was intental steam cmd whiped my entire second drive clean butthe servers folders and then removed all my restore points

Hate to quote myself, but that was patched our on SteamCMD a while ago unless they've for some reason added it back in again!?!?!?

Originally posted by K.A.R.R.:
This was patched out though about a month ago.
Tee Feb 28, 2016 @ 9:49am 
This issue is still existing and it is NOT FIXED! What a ridiculous bug and absolutely appalling this isn't FIXED ASAP!
Palicgofueniczekt Feb 24, 2017 @ 4:34pm 
Valve, this is unacceptable. You just wiped my drive. :Burn:
Wingnut Jan 17, 2018 @ 11:49am 
Originally posted by  KARR™:
There used to be a flaw in that it tried to run: rm -rf “$STEAMROOT/“* to remove folders. BUT, if the steamroot folder didnt exist or youve moved folders, it would just run rm -rf “$/“* and...voila..bye bye data!

Mostly because it tries to define steamroot earlier on and if it can't find the folder, rather than failing or warning, it just sets it up as nothing:

STEAMROOT="$(cd "${0%/*}" && echo $PWD)"
STEAMDATA="$STEAMROOT"

This was patched out though about a month ago.

A similar issue is on the main client, theres a warning on support about this one.

Warning:
The uninstallation process deletes the folder Steam was installed to to ensure it is fully uninstalled. If you accidentally installed Steam to a folder containing other data, for example C:\Program Files\ instead of C:\Program Files\Steam\, STOP! Do not run the uninstaller and instead carefully follow the instructions below for Manually Removing Steam, except only delete Steam-related files in step 3.

Patched through? Then what on Earth happened to me? Hundreds of documents don't delete themselves.
Zekiran Jan 17, 2018 @ 2:04pm 
Originally posted by adipo230:

Patched through? Then what on Earth happened to me? Hundreds of documents don't delete themselves.


If you put ANY files in the wrong folder, that's kind of asking for this kind of thing to happen.

Learn how to examine your folders and file structure... I can't even understand how anyone would make such a dreadful mistake like putting things outside a specific location designed for that exact application.
Wingnut Jan 20, 2018 @ 6:16am 
Originally posted by Zekiran:
Originally posted by adipo230:

Patched through? Then what on Earth happened to me? Hundreds of documents don't delete themselves.


If you put ANY files in the wrong folder, that's kind of asking for this kind of thing to happen.

Learn how to examine your folders and file structure... I can't even understand how anyone would make such a dreadful mistake like putting things outside a specific location designed for that exact application.
It went into the default program 86 or whatever file...
also it's not though, is it? I'm just a simple part time gamer, I actually have better things to do then that
Cathulhu Jan 20, 2018 @ 6:34am 
By default it installs into C:\Program Files(x86)\Steam\
That's the default. If it installed elsewhere, you changed it.
Wingnut Jan 20, 2018 @ 9:53am 
Originally posted by Cathulhu:
By default it installs into C:\Program Files(x86)\Steam\
That's the default. If it installed elsewhere, you changed it.
that's where it went -_-
< >
Showing 1-15 of 19 comments
Per page: 1530 50

Date Posted: Feb 20, 2015 @ 4:32am
Posts: 19