Mac Book Partition Map Receovery || Illegal Instruction 4

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Message
Author
ameetmw
Posts: 1
Joined: 17 May 2014, 02:26

Mac Book Partition Map Receovery || Illegal Instruction 4

#1 Post by ameetmw »

Hi.
Last night my system crashed and am trying to recover my data using testdisk

I downloaded,unzipped Mac OS X Intel version of testdisk and tried executing through terminal. I'm getting "Illegal Intruction 4" error when i try to execute testdisk.

Can some one please suggest me what should i do to pass this error message??

./testdisk
Illegal Intruction 4

Blinkin
Posts: 8
Joined: 07 Jul 2014, 03:41

Re: Mac Book Partition Map Receovery || Illegal Instruction

#2 Post by Blinkin »

Getting same "Illegal instruction: 4" error in Terminal in Mountain Lion recovery mode.

Cannot proceed. Any suggestions?

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Mac Book Partition Map Receovery || Illegal Instruction

#3 Post by Fiona »

Partition map is only intended to old Apple Power PC and not Intel.
If you have an Intel Mac you should use EFI GPT instead.

Fiona

Blinkin
Posts: 8
Joined: 07 Jul 2014, 03:41

Re: Mac Book Partition Map Receovery || Illegal Instruction

#4 Post by Blinkin »

Thanks for the reply.

I don't even get a chance to enter "EFI GPT" for the partition type. The program doesn't execute.

Unless you're referring to running the powerpc binary as opposed to the intel. I correctly downloaded the intel one (http://www.cgsecurity.org/testdisk-7.0- ... el.tar.bz2). Could the 'testdisk' binary in that tarball be for the wrong architecture? Here's the output from 'file':

$file testdisk
testdisk: Mach-O executable i386

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Mac Book Partition Map Receovery || Illegal Instruction

#5 Post by Fiona »

Currently I've no Mac available to test it.
I'll forward it to Christophe Grenier.
In the meantime, could you try testdisk 6.14?

Fiona

Blinkin
Posts: 8
Joined: 07 Jul 2014, 03:41

Re: Mac Book Partition Map Receovery || Illegal Instruction

#6 Post by Blinkin »

Oops, I pasted the wrong link. 6.14 is the one I tried. I'll try 7.0 when I get home tonight.

Blinkin
Posts: 8
Joined: 07 Jul 2014, 03:41

Re: Mac Book Partition Map Receovery || Illegal Instruction

#7 Post by Blinkin »

Nope, 7.0 also gives the same error for me.

BTW, photorec also gives the same error (in both versions).

FYI, when I'm in recovery mode on the macbook pro, I see in a log file that this is 10.8.3 (Mountain Lion). So, even though Mavericks was last installed, it was originally shipped with ML.

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Mac Book Partition Map Receovery || Illegal Instruction

#8 Post by Fiona »

I'll report your problem today.

Fiona

Blinkin
Posts: 8
Joined: 07 Jul 2014, 03:41

Re: Mac Book Partition Map Receovery || Illegal Instruction

#9 Post by Blinkin »

A side question - I read a comment somewhere that SSD's behave differently from a standard disk drive when a partition is deleted. As in, being able to recover it with data recovery tools will be more difficult, if not impossible. Can anyone comment?

Just trying to judge how much it is worth it to try to restore this laptop.

rarick123
Posts: 1
Joined: 10 Jul 2014, 21:42

Re: Mac Book Partition Map Receovery || Illegal Instruction

#10 Post by rarick123 »

Count me as another user getting Illegal Instruction: 4. Same results running testdisk with no flags or with something like /list. Any word from Christophe?

Locked