Help I Accidentally Deleted A Lot Of Files I Need Them Back!!!!

Discussion in 'Mac Basics and Help' started by natatos, May 29, 2009.

  1. natatos macrumors regular

    Joined:
    Dec 23, 2008
    Location:
    Iowa
    #1
    Apple support is closed now so I cant contackt them but in teminal I entered
    but at first it seemed normal and then I noticed an icon on my desktop go away then I looked at the terminal and it was deleting the files I worked on it got rid of everything in my documents and desktop and who knows where else but I know it was a lot I had only 75 GB and now I have 120.something I NEED THEM BACK this is really bad I have assignments and other important personal stuff (photos, pictuers I made, music, and so on) also purchased music over probobly $100.00


    Even though this is really bad I cant help but laugh at this because I was going to get a backup removable hard drive this weekend

    HELP!!!!!:eek::eek::eek::eek::eek::eek::mad::mad::mad::mad::mad: I need this stuff back.
     
  2. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #2
    Did you happen to put your home folder in the trash before doing this?
     
  3. dsnort macrumors 68000

    dsnort

    Joined:
    Jan 28, 2006
    Location:
    In persona non grata
    #3
    Doesn't that sudo command just move stuff to the trash? Might it be in the Trash Can?

    What Os are you running? Is Time Machine an option?
     
  4. natatos thread starter macrumors regular

    Joined:
    Dec 23, 2008
    Location:
    Iowa
    #4
    No I don't think so I've done this command in terminal before and it always worked.

    No I dont have a backup storage device I was going to get one soon though I will tomorrow.
     
  5. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #5
    Right, that command should only delete the contents of the Trash, unless I am missing something, which is why I was wondering if you or someone else put your home folder in there.
     
  6. flopticalcube macrumors G4

    flopticalcube

    Joined:
    Sep 7, 2006
    Location:
    In the velcro closure of America's Hat
    #6
  7. Jethryn Freyman macrumors 68020

    Jethryn Freyman

    Joined:
    Aug 9, 2007
    Location:
    Australia
    #7
    The two best data recovery utilities are Data Rescue 2 and Photorec (free).
     
  8. dsnort macrumors 68000

    dsnort

    Joined:
    Jan 28, 2006
    Location:
    In persona non grata
    #8
    Aha, ya' learn something new every day!
     
  9. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #9
    I recommend that you never use the rm command ever again.

    Oh, I should also mention that I find it highly unlikely you're going to get everything back using a recovery program. You're probably going to have to reinstall Leopard.
     
  10. MacManiac76 macrumors 65816

    MacManiac76

    Joined:
    Apr 21, 2007
    Location:
    Arizona
    #10
    Just out of curiousity, why were you even using this command in the first place? Why empty the trash from the command line in Terminal? Too easy to have something bad happen with the rm command as you have found out. Especially when using ~ anywhere in the rm command.
     
  11. Jethryn Freyman macrumors 68020

    Jethryn Freyman

    Joined:
    Aug 9, 2007
    Location:
    Australia
    #11
    Next time you want to empty the trash with the rm command, type:

    Code:
    sudo rm -rvf 
    with the space after the "f" then drag the items from the trash onto the terminal window, and hit return.
     
  12. GoKyu macrumors 65816

    GoKyu

    Joined:
    Feb 15, 2007
    Location:
    New Orleans
    #12
    If you're gonna use rm in terminal (and *especially* if you're using root/sudo), ALWAYS use the -i flag for interactive mode. That way, it asks Y/N for each file.

    It's too easy to do something like rm -rf / path/to/file (notice the first space), and consequently essentially reformat your drive...
     
  13. surflordca macrumors 6502a

    surflordca

    Joined:
    Nov 16, 2007
    Location:
    Ontario, Canada
    #13
    Kind of late for that now but better late than never. It's amazing how people learn to backup after the fact...
     
  14. MacDawg macrumors P6

    MacDawg

    Joined:
    Mar 20, 2004
    Location:
    "Between the Hedges"
    #14
    Unfortunately for the OP there is a lot more advice about what 'should have been done' than there is about what can be done now

    Wish I had a better solution than Data Rescue II given above, but I don't
    I hope you have some success in getting back your files
    Sux to lose data

    Give us an update if you are able :eek:

    Woof, Woof - Dawg [​IMG]
     
  15. velocityg4 macrumors 68040

    velocityg4

    Joined:
    Dec 19, 2004
    Location:
    Georgia
    #15
    First off, I did not notice this mentioned, stop using the hard drive with the deleted files! Right now! As you install programs, surf the net or any other activity you are adding temporary and permanent files to your hard drive. Each write to your hard drive can mean one or many files that are lost forever.

    Now go and buy a hard drive to install Mac OS X onto and to store your recovered data (assuming you do not have another computer nor hard drive handy and you do not have a Windows partition on your Mac).

    I would try Stellar Phoenix for data recovery. If you have a Windows computer or Windows on your Mac try Nucleus Kernel Mac. These are much more thorough programs than Data Rescue II. They do not require a recognizable partition map to function. Although I have had a thorough scan take over a day and several weeks for recovery on a hard drive with a faulty logic board.
     
  16. Tumbleweed666 macrumors 68000

    Joined:
    Mar 20, 2009
    Location:
    Near London, UK.
    #16
    .... ask the nearest person to smack you about the face several times and then just drag stuff there like a normal person.
     

Share This Page