I chdir’d to /.wine/drive_c/ and ran rm -rf on the /windows/ directory in it, since I made a mistake pertaining to several files in wine’s windows directory. I even double checked, the directory appeared fine. While it was doing that I ran off to eat dinner.
When I came back, I noticed an odd amount of errors in the terminal and it didn’t take long for me to realise that it DELETED ALL THE DATA OFF OF MY OTHER TWO HARD DRIVES WITH WINDOWS ON THEM. I also happen to have an external backup drive too BUT IT DELETED ALL THE DATA OFF OF THAT TOO.
Oh god, what do I do? I know it sounds crazy but is there any way to undo this? Oh god… oh god please help me. I’m still somewhat new to OpenSUSE but I didn’t expect this to happen at all… all I can guess is that there were some symlinks or something somewhere. Oh christ.
In Windows file systems, there are quite a few tools to recover data. You can recover 100% of your data if the file system is NTFS or FAT32.
Now you should first determine which file systems those drives were. I am not expert in anything regarding Windows, so I am unable to recommend a specific tool, but someone will post here soon with more helpful details. So don’t be too mad at you. Don’t attempt to write anything on those drives, just leave them as they are until you can find a tool.
Just saw your output. Are you sure you deleted anything at all? From that output it does not seem to me like you deleted anything. Looks like your system is configured in a way that you do not have access to those partitions, which I suppose are NTFS.
For the future, I would add this entry to your .bashrc (users and root):
alias rm=‘rm -i’
So this way it will ask you confirmation before deleting any files through rm command
I see. Well, don’t be in despair, there are plenty of tools to recover from a NTFS, google returns many results, just I have no idea which programs are good and which not.
Do you have another computer with a Windows?
If you do not, assuming your Windows does not boot or does not work properly any more, in the worst case you could bring it to a computer store and they could do that for you. It should not be too expensive.
On 12/11/2009 06:16 PM, ChrisH 16 wrote:
> G0NZ0;2086442 Wrote:
>> Just saw your output. Are you sure you deleted anything at all? It does
>> not seem to me like you deleted anything from that output. Looks like
>> your system is configured in a way that you do not have access to those
>> partitions, which I suppose are NTFS.
>> For the future, I would add this entry to your .bashrc (users and
>> alias rm=‘rm -i’
>> So this way it will ask you confirmation before deleting any files
>> through rm command
> I’ve checked all the drives, every directory is completely vacant of
> files now. It did manage to delete some directories though somehow, like
> program files.
> I’ve also tried to unmount the drives, but it says they’re already
Well, if they’re unmounted you won’t see any files. Try mounting them
and seeing if the files don’t ‘magically’ appear.
It shows the partitions but the disk usage stats are grossly lower than they should be. Browsing to them in Dolphin, while some directories are still there, quite a few are gone and almost all files are gone. I should note that the system says they’re not mounted but they are. Winecfg also mentions that it can’t detect any drives at all.
Edit: Made a BartPE disk (with some data recovery tools added) in a Win XP under VirtualBox, and right now K3b is burning the iso to disk. As soon as it finishes I’m going to pray that I can recover a decent amount of data.