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)