• Become a Premium Member for $25/year with no ads to improve your community experience. Upgrade to Pro Account for faster response and no wait times!

macOS boot entry disappeared after trying to re-partition through Disk Utility

If you see, there is no option to delete the volume. Try to format the Untitled Volume as APFS. Quit Disk Utility, open it again and provide a screenshot.
1670973794567.png

As far as I know (by googling), I can't actually resize my macOS partition because it's the "last" of the disk.
 
View attachment 5352

As far as I know (by googling), I can't actually resize my macOS partition because it's the "last" of the disk.
Click on Cancel and then select container disk5 and click on Partition and provide a screenshot.
 
Quit Terminal and execute the following commands in Terminal.

Bash:
#Identify the physical disk
sudo diskutil list

#Repair the physical disk partition
sudo diskutil repairDisk disk0

#Resize the physical disk container volume
sudo diskutil apfs resizeContainer disk0s4 0

Post the output of the Terminal
 
#Identify the physical disk sudo diskutil list
/dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *250.1 GB disk0 1: Apple_APFS ⁨Container disk5⁩ 137.3 GB disk0s1 2: EFI ⁨MACEFI⁩ 274.7 MB disk0s3 3: Apple_APFS ⁨Container disk1⁩ 112.5 GB disk0s4 /dev/disk1 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +112.5 GB disk1 Physical Store disk0s4 1: APFS Volume ⁨macOS - Data⁩ 80.3 GB disk1s1 2: APFS Volume ⁨Preboot⁩ 362.4 MB disk1s2 3: APFS Volume ⁨Recovery⁩ 623.1 MB disk1s3 4: APFS Volume ⁨VM⁩ 1.1 MB disk1s4 5: APFS Volume ⁨macOS⁩ 15.3 GB disk1s5 6: APFS Snapshot ⁨com.apple.os.update-...⁩ 15.3 GB disk1s5s1 /dev/disk2 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1.0 TB disk2 1: Windows Recovery ⁨⁩ 523.2 MB disk2s1 2: EFI ⁨NO NAME⁩ 104.9 MB disk2s2 3: Microsoft Reserved ⁨⁩ 16.8 MB disk2s3 4: Microsoft Basic Data ⁨⁩ 998.9 GB disk2s4 5: Windows Recovery ⁨⁩ 662.7 MB disk2s5 /dev/disk3 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *250.1 GB disk3 1: Windows_NTFS ⁨w10lib⁩ 250.1 GB disk3s1 /dev/disk4 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *62.0 GB disk4 1: EFI ⁨EFI⁩ 209.7 MB disk4s1 2: Apple_HFS ⁨Install macOS Big Sur⁩ 61.7 GB disk4s2 /dev/disk5 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +137.3 GB disk5 Physical Store disk0s1 1: APFS Volume ⁨Untitled⁩ 757.8 KB disk5s1
#Repair the physical disk partition sudo 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 all HFS data partition loader spaces Checking booter partitions Reviewing boot support loaders Checking Core Storage Physical Volume partitions The partition map appears to be OK Finished partition map repair on disk0
Bash:
#Resize the physical disk container volume
sudo diskutil apfs resizeContainer disk0s4 0
Started APFS operation Error: -69743: The new size must be different than the existing size
 
/dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *250.1 GB disk0 1: Apple_APFS ⁨Container disk5⁩ 137.3 GB disk0s1 2: EFI ⁨MACEFI⁩ 274.7 MB disk0s3 3: Apple_APFS ⁨Container disk1⁩ 112.5 GB disk0s4 /dev/disk1 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +112.5 GB disk1 Physical Store disk0s4 1: APFS Volume ⁨macOS - Data⁩ 80.3 GB disk1s1 2: APFS Volume ⁨Preboot⁩ 362.4 MB disk1s2 3: APFS Volume ⁨Recovery⁩ 623.1 MB disk1s3 4: APFS Volume ⁨VM⁩ 1.1 MB disk1s4 5: APFS Volume ⁨macOS⁩ 15.3 GB disk1s5 6: APFS Snapshot ⁨com.apple.os.update-...⁩ 15.3 GB disk1s5s1 /dev/disk2 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *1.0 TB disk2 1: Windows Recovery ⁨⁩ 523.2 MB disk2s1 2: EFI ⁨NO NAME⁩ 104.9 MB disk2s2 3: Microsoft Reserved ⁨⁩ 16.8 MB disk2s3 4: Microsoft Basic Data ⁨⁩ 998.9 GB disk2s4 5: Windows Recovery ⁨⁩ 662.7 MB disk2s5 /dev/disk3 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *250.1 GB disk3 1: Windows_NTFS ⁨w10lib⁩ 250.1 GB disk3s1 /dev/disk4 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *62.0 GB disk4 1: EFI ⁨EFI⁩ 209.7 MB disk4s1 2: Apple_HFS ⁨Install macOS Big Sur⁩ 61.7 GB disk4s2 /dev/disk5 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +137.3 GB disk5 Physical Store disk0s1 1: APFS Volume ⁨Untitled⁩ 757.8 KB disk5s1

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 all HFS data partition loader spaces Checking booter partitions Reviewing boot support loaders Checking Core Storage Physical Volume partitions The partition map appears to be OK Finished partition map repair on disk0

Started APFS operation Error: -69743: The new size must be different than the existing size
Execute the following

sudo diskutil apfs resizeContainer disk0s1 0
 
sudo diskutil apfs resizeContainer disk0s1 0
Started APFS operation Error: -69519: The target disk is too small for this operation, or a gap is required in your partition map which is missing or too small, which is often caused by an attempt to grow a partition beyond the beginning of another partition or beyond the end of partition map usable space
 
Started APFS operation Error: -69519: The target disk is too small for this operation, or a gap is required in your partition map which is missing or too small, which is often caused by an attempt to grow a partition beyond the beginning of another partition or beyond the end of partition map usable space
Execute the following

sudo diskutil apfs deletecontainer disk0s1
sudo diskutil erasevolume free none disk0s1
 
sudo diskutil apfs deletecontainer disk0s1
Started APFS operation on disk5 Deleting APFS Container with all of its APFS Volumes Unmounting Volumes Unmounting Volume "Untitled" on disk5s1 Deleting Volumes Deleting Container Wiping former APFS disks Switching content types 1 new disk created or changed due to APFS operation Disk from APFS operation: disk0s1 Finished APFS operation on disk5 Removing disk0s1 from partition map
sudo diskutil erasevolume free none disk0s1
Unable to find disk for disk0s1
 
Started APFS operation on disk5 Deleting APFS Container with all of its APFS Volumes Unmounting Volumes Unmounting Volume "Untitled" on disk5s1 Deleting Volumes Deleting Container Wiping former APFS disks Switching content types 1 new disk created or changed due to APFS operation Disk from APFS operation: disk0s1 Finished APFS operation on disk5 Removing disk0s1 from partition map

Unable to find disk for disk0s1
Provide the output of the following

sudo diskutil list
 

Forum statistics

Threads
1,935
Messages
18,091
Members
27,833
Latest member
Tamal53