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

Feb 26, 2020 6:11 AM in response to Loner T

Hi,

i'm having trouble following your instructions.

I've started the macbook using internet recovery

After that in a terminal i've run the first command to unmount the disk0 and worked correctly : Unmount of all volumes on disk0 was succesfull.

Then i've run the second command succesfully: /dev/disk0s4 removed

but i cannot execute the third command because if i try i got an error :

Resource busy

I've tried to execute again the unmount command on disk0 again succesfully and after that i tried the third command again .

This time i got a : no space available on device


What should i do now ?


Thanks

Mattia


Feb 27, 2020 1:54 AM in response to mattia182

Roses-MacBook-Air:~ 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



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 255  63 [         1 -  937703087] <Unknown ID>


 2: 00    0   0   0 -    0   0   0 [         0 -          0] unused      


 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused      


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

Feb 28, 2020 7:33 AM in response to Loner T

Hi,

i've followed your instructions but there is a problem :

after the first command i got a warning : Secondary partition table overlaps the last partition by 700719137 blocks. Try reducing the partition table size by 2802876548 entries.


I initially ignored this warning and proceded to all the next steps but when i hit W at step 12 i got the same warning again and : Aborting write of new partition table.


What should i do now?


Thanks

Mattia


Mar 2, 2020 8:23 AM in response to mattia182

Done. Here is the output :

Repairing the partition map might erase disk0s1, proceed? (y/N) y


Started partition map repair on disk0


Checking prerequisites


Checking the partition list


Adjusting partition map to fit whole disk as required


Checking for an EFI system partition


Checking the EFI system partition's size


Checking the EFI system partition's file system


Checking the EFI system partition's folder content


Checking all HFS data partition loader spaces


Checking booter partitions


Checking booter partition disk0s3


Repairing file system


Checking Journaled HFS Plus volume


Checking extents overflow file


Checking catalog file


Checking multi-linked files


Checking catalog hierarchy


Checking extended attributes file


Checking volume bitmap


Checking volume information


The volume Recovery HD appears to be OK


File system check exit code is 0


Updating boot support partitions for the volume as required


Reviewing boot support loaders


Checking Core Storage Physical Volume partitions


Updating Windows boot.ini files as required


The partition map appears to be OK


Finished partition map repair on disk0


Should i try to run the previous commands again ?

Mar 3, 2020 9:44 AM in response to Loner T

Ok,

i've done what you said and after that i've rebuild the MBR using the commands you already gave me.

Now i can see the Windows partition as bootable and i can select it but when i do so i got this Windows error :

0xc00000e


The Bootcamp partition is ok now because i can see it also in Finder and i can explore it ... should i try to rebuildBCD ?



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.