Page 1 of 1

OSX Lion not booting after shutdown during bootcamp process

Posted: 14 Sep 2013, 11:53
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]

Re: OSX Lion not booting after shutdown during bootcamp proc

Posted: 17 Sep 2013, 07:31
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

Re: OSX Lion not booting after shutdown during bootcamp proc

Posted: 18 Sep 2013, 00:21
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

Re: OSX Lion not booting after shutdown during bootcamp proc

Posted: 18 Sep 2013, 00:57
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

Re: OSX Lion not booting after shutdown during bootcamp proc

Posted: 18 Sep 2013, 01:03
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

Re: OSX Lion not booting after shutdown during bootcamp proc

Posted: 01 Oct 2013, 09:24
by cgrenier
Still waiting for the new testdisk.log file...