bootcamp partition renamed untitled after booting in MacOS

Can anybody please help me ?


I had succesfully installed Windows 10 on my Macbook Pro and ran Windows already several weeks smoothly.

Unfortunately I did not make a backup of my windows files yet.


Today when I booted to El Capitan to connect my iPad to iTunes Windows gave me a message that it needed repair when I tried to reboot to the bootcamp Windows version.

It did not succeed in repairing and only gave my an advanced options menu.

I booted back into MacOS to find that the windows partition was renamed to 'Untitled' and that no files were visible in Finder.


I than ran Disk Utility and selected First Aid on this partition, I thought this was read only to check for disk errors.

Now when booting from Windows it says no operation system available and Disk Utility shows 496 GB empty space on this partition !


I hope not all my files are lost !!

What can I do to repair the bootcamp partition ? I tried to install setup bootcamp files on USB but cannot boot from USB (does not show the USB drive)


thank you !


Olivier

MacBook Pro, OS X El Capitan (10.11.3), Bootcamp Windows 10

Posted on Apr 5, 2016 11:34 AM

Reply
297 replies

Apr 23, 2016 12:39 PM in response to Loner T

sudo gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

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 1465149167

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

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

539877984 1440

539879424 385386497 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

925265921 539883214

1465149135 32 Sec GPT table

1465149167 1 Sec GPT header



sudo gpt -vv -r show /dev/disk0


Disk: /dev/disk0 geometry: 91201/255/63 [1465149168 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 - 538198808] HFS+

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

*4: 07 1023 254 63 - 1023 254 63 [ 539879424 - 385386497] HPFS/QNX/AUX

Apr 23, 2016 10:58 PM in response to Loner T

oops, yes indeed i forgot the plus sign....


now entered the first part correctly but I get this error on the second part:


Disk /dev/rdisk0: 1465149168 sectors, 698.6 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): BE924D70-1CD5-4EDB-9B44-947B2100D347

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 1465149134

Partitions will be aligned on 8-sector boundaries

Total free space is 5237 sectors (2.6 MiB)


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

1 40 409639 200.0 MiB EF00 EFI System

2 409640 538608447 256.6 GiB AF00 Apple HFS/HFS+

3 538608448 539877983 619.9 MiB AB00 Recovery HD

6 539879424 1465145343 441.2 GiB 0700 Microsoft basic data


Command (? for help): R


Recovery/transformation command (? for help): O


Disk size is 1465149168 sectors (698.6 GiB)

MBR disk identifier: 0x4DD05DE5

MBR partitions:


Number Boot Start Sector End Sector Status Code

1 1 409639 primary 0xEE

2 409640 538608447 primary 0xAF

3 538608448 539877983 primary 0xAB


Recovery/transformation command (? for help): H


WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

just hit the Enter key at the below prompt and your MBR partition table will

be untouched.


Type from one to three GPT partition numbers, separated by spaces, to be

added to the hybrid MBR, in sequence: 2 3 4

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

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


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

Enter an MBR hex code (default AB):

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


GPT partition #4 does not exist or is too big; skipping.


Unused partition space(s) found. Use one to protect more partitions? (Y/N):

Apr 23, 2016 10:59 PM in response to ozeegers

this is the output of the first part:


GPT fdisk (gdisk) version 1.0.1


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/rdisk0: 1465149168 sectors, 698.6 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): BE924D70-1CD5-4EDB-9B44-947B2100D347

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 1465149134

Partitions will be aligned on 8-sector boundaries

Total free space is 539884660 sectors (257.4 GiB)


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

1 40 409639 200.0 MiB EF00 EFI System

2 409640 538608447 256.6 GiB AF00 Apple HFS/HFS+

3 538608448 539877983 619.9 MiB AB00 Recovery HD

4 539879424 925265920 183.8 GiB 0700 Microsoft basic data


Command (? for help): D

Partition number (1-4): 4


Command (? for help): N

Partition number (4-128, default 4): 6

First sector (34-1465149134, default = 539877984) or {+-}size{KMGTP}: 539879424

Last sector (539879424-1465149134, default = 1465149134) or {+-}size{KMGTP}: +925265920

Current type is 'Apple HFS/HFS+'

Hex code or GUID (L to show codes, Enter = AF00): 0700

Changed type of partition to 'Microsoft basic data'


Command (? for help): P

Disk /dev/rdisk0: 1465149168 sectors, 698.6 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): BE924D70-1CD5-4EDB-9B44-947B2100D347

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 1465149134

Partitions will be aligned on 8-sector boundaries

Total free space is 5237 sectors (2.6 MiB)


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

1 40 409639 200.0 MiB EF00 EFI System

2 409640 538608447 256.6 GiB AF00 Apple HFS/HFS+

3 538608448 539877983 619.9 MiB AB00 Recovery HD

6 539879424 1465145343 441.2 GiB 0700 Microsoft basic data


Command (? for help): W


Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

PARTITIONS!!


Do you want to proceed? (Y/N): Y

OK; writing new GUID partition table (GPT) to /dev/rdisk0.

Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Warning: The kernel may continue to use old or deleted partitions.

You should reboot or remove the drive.

The operation has completed successfully.

Apr 24, 2016 7:47 AM in response to Loner T

sudo gpt -vv -r show /dev/disk0

gpt show: /dev/disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

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 1465149167

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

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

539877984 1440

539879424 925265920 6 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1465145344 3791

1465149135 32 Sec GPT table

1465149167 1 Sec GPT header

Apr 24, 2016 8:03 AM in response to ozeegers

You typed

Command (? for help): N

Partition number (4-128, default 4): 6

First sector (34-1465149134, default = 539877984) or {+-}size{KMGTP}: 539879424

Last sector (539879424-1465149134, default = 1465149134) or {+-}size{KMGTP}: +925265920


which became

539879424 925265920 6 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

so when you type 2 3 4, there is no GPT 4, which is why it is failing. Can you repeat the first and second set of steps?

Apr 24, 2016 12:02 PM in response to ozeegers

This time I entered everything correctly but the partition does not show up in Finder.

When I reboot it does give me the option to boot the windows partition but it says missing operating system..


this is the output of got -vv -r show /dev/disk0




Oliviers-MBP:~ ozeegers$ sudo gpt -vv -r show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=750156374016; sectorsize=512; blocks=1465149168

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 1465149167

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

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

539877984 1440

539879424 925265920 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

1465145344 3791

1465149135 32 Sec GPT table

1465149167 1 Sec GPT header

Apr 24, 2016 12:39 PM in response to Loner T

sudo fdisk /dev/disk0

Password:

Disk: /dev/disk0 geometry: 91201/255/63 [1465149168 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 - 538198808] HFS+

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

*4: 07 1023 254 63 - 1023 254 63 [ 539879424 - 925265920] HPFS/QNX/AUX



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

00000000 00 00 00 40 00 00 00 20 00 00 00 00 00 00 00 00 |...@... ........|

00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 |............... |

00000020 00 00 00 00 00 00 00 00 00 00 00 30 00 00 00 00 |...........0....|

00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

00000040 00 00 00 00 00 00 00 00 00 00 00 e0 00 00 00 60 |...............`|

00000050 00 00 00 00 00 00 00 80 00 00 00 70 00 00 00 00 |...........p....|

00000060 00 00 00 60 00 00 00 10 00 00 00 80 00 00 00 40 |...`...........@|

00000070 00 00 00 70 00 00 00 b0 00 00 00 10 00 00 00 f0 |...p............|

00000080 00 00 00 00 00 00 00 00 00 00 00 d0 00 00 00 e0 |................|

00000090 00 00 00 00 00 00 00 10 00 00 00 f0 00 00 00 10 |................|

000000a0 00 00 00 10 00 00 00 70 00 00 00 00 00 00 00 a0 |.......p........|

000000b0 00 00 00 20 00 00 00 10 00 00 00 b0 00 00 00 c0 |... ............|

000000c0 00 00 00 10 00 00 00 00 00 00 00 f0 00 00 00 e0 |................|

000000d0 00 00 00 c0 00 00 00 00 00 00 00 60 00 00 00 20 |...........`... |

000000e0 00 00 00 50 00 00 00 70 00 00 00 00 00 00 00 10 |...P...p........|

000000f0 00 00 00 10 00 00 00 10 00 00 00 60 00 00 00 60 |...........`...`|

00000100 00 00 00 10 00 00 00 60 00 00 00 c0 00 00 00 b0 |.......`........|

00000110 00 00 00 f0 00 00 00 a0 00 00 00 90 00 00 00 10 |................|

00000120 00 00 00 10 00 00 00 00 00 00 00 60 00 00 00 00 |...........`....|

00000130 00 00 00 00 00 00 00 00 00 00 00 b0 00 00 00 00 |................|

00000140 00 00 00 80 00 00 00 60 00 00 00 60 00 00 00 10 |.......`...`....|

00000150 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 f0 |................|

00000160 00 00 00 70 00 00 00 60 00 00 00 f0 00 00 00 00 |...p...`........|

00000170 00 00 00 e0 00 00 00 e0 00 00 00 a0 00 00 00 00 |................|

00000180 00 00 00 00 00 00 00 e0 00 00 00 00 00 00 00 60 |...............`|

00000190 00 00 00 70 00 00 00 20 00 00 00 60 00 00 00 60 |...p... ...`...`|

000001a0 00 00 00 70 00 00 00 00 00 00 00 40 00 00 00 50 |...p.......@...P|

000001b0 00 00 00 20 00 00 00 70 00 00 00 70 00 00 00 00 |... ...p...p....|

000001c0 00 00 00 60 00 00 00 40 00 00 00 20 00 00 00 20 |...`...@... ... |

000001d0 00 00 00 20 00 00 00 70 00 00 00 60 00 00 00 00 |... ...p...`....|

000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a0 |................|

00000200

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

bootcamp partition renamed untitled after booting in MacOS

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