Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Is there any free undelete software for the Mac?

I accidentally typed rm -rf * in my root directory instead of the folder I had intended to.

I managed to stop the delete halfway through, but it had already taken all my pictures, movies, music, and, most importantly, the 5000 odd lines of code that my advisor wants tonight.

I'm using a Macbook Pro, OSX 10.6.4 Any help recovering the stuff would be nice.

Thanks in advance.

PS I understand this may be a duplicate, but I'm asking before I start searching because I'm kinda desperate right now.

EDIT: Currently trying a program called StellarPhoenix for Mac. Its finding stuff, no word on how successful it might be, though.

share|improve this question

marked as duplicate by random Jul 9 '10 at 0:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3  
First: Stop using the partition, you may overwrite what's left of the files. –  Bobby Jul 8 '10 at 8:33
    
You're lucky it didn't find its way to your system files... –  BloodPhilia Jul 8 '10 at 8:38
2  
This has been asked before: superuser.com/questions/107396/… –  sleske Jul 8 '10 at 9:17
    
I'm asking with a bit of reservation, but none of this can be recovered from a recent backup, can it? –  fideli Jul 8 '10 at 10:55
    
@fideli I reformatted my computer after graduating and until last week there was nothing of value on the machine. Great way to start a new job, eh? Glad I'm only a temp. –  mechko Jul 8 '10 at 10:57

1 Answer 1

up vote 2 down vote accepted

I've used photorec to good effect. You need to immediately stop using the drive at all, since it can begin to overwrite the data that was in the files. Mount the drive read-only using a livecd or another computer. I think with a mac you want to use target mode to hook it up to another.

Also, learn a lesson from this and start keeping backups of your valuable data. It could just as easily have been physical failure and then you'd not even have a chance of recovering anything.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.