OSX Lion not booting after shutdown during bootcamp process

How to use TestDisk to recover lost partition
Post Reply
Message
Author
datamstr
Posts: 4
Joined: 14 Sep 2013, 11:19

OSX Lion not booting after shutdown during bootcamp process

#1 Post by datamstr » 14 Sep 2013, 11:53

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]

Sponsored links

User avatar
cgrenier
Site Admin
Posts: 3615
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 » 17 Sep 2013, 07:31

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

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

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

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: 3615
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 » 01 Oct 2013, 09:24

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

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests