Page 1 of 4 123 ... LastLast
Results 1 to 10 of 39

Thread: Just made a horrible horrible horrible mistake

  1. #1

    Default Just made a horrible horrible horrible mistake

    Ok, I'm trying not to hyperventilate here...

    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.

    Edit: If you think I'm trolling I'm not. This is the output from bash after running the command: http://pastebin.org/63770

  2. #2
    Join Date
    Mar 2008
    Location
    San Diego (California)
    Posts
    475

    Default Re: Just made a horrible horrible horrible mistake

    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.
    ~ There are 10 types of people. Those who understand binary, and those who don't. ~

  3. #3
    Join Date
    Mar 2008
    Location
    San Diego (California)
    Posts
    475

    Default Re: Just made a horrible horrible horrible mistake

    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
    ~ There are 10 types of people. Those who understand binary, and those who don't. ~

  4. #4

    Default Re: Just made a horrible horrible horrible mistake

    Quote Originally Posted by G0NZ0 View Post
    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 root):
    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 unmounted...

  5. #5
    Join Date
    Mar 2008
    Location
    San Diego (California)
    Posts
    475

    Default Re: Just made a horrible horrible horrible mistake

    Quote Originally Posted by ChrisH_16 View Post
    It did manage to delete some directories though somehow, like program files.
    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.
    ~ There are 10 types of people. Those who understand binary, and those who don't. ~

  6. #6
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Just made a horrible horrible horrible mistake

    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  7. #7
    Kevin Miller NNTP User

    Default Re: Just made a horrible horrible horrible mistake

    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
    >> root):
    >> 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
    > unmounted...


    Well, if they're unmounted you won't see any files. Try mounting them
    and seeing if the files don't 'magically' appear.

    --
    Kevin Miller - http://www.alaska.net/~atftb
    Juneau, Alaska
    In a recent survey, 7 out of 10 hard drives preferred Linux
    Registered Linux User No: 307357, http://counter.li.org

  8. #8

    Default Re: Just made a horrible horrible horrible mistake

    Quote Originally Posted by Kevin Miller View Post
    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
    >> root):
    >> 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
    > unmounted...


    Well, if they're unmounted you won't see any files. Try mounting them
    and seeing if the files don't 'magically' appear.

    --
    Kevin Miller - A Turn for the Better
    Juneau, Alaska
    In a recent survey, 7 out of 10 hard drives preferred Linux
    Registered Linux User No: 307357, Linux Counter: Home Page
    When I try to mount them it just says that they don't exist.

  9. #9
    Join Date
    Mar 2008
    Location
    San Diego (California)
    Posts
    475

    Default Re: Just made a horrible horrible horrible mistake

    Quote Originally Posted by ChrisH_16 View Post
    When I try to mount them it just says that they don't exist.
    The files do not exists or the drives?
    ~ There are 10 types of people. Those who understand binary, and those who don't. ~

  10. #10
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,734
    Blog Entries
    20

    Default Re: Just made a horrible horrible horrible mistake

    Open a terminal become su and do

    Code:
    fdisk -l
    post result - explain which partitions you want to mount from the list
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

Page 1 of 4 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •