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.

Accidently i done rm -rf to one of my folder. How to recover it?

share|improve this question

migrated from serverfault.com Aug 18 '10 at 15:30

This question came from our site for professional system and network administrators.

14  
Quit your job, change your name, and start over in a new city. –  Paul Tomblin Aug 18 '10 at 15:23
1  
After an experience like this I think one might become inclined to begin considering how important it is to back up data: superuser.com/questions/25923/… –  karlphillip Aug 18 '10 at 17:15

3 Answers 3

It seems that a particular folder was deleted and not the entire drive.

First step, shut the machine down. This will help prevent those sectors from being over written.

Second step, go search for mac recovery software and buy something you like. There is a long list of software. This company has a good rep and might be worth a try: link text

Don't forget to make a backup of your existing data prior to recovery attempts. Do this from another computer with the disk attached externally.

If this lost data is critical to the survival of a business (as in people go to jail or the doors shutdown) then you may consider taking the drive directly to a data recovery specialist and pay the big bucks.

In the meantime put a new drive in the machine, reinstall the os and turn on time machine. Start copying your data back from the backup you just made.

Good luck.

share|improve this answer

If it didn't complete, or if you haven't used the server at all since, and I mean at all, it's possibly recoverable but it will be expensive (several thousand) and not guaranteed. Otherwise, ++jscott.

share|improve this answer

Macs use HFS, not the linux filesystems, so you'll need a mac specific tool. You'll never get it back to a bootable state without reinstalling, but if you need to recover some critical data try using a 3rd party mac disk recovery tool. I don't have a specific tool to recommend, you should google, but there are a few commercial ones for around 100 USD or a bit less. http://www.mac-file-recovery.com/ seems to have a free download that claims to show you what you could expect to recover so this might at least give you an idea about what is possible.

I've used Norton Disk Doctor for Macs in the past but this is no longer available - however it proves that its possible to retrieve at least some data with this type of approach.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.