write.to.salman

Q: 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

Close

Q: Windows 7 not bootable after upgrade

  • All replies
  • Helpful answers

Previous Page 2
  • by Myskin,

    Myskin Myskin Feb 11, 2014 7:32 AM in response to Number88
    Level 1 (0 points)
    Feb 11, 2014 7:32 AM in response to Number88

    Hi all,

     

    as write.to.salman I also upgraded to maverikcs and not able anymore to boot on windows 7.

    I tried to follow step by step your suggestion, anyway whenever I try to boot into windows it says " operating system not available".

     

    What I did is:

    i)

    Na-If-Mac-Mini:~ naif$ diskutil list

    /dev/disk0

       #:                       TYPE NAME                    SIZE       IDENTIFIER

       0:      GUID_partition_scheme                        *500.1 GB   disk0

       1:                        EFI EFI                     209.7 MB   disk0s1

       2:                  Apple_HFS Macintosh HD            248.5 GB   disk0s2

       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

       4:       Microsoft Basic Data                         250.8 GB   disk0s4

    ii)

    Na-If-Mac-Mini:~ naif$ sudo gpt -r -vv show disk0

    Password:

    gpt show: disk0: mediasize=500107862016; sectorsize=512; blocks=976773168

    gpt show: disk0: Suspicious MBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: disk0: Sec GPT at sector 976773167

          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  485320880      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      485730520    1269544      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

      487000064  489773056      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      976773120         15        

      976773135         32         Sec GPT table

      976773167          1         Sec GPT header

    Na-If-Mac-Mini:~ naif$ sudo fdisk /dev/disk0

    Disk: /dev/disk0          geometry: 60801/255/63 [976773168 sectors]

    Signature: 0xAA55

             Starting       Ending

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

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

    1: EE    0   0   2 - 1023 254  63 [         1 -  487000063] <Unknown ID>

    *2: 07 1023 254  63 - 1023 254  63 [ 487000064 -  489773056] HPFS/QNX/AUX

    3: 00    0   0   0 -    0   0   0 [         0 -          0] unused     

    4: 00    0   0   0 -    0   0   0 [         0 -          0] unused     

    Na-If-Mac-Mini:~ naif$

     

     

     

     

     

     

     

    Na-If-Mac-Mini:~ naif$ sudo gpt -r -vv show disk0

    Password:

    gpt show: disk0: mediasize=500107862016; sectorsize=512; blocks=976773168

    gpt show: disk0: Suspicious MBR at sector 0

    gpt show: disk0: Pri GPT at sector 1

    gpt show: disk0: Sec GPT at sector 976773167

          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  485320880      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

      485730520    1269544      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

      487000064  489773056      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

      976773120         15        

      976773135         32         Sec GPT table

      976773167          1         Sec GPT header

    Na-If-Mac-Mini:~ naif$

    iv)sudo gdisk /dev/disk0 pressed r

    v) pressed h then enter

    vi) 2 3 4

    vii) pressed enter for all of them and Y in "set bootable flag just for 4"

    viii) N

    Unfortunatly as soon as I reboot and try to boot into widows 7 it says as mentioned erlier "no operating system available". Do you any clues and suggestions on how I could solve it?

    Thank you in advance, you have already been very helpful

  • by .gab,

    .gab .gab Jun 10, 2014 8:33 AM in response to Myskin
    Level 1 (0 points)
    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!

  • by MattTheMedic,

    MattTheMedic MattTheMedic Jul 28, 2014 9:58 AM in response to Christopher Murphy
    Level 1 (0 points)
    Jul 28, 2014 9:58 AM in response to Christopher Murphy

    Could someone help me making a new Hybrid MBR for bootcamp (win8.1)?

     

    My backstory and info are in this thread: Re: Bootcamp doesn't work, again.

  • by MattTheMedic,

    MattTheMedic MattTheMedic Jul 29, 2014 2:08 PM in response to MattTheMedic
    Level 1 (0 points)
    Jul 29, 2014 2:08 PM in response to MattTheMedic

    Never mind.

Previous Page 2