theig

Q: Windows partition lost after Yosemite Upgrade

Hi, Me too. I hope LonerT or someone else  can help.

 

System

iMac , mid 2010

Processor 3.06 i3

RAM 4 Gb

Boot ROM IM112.0057.B01

SMC 1.64f5

Model Name: iMac

  SMC Version (system): 1.64f5

Here is the output from distil, gpt and disk

 

Many thanks

 

administrator$ 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            249.0 GB   disk0s2

   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3

   4:       Microsoft Basic Data Win7                    250.2 GB   disk0s4

 

 

BettyIggosiMac:~ administrator$ diskutil cs list

No CoreStorage logical volume groups found

BettyIggosiMac:~ administrator$ sudo gpt =vv =r show /dev/disk0

 

WARNING: Improper use of the sudo command could lead to data loss

or the deletion of important system files. Please double-check your

typing when using sudo. Type "man sudo" for more information.

 

To proceed, enter your password, or type Ctrl-C to abort.

 

Password:

 

BettyIggosiMac:~ administrator$ sudo gpt -vv -r show /dev/disk0

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

gpt show: /dev/disk0: Suspicious MBR at sector 0

gpt show: /dev/disk0: Pri GPT at sector 1

gpt show: /dev/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  486328128      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC

  486737768    1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

  488007304        376        

  488007680  488765440      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

  976773120         15        

  976773135         32         Sec GPT table

  976773167          1         Sec GPT header

BettyIggosiMac:~ administrator$ 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 1023 254  63 - 1023 254  63 [         1 -     409639] <Unknown ID>

2: AF 1023 254  63 - 1023 254  63 [    409640 -  486328128] HFS+       

3: AB 1023 254  63 - 1023 254  63 [ 486737768 -    1269536] Darwin Boot

4: 0C 1023 254  63 - 1023 254  63 [ 488007680 -  488765440] Win95 FAT32L

iMac, OS X Yosemite (10.10.4)

Posted on Aug 4, 2015 12:28 AM

Close

Q: Windows partition lost after Yosemite Upgrade

  • All replies
  • Helpful answers

  • by theig,

    theig theig Aug 4, 2015 1:36 AM in response to theig
    Level 1 (0 points)
    Aug 4, 2015 1:36 AM in response to theig

    Some more information, if it helps.

     

    I thought my Win7 partition was NTFS, not FAT23L as diskutil is now reporting

    The Win7 partition is visible in Finder and the data is accessible and can be used and has been copied to a network drive

    The Win7 partition is visible in Finder|Startup Disk and can be selected as the boot disk

    Attempting to reboot from the Win7 partition eventually brings up the no bootable partition, insert a bootable disk message

  • by Eric Root,

    Eric Root Eric Root Aug 4, 2015 12:28 PM in response to theig
    Level 9 (72,258 points)
    iTunes
    Aug 4, 2015 12:28 PM in response to theig

    Try using Boot Camp Assistant to remove the partition and then set it back up and reload Windows.

  • by theig,Solvedanswer

    theig theig Aug 4, 2015 3:58 PM in response to Eric Root
    Level 1 (0 points)
    Aug 4, 2015 3:58 PM in response to Eric Root

    LonerT's post in this thread

    Bootcamp, windows 7 not booting

     

    solved my problem without resorting to Eric's Armageddon solution


    Use defaults for other questions (like partition codes). The only values that need modifications are the Boot flags and step 10. Accept all other defaults that Gdisk offers. Please see the sample Q&A after the steps. The commands are single character commands (and the text in parentheses is an explanation and/or guide on the command). In step 6 you need to type the list of numbers separated by a space.


    1. Sudo gdisk /dev/disk0
    2. P  (Print list of parts)
    3. R  (Recover)
    4. O (print current Hybrid MBR)
    5. H (chooses Hybrid)
    6. Partitions numbers to be hybridized: 2 3 4
    7. Y  (Good for GRUB question)
    8. N  (part 2 boot flag)
    9. N  (part 3 boot flag)
    10. Y  (part 4 boot flag make NTFS bootable partition)
    11. O  (print current Hybrid MBR)
    12. W (Write the new MBR)
    13. Y (Yes! write the new MBR)
    14. Reboot

     

    Here is sample Q&A for this section. Please notice the Press Enter/Return.

     

    Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): Y

     

    Creating entry for GPT partition #2 (MBR partition #2)

    Enter an MBR hex code (default AF): Press Enter/Return

    Set the bootable flag? (Y/N): N

     

    Creating entry for GPT partition #3 (MBR partition #3)

    Enter an MBR hex code (default AB): Press Enter/Return

    Set the bootable flag? (Y/N): N

     

    Creating entry for GPT partition #4 (MBR partition #4)

    Enter an MBR hex code (default 07): Press Enter/Return

    Set the bootable flag? (Y/N): Y

  • by Loner T,Helpful

    Loner T Loner T Aug 4, 2015 7:33 PM in response to theig
    Level 7 (24,202 points)
    Safari
    Aug 4, 2015 7:33 PM in response to theig

    Your MBR was corrupted, which the Gdisk steps rebuilt. Excellent work, nice to see it working.