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
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.
- Sudo gdisk /dev/disk0
- P (Print list of parts)
- R (Recover)
- O (print current Hybrid MBR)
- H (chooses Hybrid)
- Partitions numbers to be hybridized: 2 3 4
- Y (Good for GRUB question)
- N (part 2 boot flag)
- N (part 3 boot flag)
- Y (part 4 boot flag make NTFS bootable partition)
- O (print current Hybrid MBR)
- W (Write the new MBR)
- Y (Yes! write the new MBR)
- 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
Posted on Aug 4, 2015 3:58 PM