OSX Lion not booting after shutdown during bootcamp process

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
Locked
Message
Author
datamstr
Posts: 4
Joined: 14 Sep 2013, 11:19

OSX Lion not booting after shutdown during bootcamp process

#1 Post by datamstr »

Hello, I started a Bootcamp installation on my OSX Lion Mac Pro. Once I realized that I could only use Windows 7, I had to hold off on the installation until I located my Windows 7 disk. I had set the Bootcamp partition size to 100 GB on a 500 GB Drive. I left the computer in that state for a week or so. Due to threatning weather, I shutdown the computer and after that, OSX Lion no longer boots.
I talked to Apple Support and so far it is still not working. I was able to boot using the recovery partition "Disk Utility -> First Aid -> Repair Disk". When I ran Repair Disk there were some errors reported and repaired, then OSX still not booting.
After some research, I came across TestDisk. I attempted to repair the system, but after a few repair attempts the drive has now become read only and I can't figure out how to reverse that.

Code: Select all

Partition table type (auto): EFI GPT
Media is opened in read-only.
Disk /dev/rdisk2 - 500 GB / 465 GiB (RO)
Partition table type: EFI GPT

Analyse Disk /dev/rdisk2 - 500 GB / 465 GiB - 976773168 sectors (RO)
hdr_size=92
hdr_lba_self=976773167
hdr_lba_alt=1 (expected 1)
hdr_lba_start=34
hdr_lba_end=976773134
hdr_lba_table=976773135
hdr_entries=128
hdr_entsz=128
Bad GPT partition, invalid signature.
Trying alternate GPT
 1 P EFI System                    40     409639     409600 [EFI System Partition]
 2 P Mac HFS                   409640  975503591  975093952 [Untitled]
 3 P Mac Boot               975503592  976773127    1269536 [Recovery HD]
Current partition structure:
Bad GPT partition, invalid signature.
Trying alternate GPT
 1 P EFI System                    40     409639     409600 [EFI System Partition]
 2 P Mac HFS                   409640  975503591  975093952 [Untitled]
 3 P Mac Boot               975503592  976773127    1269536 [Recovery HD]

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: OSX Lion not booting after shutdown during bootcamp proc

#2 Post by cgrenier »

The disk is probably in read-only mode because a partition is mounted.
Start a Terminal and run the command "mount". Try to identify any partition from /dev/disk2 that is listed and run "sudo umount directory_name" where directory_name is the directory listed in mount output.
Once it's done, run again TestDisk. The disk shouldn't be in read-only mode anymore. After Analyse, Quick Search, select the last HFS partition, use Type to change its type to Mac Boot, on next screen, you will have

Code: Select all

 1 P EFI System                    40     409639     409600 [EFI System Partition]
 2 P Mac HFS                   409640  975503591  975093952 [Untitled]
 3 P Mac Boot               975503592  976773127    1269536 [Recovery HD]
Choose Write, confirm, Quit

datamstr
Posts: 4
Joined: 14 Sep 2013, 11:19

Re: OSX Lion not booting after shutdown during bootcamp proc

#3 Post by datamstr »

Chris, I was able to unmout directories and the disk became writable. After setting the last HFS partition to Mac Boot, the next screen shows P HFS+ along with other partition types listed. At that point I could not choose Write,confirm,Quit so I just pressed Enter again to select HFS+. Then the last partition showed P Mac Boot. I pressed Enter, then Write, Confirm, Quit. Then I rebooted and when the computer booted the screen was flickering off and on sort of randomly. I pressed he Command key and my login prompt appeared for the OSX I installed on Disk1.

I ran TestDisk again and the Disk 2 last partition was not listed as Mac Boot, it was HFS.

I will try again.

Next step?

Thanks,
David

datamstr
Posts: 4
Joined: 14 Sep 2013, 11:19

Re: OSX Lion not booting after shutdown during bootcamp proc

#4 Post by datamstr »

Also, forgot to mention that Disk Utility shows the Disk 2 partition type as GPT now and the Recovery HD partition is not listed anymore.

I will email the testdisk.log to you.

Thanks,
David

datamstr
Posts: 4
Joined: 14 Sep 2013, 11:19

Re: OSX Lion not booting after shutdown during bootcamp proc

#5 Post by datamstr »

When I power up the computer while holding the Option key, I select the "untitled" volume. The Apple logo appears the the spinning wheel runs for a few minutes. Then the circle with the line through it appears.

Thanks,
David

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: OSX Lion not booting after shutdown during bootcamp proc

#6 Post by cgrenier »

Still waiting for the new testdisk.log file...

Locked