Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Serdar Sağdıç

macrumors newbie
Original poster
Mar 26, 2020
2
0
Hello. I will tell all the steps i did.

1) I was using MacOS and Windows installed with Bootcamp (50GB) not a single problem.
2) I decided to install Ubuntu for my works. Then created a USB bootable Ubuntu disk with Etcher (same install method in Ubuntu's website).
3) Installed Ubuntu into the Bootcamp disk. And gived 10 GB to Ubuntu. (Bootcamp decreased 40GB)
4) When I choose "Bootcamp" in boot menu (after holding option key) it started Ubuntu all the time. Then i decided to delete Ubuntu.
5) I tried to delete 10 GB Ubuntu partition in Ubuntu disk assistant and I couldnt. (it's funny, isn't it?..:) ).
6) Then accidentally deleted 315 MB EFI file in Ubuntu disk assistant. While i did it, i cant see "Bootcamp" option in boot menu.
7) Tried to delete Windows with Bootcamp Assistant ant it says:
"Boot Camp Assistant cannot verify if Windows is installed in the Windows partition."
8) Tried to format this deleted partition and it errors.
9) Here's my GUID partition map. Please help.. I want to recover this Bootcamp partition and delete Ubuntu in it. Or if i cant do it, delete everything in my 500 GB SSD and install a fresh OS (i have a time machine backup. How should i do it?

Code:
/dev/disk0 (internal, physical):
  #:            TYPE NAME          SIZE    IDENTIFIER
  0:   GUID_partition_scheme            *500.3 GB  disk0
  1:            EFI EFI           314.6 MB  disk0s1
  2:    Microsoft Basic Data             > 16 EB  disk0s2
  3:         Apple_APFS Container disk1     449.0 GB  disk0s3
  4:    Microsoft Basic Data             41.0 GB  disk0s4
  5:      Linux Filesystem             10.0 GB  disk0s5

/dev/disk1 (synthesized):
  #:            TYPE NAME          SIZE    IDENTIFIER
  0:   APFS Container Scheme -           +449.0 GB  disk1
                 Physical Store disk0s3
  1:        APFS Volume Macintosh HD - Veriler 275.6 GB  disk1s1
  2:        APFS Volume Preboot         81.6 MB  disk1s2
  3:        APFS Volume Recovery        528.1 MB  disk1s3
  4:        APFS Volume VM           1.1 GB   disk1s4
  5:        APFS Volume Macintosh HD      10.9 GB  disk1s5
 
This is GPT:

Code:
Hilals-MacBook-Pro:~ drsagdic$ sudo gpt -vv -r show /dev/disk0
gpt show: /dev/disk0: mediasize=500277792768; sectorsize=4096; blocks=122138133
gpt show: /dev/disk0: Suspicious MBR at sector 0
gpt show: /dev/disk0: Pri GPT at sector 1
gpt show: error: bogus map
gpt show: unable to open device '/dev/disk0': Undefined error: 0


And fdisk command:

Code:
Hilals-MacBook-Pro:~ drsagdic$ sudo fdisk /dev/disk0
Disk: /dev/disk0    geometry: 7602/255/63 [122138133 sectors]
Sector size: 4096 bytes
Signature: 0xAA55
     Starting    Ending
 #: id cyl hd sec - cyl hd sec [   start -    size]
------------------------------------------------------------------------
 1: EE  0  0  1 - 1023 254 63 [     1 -     31] <Unknown ID>
 2: DA 1023 254 63 - 1023 254 63 [    32 -    9568] <Unknown ID>
*3: DA 1023 254 63 - 1023 254 63 [   9600 -  13702399] <Unknown ID>
 4: 07 1023 254 63 - 1023 254 63 [ 13712000 -  1250080] HPFS/QNX/AUX
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.