Accidently deleted Bootcamp from DU and now can't start Mac OS

So I made a really dumb mistake and deleted my mac partition in DU instead of going through Bootcamp Assistant. Nothing happened at the time but upon restarting my Mac I got the infamous folder with the question mark. I did the Internet Recovery and entered OS X Utilities. It appears all my data and files are on my original partition still so I didn't lose them and after verifying it, it appears ok.


My question is, how do I get my Mac OS back from here without losing my data? Will going 'Reinstall OS X' do a fresh install and delete my data? I also don't have a backup, which is worrying.


I also do want to get my full 500gb for my Mac OS but I'll deal with this problem first.


Thanks for any help


Posted on Oct 27, 2020 3:57 AM

Reply
40 replies

Nov 2, 2020 1:05 AM in response to Loner T

Last login: Mon Nov  2 18:56:58 on console


cams-MacBook-Pro:~ cam$ diskutil list


/dev/disk0 (internal, physical):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      GUID_partition_scheme                        *500.3 GB   disk0


   1:                        EFI EFI                     209.7 MB   disk0s1


   2:          Apple_CoreStorage Macintosh HD            404.4 GB   disk0s2


   3:                  Apple_HFS                         650.0 MB   disk0s3


   4:                  Apple_HFS BOOTCAMP                94.9 GB    disk0s4




/dev/disk1 (internal, virtual):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:                  Apple_HFS Macintosh HD           +404.0 GB   disk1


                                 Logical Volume on disk0s2


                                 A273065A-5AA5-43F5-B5E6-EF8D43F51789


                                 Unencrypted




/dev/disk2 (external, physical):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      GUID_partition_scheme                        *2.0 TB     disk2


   1:                        EFI EFI                     209.7 MB   disk2s1


   2:                  Apple_HFS UNTITLED                2.0 TB     disk2s2


   3:                 Apple_Boot Recovery HD             650.0 MB   disk2s3




cams-MacBook-Pro:~ cam$ 















Nov 3, 2020 2:42 AM in response to Loner T

Done, here are the results


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


Reviewing boot support loaders


Checking Core Storage Physical Volume partitions


Verifying storage system


Checking volume


disk0s2: Scan for Volume Headers


disk0s2: Scan for Disk Labels


Invalid Disk Label @ 404358651904: cksum mismatch


Logical Volume Group BB7C5DB3-39E2-4946-978C-73BD134025DF on 1 device


disk0s2: Scan for Metadata Volume


Logical Volume Group has a 24 MB Metadata Volume with double redundancy


Start scanning metadata for a valid checkpoint


Load and verify Segment Headers


Load and verify Checkpoint Payload


Load and verify Transaction Segment


Incorporate 0 newer non-checkpoint transactions


Load and verify Virtual Address Table


Load and verify Segment Usage Table


Load and verify Metadata Superblock


Load and verify Logical Volumes B-Trees


Logical Volume Group contains 1 Logical Volume


Load and verify E90CD8B5-CE15-406E-B625-2E9DD50513CD


Load and verify A273065A-5AA5-43F5-B5E6-EF8D43F51789


Load and verify Freespace Summary


Load and verify Block Accounting


Load and verify Live Virtual Addresses


Newest transaction commit checkpoint is valid


Load and verify Segment Cleaning


The volume BB7C5DB3-39E2-4946-978C-73BD134025DF appears to be OK


Storage system check exit code is 0


Repairing storage system


The volume disk0s2 cannot be repaired when it is in use


Checking volume


disk0s2: Scan for Volume Headers


disk0s2: Scan for Disk Labels


Invalid Disk Label @ 404358651904: cksum mismatch


Logical Volume Group BB7C5DB3-39E2-4946-978C-73BD134025DF on 1 device


disk0s2: Scan for Metadata Volume


Logical Volume Group has a 24 MB Metadata Volume with double redundancy


Start scanning metadata for a valid checkpoint


Load and verify Segment Headers


Load and verify Checkpoint Payload


Load and verify Transaction Segment


Incorporate 0 newer non-checkpoint transactions


Load and verify Virtual Address Table


Load and verify Segment Usage Table


Load and verify Metadata Superblock


Load and verify Logical Volumes B-Trees


Logical Volume Group contains 1 Logical Volume


Load and verify E90CD8B5-CE15-406E-B625-2E9DD50513CD


Load and verify A273065A-5AA5-43F5-B5E6-EF8D43F51789


Load and verify Freespace Summary


Load and verify Block Accounting


Load and verify Live Virtual Addresses


Newest transaction commit checkpoint is valid


Load and verify Segment Cleaning


The volume BB7C5DB3-39E2-4946-978C-73BD134025DF appears to be OK


Storage system check exit code is 0


Updating Windows boot.ini files as required


The partition map appears to be OK


Finished partition map repair on disk0


cams-MacBook-Pro:~ cam$ 

Nov 4, 2020 2:35 AM in response to Loner T

Here are the results. I rebooted again after this and I still only had the same two options


cams-MacBook-Pro:~ cam$ sudo fsck_hfs -f -y /dev/rdisk1


Password:


** /dev/rdisk1


   Executing fsck_hfs (version hfs-366.70.1).


** Checking Journaled HFS Plus volume.


   The volume name is Macintosh HD


** Checking extents overflow file.


** Checking catalog file.


** Checking multi-linked files.


** Checking catalog hierarchy.


** Checking extended attributes file.


** Checking multi-linked directories.


** Checking volume bitmap.


** Checking volume information.


** Trimming unused blocks.


** The volume Macintosh HD appears to be OK.


cams-MacBook-Pro:~ cam$ 







Nov 6, 2020 4:00 AM in response to Loner T

Oh ok! I installed GPT Fdisk


Here are the the results from diskutil list


Homes-MacBook-Pro:~ home$ diskutil list

/dev/disk0 (internal, physical):

  #:            TYPE NAME          SIZE    IDENTIFIER

  0:   GUID_partition_scheme            *500.3 GB  disk0

  1:            EFI EFI           209.7 MB  disk0s1

  2:         Apple_HFS Macintosh HD      404.4 GB  disk0s2

  3:         Apple_HFS             650.0 MB  disk0s3

  4:         Apple_HFS BOOTCAMP        94.4 GB  disk0s4

  5:         Apple_Boot Recovery HD       650.0 MB  disk0s5

Nov 6, 2020 1:47 PM in response to Loner T

Thanks!


Here are the results from diskutil repairDisk disk0


Homes-MacBook-Pro:~ home$ diskutil repairDisk disk0
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
Preparing to create trailing loader space by shrinking the volume "Macintosh HD" on disk0s2
Creating loader space, part 1 of 3: Verifying the file system
Creating loader space, part 2 of 3: Shrinking the file system from 404,371,238,912 to 404,237,021,184 bytes so that this partition can be smaller
Creating loader space, part 3 of 3: Shrinking the partition in the partition map to open up loader space
Checking booter partitions
Checking booter partition disk0s5
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
Trimming unused blocks
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 has been repaired
Finished partition map repair on disk0
Homes-MacBook-Pro:~ home$ 





Nov 7, 2020 5:06 AM in response to Loner T

Homes-MacBook-Pro:~ home$ diskutil list

/dev/disk0 (internal, physical):

  #:            TYPE NAME          SIZE    IDENTIFIER

  0:   GUID_partition_scheme            *500.3 GB  disk0

  1:            EFI EFI           209.7 MB  disk0s1

  2:         Apple_HFS Macintosh HD      404.2 GB  disk0s2

  3:         Apple_HFS             650.0 MB  disk0s3

  4:         Apple_HFS BOOTCAMP        94.4 GB  disk0s4

  5:         Apple_Boot Recovery HD       650.0 MB  disk0s5

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.

Accidently deleted Bootcamp from DU and now can't start Mac OS

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