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

BootCamp Broke after resizing partition windows and upgrade yosemite

Hi, since i upgrade yosemite and i resize my bootcamp partition i can't run my windows Bootcamp

I have an iMac 2013 and i upgrade with yosemite.

I resize the partition windows 7 with a free utility in windows.

It runs good in windows after the resizing.

But after the resizing i not see the bootcamp partition in mac os x.

And after i upgrade my bootcamp and i not see the windows at boot.


I see your posts about this problem but now when i launch windows i have the message : no operating system


Here is the information you need to help me :


In terminal :

pc21:~ gregoire$ sudo fdisk /dev/disk0

Password:

Disk: /dev/disk0 geometry: 121601/255/63 [1953525168 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 - 1564640992] HFS+

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

*4: 07 1023 254 63 - 1023 254 63 [1566320168 - 387203545] HPFS/QNX/AUX

pc21:~ gregoire$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 801.1 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 198.2 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk1

1: EFI EFI 209.7 MB disk1s1

2: Apple_HFS My Passport 999.8 GB disk1s2

pc21:~ gregoire$

pc21:~ gregoire$ sudo gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

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 1953525167

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

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

1566320168 387203545 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1953523713 1422

1953525135 32 Sec GPT table

1953525167 1 Sec GPT header

pc21:~ gregoire$ diskutil cs list

No CoreStorage logical volume groups found


Can you help me Please ?

iMac, OS X Yosemite (10.10.3)

Posted on May 6, 2015 1:36 PM

Reply
Question marked as Best reply

Posted on May 8, 2015 1:34 AM

Can you post the output of


sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C

16 replies

May 7, 2015 9:19 AM in response to Loner T

Hello Loner, I to have this problem. If you can help me in anyway, I won't know how to thank you.


If it helps, I've posted the outputs of the commands shown above, as well as the one you suggested.


Adams-MacBook-Pro:~ Adam$ sudo fdisk /dev/disk0

Password:

Disk: /dev/disk0 geometry: 30515/255/63 [490234752 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: 03 25 127 15 - 1023 254 63 [ 409640 - 255104784] XENIX /usr

*3: 03 1023 254 63 - 1023 254 63 [ 255514424 - 1269536] XENIX /usr

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

Adams-MacBook-Pro:~ Adam$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *251.0 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_HFS Macintosh HD 130.6 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data 70.0 GB disk0s4

Adams-MacBook-Pro:~ Adam$ sudo gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=251000193024; sectorsize=512; blocks=490234752

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 490234751

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

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

256783960 96733608

353517568 136716288 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

490233856 863

490234719 32 Sec GPT table

490234751 1 Sec GPT header

Adams-MacBook-Pro:~ Adam$

Output of the command you suggested:

Adams-MacBook-Pro:~ Adam$ sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C

00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

*

00000200


Thanks in advance.

May 8, 2015 2:14 PM in response to Loner T

Hello, there is a progression, with test disk 7.0 i see in a list of microsoft data the contents of my windows partition.


But i have several microsoft data partition and i think i have not the good.


But if i change the partition table with Testdisk7.0 i can't write because i am not in write condition.


When i launch Testdisk7.0 i have this message :


TestDisk 7.0, Data Recovery Utility, April 2015

Christophe GRENIER <grenier@cgsecurity.org>

http://www.cgsecurity.org


Disk /dev/disk0 - 1000 GB / 931 GiB (RO)


Write access for this media is not available.

TestDisk won't be able to modify it.


- No partition from this disk must be mounted:

Open the Disk Utility (In Finder -> Application -> Utility folder)

and press Unmount button for each volume from this disk

- This media may be physically write-protected, check the jumpers.






>[ Continue ] Continue even if write access isn't available

[ Quit ] Return to disk selection



And i can just use Continue because i can not unmount disk because i use this disk to run mac os x.


What can i do to write information with testdisk7.0 ?


Thank you in advance.

May 10, 2015 2:06 PM in response to Loner T

Hello, I see what you said.

OK.

When i run testdisk i have this informations :


I have problems with my datas of my screen because i have the error message in the editor of this forum (The message contains invalid characters).


I put the screens of Testdisk and dis here : http://gregoire.ammon.free/TestdiskFdisk.rtf

You can see that i see my datas in screen 5.



The datas for partition 4 (fdisk) are not the same that i see in the partition where i see my datas (screen 5).


What should i do to change the datas with gdisk to change my partition table to boot from my partition where i see my datas ?


Thank you in advance.


Gregoire.

May 11, 2015 4:48 AM in response to GregoireFromLRSY

Here is table based on your attachment file.


GPT 3 StartGPT 3 SizeGPT 3 EndNTFS StartSector OffsetNTFS SizeNTFS EndSector Offset (MB)
15650506321269536156632016815663206404723872030651953523704 0


Leave your Testdisk display and start a new Terminal Window. You need to use the following steps. You will need to install GPT Fdisk (aka Gdisk).


If you see any error messages during the following steps, please stop and post back here with the error message. The following steps have values from your Testdisk output (and you can verify) in Steps 7 and 8. Notice the '+' in step 8.


Rebuild GPT4 using start/end offsets


  1. Sudo gdisk /dev/rdisk0
  2. P (print the full list of parts)
  3. D (delete)
  4. 4 (part 4)
  5. N (new part)
  6. 4 (part 4)
  7. 1566320640 - Start offset in bytes (start point for Bootcamp part)
  8. +387203065 - Size offset (as opposed to End offset)
  9. 0700 (Windows part type)
  10. P (print list of all parts just to see what changes will be made)
  11. W (Write the new GPT)
  12. Y (Yes! really write the new GPT)

This will delete and re-write the GPT partition info for /dev/disk0s4.

Rebuild MBR to match the new GPT information thus resetting the Hybrid MBR. 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.

  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


Test 1 - Does Bootcamp Volume show up in Finder?

Test 2 - Can you see files in Bootcamp Volume?

Test 3 - Can you select Bootcamp in System Preferences -> Startup Disk?

Test 4 - If Test 3 is successful, select Bootcamp and Click Restart.

May 11, 2015 12:31 PM in response to Loner T

Thank you Loner T.

I make those manipulation and now i see the bootcamp partition on my Finder.

I see the datas.

OK.

But now the problem is my Windows.

When i launch it, i have the message of repair it.


And i think i can't have a keyboard to press enter because i have a keyboard Bluetooth on an iMac with a mouse bluetooth to.

Windows needs the CD of Windows ?

Is there a solution without keyboard USB ?

Thank you in advance.

May 11, 2015 1:07 PM in response to GregoireFromLRSY

If you are failing in Test 4, you have two options.


1. Use Bootcamp Assistant and choose the first two options Create USB Installer... and Download Software... . Please ensure you do not click onRemove Windows option. Once you have the USB created, you can

a. Insert the USB

b. Select Bootcamp in System Preferences -> Startup Disk . Do not select your USB, select your primary Windows installation.

c. Click on Restart.

d. You should see screens as shown here - http://imgur.com/a/1DaOE#0

e. Click on Repair at bottom left of the Windows after you select Language, Region, etc.

2. Use Windows Startup Repair from your original DVD (or burn the ISO to a DVD) and Repair.

May 20, 2015 2:42 AM in response to Loner T

Hi, it's OK.

When i see your video in your links i see that i can repair Windows.

But i had not this choice when i put the DVD or the usb Key.


I resolve the problem by reinstall Windows.


And i install Windows 8.1.

I put the DVD and i boot on and i install Windows 8.1.

On the other side i had an other problem when i install Windows 8.1, i had no keyboard USB.

Next day, i put a keyboard that i take from my work and it runs !

I can now boot on my windows 8.1.

I see the partition Bootcamp in Mac OS X Yosemite.

Good.

Thanks a lot !

It was long but it was the good way !

BootCamp Broke after resizing partition windows and upgrade yosemite

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