Lost Bootcamp partition after upgrade to El capitan from an old 10.8.5 OS

Hi,

i saw a lot of topics about this but don't want to make a mistake in the procedure so i'm asking the help of an expert.

Here the result of the usual commands :

Roses-MacBook-Air:testdisk-7.2-WIP rosemagers$ diskutil list


/dev/disk0 (internal, physical):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      GUID_partition_scheme                        *480.1 GB   disk0


   1:                        EFI EFI                     209.7 MB   disk0s1


   2:                  Apple_HFS Macintosh HD            60.0 GB    disk0s2


   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3


   4:       Microsoft Basic Data BOOTCAMP                60.5 GB    disk0s4


Roses-MacBook-Air:testdisk-7.2-WIP rosemagers$ diskutil cs list


No CoreStorage logical volume groups found


Roses-MacBook-Air:testdisk-7.2-WIP rosemagers$ sudo gpt -v -r show /dev/disk0


gpt show: /dev/disk0: mediasize=480103981056; sectorsize=512; blocks=937703088


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


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


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


  118866680       1288         


  118867968  118108160      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7


  236976128  700726927         


  937703055         32         Sec GPT table


  937703087          1         Sec GPT header


Roses-MacBook-Air:testdisk-7.2-WIP rosemagers$ sudo fdisk /dev/disk0


Disk: /dev/disk0 geometry: 58369/255/63 [937703088 sectors]


Signature: 0xAA55


         Starting       Ending


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


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


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


*2: 07 1023 254  63 - 1023 254  63 [ 118867968 -  118108160] 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      


I've also installed TestDisk and here are the results :


The macbook is an Air 11-inch Mid 2012.


Could someone plese help me to recover my bootcamp partition ?


Thanks

Mattia


Posted on Feb 25, 2020 9:24 AM

Reply

Similar questions

37 replies

Mar 2, 2020 1:32 AM in response to mattia182

Hi here is the output for gpt command :


gpt show: /dev/disk0: mediasize=480103981056; sectorsize=512; blocks=937703088


gpt show: /dev/disk0: PMBR at sector 0


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


gpt show: /dev/disk0: Sec GPT at sector 937703087


      start       size  index  contents


          0          1         PMBR


          1          1         Pri GPT header


          2         32         Pri GPT table


         34          6         


         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B


     409640  117187504      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC


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


  118866680       1288         


  118867968  818829312      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7


  937697280       5775         


  937703055         32         Sec GPT table


  937703087          1         Sec GPT header


And here is the session :



What should i do now ?


Thanks

Mattia



Mar 2, 2020 9:00 AM in response to mattia182

I've done that but now i've this error :

GPT fdisk (gdisk) version 1.0.5




Warning: Devices opened with shared lock will not have their


partition table automatically reloaded!


Partition table scan:


  MBR: protective


  BSD: not present


  APM: not present


  GPT: present




Found valid GPT with protective MBR; using GPT.




Command (? for help): p


Disk /dev/rdisk0: 937703088 sectors, 447.1 GiB


Sector size (logical): 512 bytes


Disk identifier (GUID): 00000EA0-0DA8-0000-EB4E-000082640000


Partition table holds up to 128 entries


Main partition table begins at sector 2 and ends at sector 33


First usable sector is 34, last usable sector is 937703054


Partitions will be aligned on 8-sector boundaries


Total free space is 818836381 sectors (390.5 GiB)




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


   1              40          409639   200.0 MiB   EF00  EFI system partition


   2          409640       117597143   55.9 GiB    AF00  Customer


   3       117597144       118866679   619.9 MiB   AB00  Recovery HD




Command (? for help): r




Recovery/transformation command (? for help): o




Disk size is 937703088 sectors (447.1 GiB)


MBR disk identifier: 0x00000000


MBR partitions:




Number  Boot  Start Sector   End Sector   Status      Code


   1                     1    937703087   primary     0xEE




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


I can still see my bootcamp partition in Finder.

Here is another output from sudo got -vv :

gpt show: /dev/disk0: mediasize=480103981056; sectorsize=512; blocks=937703088


gpt show: /dev/disk0: PMBR at sector 0


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


gpt show: /dev/disk0: Sec GPT at sector 937703087


      start       size  index  contents


          0          1         PMBR


          1          1         Pri GPT header


          2         32         Pri GPT table


         34          6         


         40     409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B


     409640  117187504      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC


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


  118866680  818836375         


  937703055         32         Sec GPT table


  937703087          1         Sec GPT header

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.

Lost Bootcamp partition after upgrade to El capitan from an old 10.8.5 OS

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