You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Windows 7 not bootable after upgrade

Hello All,


I have just upgraded to Maverick OS X 10.9 (13A603). Now as many of the others I am unable to boot into my Windows 7.
The partition is NOT LOST. I can still see the partions and the files in the Windows HD just cannot boot with it.


I guess it can be easily fixed using gdisk for experts.

Anyhelp in this matter is greatly appreciated.


My outputs are:


$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *121.3 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 35.3 GB disk0s2

3: Microsoft Basic Data Data HD 34.7 GB disk0s3

4: Microsoft Basic Data Windows7 HD 50.5 GB disk0s4

5: Apple_Boot Recovery HD 650.0 MB disk0s5


=========


$ sudo gpt -r -vv show disk0

gpt show: disk0: mediasize=121332826112; sectorsize=512; blocks=236978176

gpt show: disk0: Suspicious MBR at sector 0

gpt show: disk0: Pri GPT at sector 1

gpt show: disk0: Sec GPT at sector 236978175

start size index contents

0 1 MBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

409640 68904168 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

69313808 1269544 5 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

70583352 968

70584320 67815424 3 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

138399744 98576384 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

236976128 2015

236978143 32 Sec GPT table

236978175 1 Sec GPT header


=========


$ sudo fdisk /dev/disk0

Password:

Disk: /dev/disk0 geometry: 14751/255/63 [236978176 sectors]

Signature: 0xAA55

Starting Ending

#: id cyl hd sec - cyl hd sec [ start - size]

------------------------------------------------------------------------

1: EE 0 0 2 - 25 127 14 [ 1 - 409639] <Unknown ID>

2: AF 25 127 15 - 1023 254 63 [ 409640 - 68904168] HFS+

3: 07 1023 254 63 - 1023 254 63 [ 70584320 - 67815424] HPFS/QNX/AUX

4: 07 1023 254 63 - 1023 254 63 [ 138399744 - 98576384] HPFS/QNX/AUX


=========


$ sudo gdisk /dev/disk0

Password:

GPT fdisk (gdisk) version 0.8.8



Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present



Found valid GPT with hybrid MBR; using GPT.


Command (? for help): p

Disk /dev/disk0: 236978176 sectors, 113.0 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): C1909920-CFA1-44C9-A845-1ABF1B7F5E65

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 236978142

Partitions will be aligned on 8-sector boundaries

Total free space is 2989 sectors (1.5 MiB)



Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI

2 409640 69313807 32.9 GiB AF00 Macintosh HD

3 70584320 138399743 32.3 GiB 0700 Data HD

4 138399744 236976127 47.0 GiB 0700 Windows7 HD

5 69313808 70583351 619.9 MiB AB00 Recovery HD



=========


I do not know what to do here.


Please help.


Thanks alot

MacBook Air (13-INCH, MID 2011), Mac OS X (10.7.4)

Posted on Dec 7, 2013 12:35 AM

Reply
18 replies

Jun 10, 2014 8:33 AM in response to Myskin

I solved a similar problem here


https://discussions.apple.com/thread/5535574?start=15&tstart=0


I used fdisk to edit all four partitions to match GPTs 1, 2, 3 and 4 partition, using the partition data. Then made the 4th partition bootable with flag 4.


In my case, the corrected version was


#: id cyl hd sec - cyl hd sec [ start - size]

------------------------------------------------------------------------

1: EE 0 0 2 - 1023 254 63[1 - 409600]<Unknown ID>
2: AF 1023 254 63 - 1023 254 63 [409640 - 1561905912] HFS+
3: AB 1023 254 63 - 1023 254 63 [1562315552 -1269536]

Darwin Boot

*4: 07 1023 254 63 - 1023 254 63 [1563586560 - 390623232] HPFS/QNX/AUX


I'M GUESSING HERE:


Your 1st should be similar.

Your second AF should start at 409640 and be 485320880

Your third AB should start at 485730520 and be 1269544

Your fourth 07 should start 487000064 and be 489773056

The fourth should be flagged *


It worked for me, I hope it works for you!

Before making changes, print down you current configuration and make an USB recovery disk. If it doesn't work, you can use the Terminal from the USB to edit back everything to its current state with fdisk.


Good luck!

Windows 7 not bootable after upgrade

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.