Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Bootcamp partition lost & missing disk space

My iMac is late 2014, 27", 5k, MacOS Big Sur 11.4


My iMac hanged while the BCA was trying to remove Bootcamp. So now I have a lost the Bootcamp partition and missing disk space.


I was trying this method as mentioned here https://discussions.apple.com/thread/8037379?answerId=32088600022#32088600022 but I keep having the 'sudo: command not found' error.


e.g. sudo gdisk /dev/disk1


I have installed the GPT fdisk download.

SIP is also disabled.


My diskutil list:

Horngs-iMac:~ KwokHorngWey$ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI ⁨EFI⁩                     209.7 MB   disk0s1
   2:                 Apple_APFS ⁨Container disk2⁩         121.1 GB   disk0s2

/dev/disk1 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *1.0 TB     disk1
   1:                        EFI ⁨EFI⁩                     209.7 MB   disk1s1
   2:                 Apple_APFS ⁨Container disk2⁩         748.0 GB   disk1s2
                    (free space)                         252.0 GB   -

/dev/disk2 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +869.1 GB   disk2
                                 Physical Stores disk0s2, disk1s2
   1:                APFS Volume ⁨Macintosh HD⁩            15.3 GB    disk2s1
   2:              APFS Snapshot ⁨com.apple.os.update-...⁩ 15.3 GB    disk2s1s1
   3:                APFS Volume ⁨Preboot⁩                 281.8 MB   disk2s2
   4:                APFS Volume ⁨Recovery⁩                622.9 MB   disk2s3
   5:                APFS Volume ⁨VM⁩                      2.1 GB     disk2s4
   6:                APFS Volume ⁨Macintosh HD - Data⁩     552.1 GB   disk2s5

/dev/disk3 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *2.0 TB     disk3
   1:                        EFI ⁨EFI⁩                     209.7 MB   disk3s1
   2:                 Apple_APFS ⁨Container disk5⁩         2.0 TB     disk3s2

/dev/disk4 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *4.0 TB     disk4
   1:                        EFI ⁨EFI⁩                     209.7 MB   disk4s1
   2:                 Apple_APFS ⁨Container disk6⁩         4.0 TB     disk4s2

/dev/disk5 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +2.0 TB     disk5
                                 Physical Store disk3s2
   1:                APFS Volume ⁨Media⁩                   1.1 TB     disk5s1

/dev/disk6 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +4.0 TB     disk6
                                 Physical Store disk4s2
   1:                APFS Volume ⁨Backup for other macs⁩   136.1 GB   disk6s1
   2:                APFS Volume ⁨Time Machine⁩            1.6 TB     disk6s2



I suspect I should be working on disk1, so here my sudo gpt -vv -r show /dev/disk1


Horngs-iMac:~ KwokHorngWey$ sudo gpt -vv -r show /dev/disk1

Password:

gpt show: /dev/disk1: mediasize=1000204886016; sectorsize=512; blocks=1953525168

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

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

gpt show: /dev/disk1: Sec GPT at sector 1953525167

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

1461338112 492187023

1953525135 32 Sec GPT table

1953525167 1 Sec GPT header


Please let me know how I can solve this problem. Thank you so much.

iMac Line (2012 and Later)

Posted on May 30, 2021 9:31 PM

Reply
Question marked as Best reply

Posted on May 31, 2021 8:33 AM

Similar questions

9 replies
Question marked as Best reply

May 31, 2021 8:33 AM in response to JinKwok

May 31, 2021 7:21 AM in response to Loner T

Horngs-iMac:~ KwokHorngWey$ diskutil apfs resizeContainer disk2 0g
Started APFS operation
Aligning grow delta to 251,999,752,192 bytes and targeting a new physical store size of 999,995,129,856 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 999,994,101,760 bytes
Resizing APFS Container designated by APFS Container Reference disk2
The specific APFS Physical Store being resized is disk1s2
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /dev/disk0s2
Checking the container superblock
Checking the fusion superblock
Checking the EFI jumpstart record
Checking the space manager
Checking the space manager free queue trees
Checking the object map
Checking the Fusion data structures
Checking volume
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 1 (com.apple.os.update-F8CC686BD994CAC58E0A525C64B2C9D6329887202C9FA5AC86D15A7994507C67)
Checking the extent ref tree
Checking the fsroot tree
Checking the file extent tree
Checking volume
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 16 (com.apple.TimeMachine.2021-05-30-235451.local)
Checking snapshot 2 of 16 (com.apple.TimeMachine.2021-05-31-005750.local)
Checking snapshot 3 of 16 (com.apple.TimeMachine.2021-05-31-015807.local)
Checking snapshot 4 of 16 (com.apple.TimeMachine.2021-05-31-030541.local)
Checking snapshot 5 of 16 (com.apple.TimeMachine.2021-05-31-040721.local)
Checking snapshot 6 of 16 (com.apple.TimeMachine.2021-05-31-051253.local)
Checking snapshot 7 of 16 (com.apple.TimeMachine.2021-05-31-061252.local)
Checking snapshot 8 of 16 (com.apple.TimeMachine.2021-05-31-090900.local)
Checking snapshot 9 of 16 (com.apple.TimeMachine.2021-05-31-114037.local)
Checking snapshot 10 of 16 (com.apple.TimeMachine.2021-05-31-135100.local)
Checking snapshot 11 of 16 (com.apple.TimeMachine.2021-05-31-155047.local)
Checking snapshot 12 of 16 (com.apple.TimeMachine.2021-05-31-165049.local)
Checking snapshot 13 of 16 (com.apple.TimeMachine.2021-05-31-175050.local)
Checking snapshot 14 of 16 (com.apple.TimeMachine.2021-05-31-190627.local)
Checking snapshot 15 of 16 (com.apple.TimeMachine.2021-05-31-200656.local)
Checking snapshot 16 of 16 (com.apple.TimeMachine.2021-05-31-211822.local)
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Verifying allocated space
warning: MT mapping (0x4000008453789 -> 0x113b9b1, 7, C) is not completely referenced
warning: MT mapping (0x40000084c6d4a -> 0x114b640, 34, C) is not completely referenced
warning: MT mapping (0x40000084ec17b -> 0x11d43f9, 7, C) is not completely referenced
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Growing APFS Physical Store disk1s2 from 747,995,377,664 to 999,995,129,856 bytes
Modifying partition map
Growing APFS data structures
APFS Container Resize error code is 49180
A problem occurred; undoing all changes
Modifying partition map
Error: -69606: A problem occurred while resizing APFS Container structures

May 31, 2021 8:09 AM in response to Loner T

I am unable to create the FAT partition.


Partitioning disk “APPLE HDD ST1000DM003 Media” (disk1)

Resizing the startup volume will cause this computer to stop responding.

Running operation 1 of 3: Add “test” 38.47 GB by shrinking container disk2 “Macintosh HD” (disk1s2) from 869.12 GB to 830.65 GB…
Aligning shrink delta to 38,467,698,688 bytes and targeting a new physical store size of 709,527,678,976 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 585,726,164,992 bytes
Resizing APFS Container designated by APFS Container Reference disk2
The specific APFS Physical Store being resized is disk1s2
Verifying storage system
Using live mode.
Performing fsck_apfs -n -x -l /dev/disk0s2
Checking the container superblock.
Checking the fusion superblock.
Checking the EFI jumpstart record.
Checking the space manager.
Checking the space manager free queue trees.
Checking the object map.
Checking the Fusion data structures.
Checking volume.
Checking the APFS volume superblock.
Checking the object map.
Checking the snapshot metadata tree.
Checking the snapshot metadata.
Checking snapshot 1 of 1 (com.apple.os.update-F8CC686BD994CAC58E0A525C64B2C9D6329887202C9FA5AC86D15A7994507C67)
Checking the extent ref tree.
Checking the fsroot tree.
Checking the file extent tree.
Checking volume.
Checking the APFS volume superblock.
Checking the object map.
Checking the snapshot metadata tree.
Checking the snapshot metadata.
Checking the extent ref tree.
Checking the fsroot tree.
Checking volume.
Checking the APFS volume superblock.
Checking the object map.
Checking the snapshot metadata tree.
Checking the snapshot metadata.
Checking the extent ref tree.
Checking the fsroot tree.
Checking volume.
Checking the APFS volume superblock.
Checking the object map.
Checking the snapshot metadata tree.
Checking the snapshot metadata.
Checking the extent ref tree.
Checking the fsroot tree.
Checking volume.
Checking the APFS volume superblock.
Checking the object map.
Checking the snapshot metadata tree.
Checking the snapshot metadata.
Checking snapshot 1 of 17 (com.apple.TimeMachine.2021-05-30-235451.local)
Checking snapshot 2 of 17 (com.apple.TimeMachine.2021-05-31-005750.local)
Checking snapshot 3 of 17 (com.apple.TimeMachine.2021-05-31-015807.local)
Checking snapshot 4 of 17 (com.apple.TimeMachine.2021-05-31-030541.local)
Checking snapshot 5 of 17 (com.apple.TimeMachine.2021-05-31-040721.local)
Checking snapshot 6 of 17 (com.apple.TimeMachine.2021-05-31-051253.local)
Checking snapshot 7 of 17 (com.apple.TimeMachine.2021-05-31-061252.local)
Checking snapshot 8 of 17 (com.apple.TimeMachine.2021-05-31-090900.local)
Checking snapshot 9 of 17 (com.apple.TimeMachine.2021-05-31-114037.local)
Checking snapshot 10 of 17 (com.apple.TimeMachine.2021-05-31-135100.local)
Checking snapshot 11 of 17 (com.apple.TimeMachine.2021-05-31-155047.local)
Checking snapshot 12 of 17 (com.apple.TimeMachine.2021-05-31-165049.local)
Checking snapshot 13 of 17 (com.apple.TimeMachine.2021-05-31-175050.local)
Checking snapshot 14 of 17 (com.apple.TimeMachine.2021-05-31-190627.local)
Checking snapshot 15 of 17 (com.apple.TimeMachine.2021-05-31-200656.local)
Checking snapshot 16 of 17 (com.apple.TimeMachine.2021-05-31-211822.local)
Checking snapshot 17 of 17 (com.apple.TimeMachine.2021-05-31-222006.local)
Checking the extent ref tree.
Checking the fsroot tree.
Checking volume.
Checking the APFS volume superblock.
Checking the object map.
Checking the snapshot metadata tree.
Checking the snapshot metadata.
Checking the extent ref tree.
Checking the fsroot tree.
Verifying allocated space.
warning: MT mapping (0x4000008453789 -> 0x113b9b1, 7, C) is not completely referenced
warning: MT mapping (0x40000084c6d4a -> 0x114b640, 34, C) is not completely referenced
warning: MT mapping (0x40000084ec17b -> 0x11d43f9, 7, C) is not completely referenced
The volume /dev/disk0s2 appears to be OK.
Storage system check exit code is 0.
Shrinking APFS Physical Store disk1s2 from 747,995,377,664 to 709,527,678,976 bytes
Shrinking APFS data structures
APFS Container Resize error code is 49180
A problem occurred while resizing APFS Container structures. : (-69606)

Operation failed…


Bootcamp partition lost & missing disk space

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