I have an external 1TB disk that I use for Time Machine backups that I temporarily added a second 100GB partition to. After deleting the partition, though, I can't reclaim the free space. Disk Utility won't let me drag the partition button onto it:
I tried the resizeStack
command, but got an error:
******:~ ******$ diskutil cs resizeStack 389D8763-4C1B-4D77-A734-C507DBD567C1 0g
The Core Storage Logical Volume UUID is 389D8763-4C1B-4D77-A734-C507DBD567C1
Started CoreStorage operation
Error: -69722: You can't perform this resize unless it has a booter (target partition is probably too small)
What's this business about a 'booter'? How can I reclaim my lost 100GB?
EDIT:
Output from diskutil list
:
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk3
1: EFI EFI 209.7 MB disk3s1
2: Apple_CoreStorage Time Machine 900.0 GB disk3s2
… and from diskutil cs list
:
+-- Logical Volume Group 7DBE7E68-7EB4-4208-9BBF-1ED08259754F
=========================================================
Name: Time Machine
Status: Online
Size: 899995127808 B (900.0 GB)
Free Space: 0 B (0 B)
|
+-< Physical Volume 38259B44-99D7-4F3C-973D-2510408E8E72
| ----------------------------------------------------
| Index: 0
| Disk: disk3s2
| Status: Online
| Size: 899995127808 B (900.0 GB)
|
+-> Logical Volume Family 76E4A480-E849-47D0-96D8-D07940EAB3C7
----------------------------------------------------------
Encryption Type: AES-XTS
Encryption Status: Unlocked
Conversion Status: Complete
High Level Queries: Fully Secure
| Passphrase Required
| Accepts New Users
| Has Visible Users
| Has Volume Key
|
+-> Logical Volume 389D8763-4C1B-4D77-A734-C507DBD567C1
---------------------------------------------------
Disk: disk4
Status: Online
Size (Total): 899642802176 B (899.6 GB)
Revertible: No
LV Name: Time Machine
Volume Name: Time Machine
Content Hint: Apple_HFS
Best Answer
I will use an approximately 500 GB spare image file to illustrate your problem and my solution. The output from
diskutil disk1
anddiskutil disk2
for my drive is shown below. Here, there is almost no free space.Normally, a
Apple_CoreStorage
partition is followed by aApple_Boot
partition. Your drive is missing thisApple_Boot
partition.Below is output from the same commands, but this time my drive has approximately 50 GB of free space. Furthermore, the
Apple_Boot
partition is missing.Below are instructions for recreating the
Apple_Boot
partition and recovering the free space. When required, make the appropriate adjustments to these commands. These instructions will not recreate any important files that were stored in this partition. In your case, there may not have been any important files. If needed, prepend asudo
to any of these commands.Use the third part tool
gdisk
to create the missingApple_Boot
partition. Enter the text given below to invoke this interactive command.Below are the interactive gdisk commands. The blank line indicates the default was selected. You should expect your default value to be different from mine.
Below is the output from when I used the
gdisk /dev/disk1
command.Use the command below to format the newly created partition.
Use the command below to recover the free space. Note: I already substituted your logical volume UUID.
Final note:
The
gpt
command can be used instead of the third partygdisk
command. You would need to enter thegpt
command shown below to partially dump the contents of the GUID Partition Table (GPT).For my drive, the output is shown below.
From this output, determine the start of the free space after the
Apple_CoreStorage
(53746F72-6167-11AA-AA11-00306543ECAC
) partition. For my drive this would be sector879053752
.The
gpt
command shown below adds a newApple_Boot
partition do the drive. Set the-b
option to the start of the free space value. This command must be immediately preceded by thediskutil
command shown below.Next, proceed to step 2.