PDA

View Full Version : [ubuntu] Data recovery suggestion?


japhyr
March 31st, 2010, 09:30 AM
Hello,

My wife accidentally deleted all the images from her macbook, and had no prior backups. I want to try to recover some of them, and I think it should work because she hasn't used the computer much since then. I've read a bit about the process, but can someone suggest a couple clarifications?

Would it be easier to install a recovery program on my ubuntu box and connect to her macbook for the recovery, or use a livecd directly on her machine?
I've looked at magicrescue and testdisk/photorec. Any suggestions on which of these to start with?


Thank you for any suggestions; by the way I am quite comfortable on Linux, but fairly unfamiliar with navigating a mac.

oswaldkelso
March 31st, 2010, 10:06 AM
From what understand testdisk/photorec is the tool for the job. But here's some more should you want to try them.

http://www.mondorescue.org/
http://www.gnu.org/software/ddrescue/ddrescue.html

ajgreeny
March 31st, 2010, 10:22 AM
DO NOT INSTALL ON TO THE MAC!!!

That may overwrite files and then they are gone for good. I would suggest a live CD is best, as that will write nothing to the disk and give you a better chance of recovery.

As for the application(s) to use, I would also suggest you look at Testdisk and photorec, the latter of which was originally for recovery of photos from memory cards, but has now become good for almost any file type and system. Unfortunately it may find masses of randomly named/numbered files which you will then need to search through.

japhyr
March 31st, 2010, 10:37 AM
DO NOT INSTALL ON TO THE MAC!!!

That may overwrite files and then they are gone for good. I would suggest a live CD is best, as that will write nothing to the disk and give you a better chance of recovery.


This is part of what I'm trying to clarify. I know not to use the mac as is, because that overwrites the files I want. I know that using the livecd loads ubuntu into RAM, so that is safe. But what happens when I use the mac, running the livecd, to connect to the internet and install testdisk through synaptic? Does testdisk get installed into RAM? Is it better to install testdisk on my ubuntu laptop, and connect to the mac hard drive through firewire or something like that?

aysiu
March 31st, 2010, 11:50 AM
Yes, loading a live CD is the way to do it. Install the testdisk package and then use sudo photorec to get the deleted files back.

More details (with screenshots) here:
http://www.psychocats.net/ubuntucat/recoverdeletedfiles/

japhyr
April 3rd, 2010, 06:20 PM
More details (with screenshots) here:
http://www.psychocats.net/ubuntucat/...rdeletedfiles/

We are following these directions, and it looks like it is going to be a pretty good recovery. The program is listing 2547 jpg's recovered so far.

I have one question in the middle of all this, though. I connected a new external drive to store the recovered files, but it was an ntfs file system. I forced the mount. When we hook the external drive up to the mac when we are all done, will the mac be able to read from the ntfs external drive? If not, should we abort the recovery, format the HD from the mac, then start over again?

new_tolinux
April 3rd, 2010, 06:24 PM
I don't know anything about MAC's, so I'm not going to say anything about that.

I do know that you should finish the recovery. When it comes to recovery, the sooner the better.

If the Mac would not read the NTFS-drive, you're better of reading the drive by that live-cd or another machine, then copy it from the NTFS-drive to that machine and after that reformat the NTFS-drive.

aysiu
April 3rd, 2010, 06:34 PM
Macs cannot read NTFS by default. There may be a helper application you can install to read NTFS, though.

srs5694
April 4th, 2010, 09:57 PM
Macs cannot read NTFS by default. There may be a helper application you can install to read NTFS, though.

This isn't true of recent versions of OS X. A quick Google turns up this post (http://www.macosxhints.com/article.php?story=20050521110452194) about NTFS support in OS X 10.4.1 (the latest version is 10.6.3). I've personally used the support in 10.5 and 10.6 versions of OS X. Note that this is read-only support, but that's all that japhyr needs. For read-write NTFS support in OS X, Paragon has a commercial NTFS driver, (http://www.paragon-software.com/home/ntfs-mac/) and the MacFuse (http://code.google.com/p/macfuse/) tool enables use of NTFS-3g (the same source of NTFS support that Ubuntu uses).