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

Mistake deleting Bootcamp, now lost partition

Hi there


I wanted to resize my bootcamp partition and forgot that I need to delete it by Bootcamp. Instead, I just removed it in Disk Utility. Windows are now gone, but I cannot reclaim the 250G that were allocated to Bootcamp, and I also cannot install Windows back there using Winclone.


What is also weird is that I cannot see those 250G in diskutil (I only see the 250G allocated to the Mac partition):

/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_APFS Container disk1 250.0 GB disk0s2


/dev/disk1 (synthesized):

#: TYPE NAME SIZE IDENTIFIER

0: APFS Container Scheme - +250.0 GB disk1

Physical Store disk0s2

1: APFS Volume Macintosh HD 223.1 GB disk1s1

2: APFS Volume Preboot 32.7 MB disk1s2

3: APFS Volume Recovery 518.1 MB disk1s3

4: APFS Volume VM 1.1 GB disk1s4


I tried the above also in the recovery mode and it showed a number of /dev/disk's (disk2 .. disk18 I think) with very small sizes. In the disk utility I see the missing 250G as "free space" but cannot remove it ('-'); I just get an error. Any ideas?


Thanks

MacBook Pro with Retina display, macOS High Sierra (10.13.5)

Posted on Jul 7, 2018 5:28 AM

Reply
Question marked as Best reply

Posted on Jul 7, 2018 2:20 PM

Download and install GPT FDisk - https://sourceforge.net/projects/gptfdisk/ . Once installed, run (do not type text like this)


sudo gdisk /dev/disk0

p (print)

n (new)

3 (GPT 3)

488757328 (Start Sector)

+488347699 (Size of GPT3)

0700 (Microsoft Basic Data)

p (print)

w (write)

y (Confirm write)

q (quit, if necessary)


Run


diskutil repairDisk disk0


Reboot, and run BC Assistant, and click on Restore/Remove.

Similar questions

7 replies
Question marked as Best reply

Jul 7, 2018 2:20 PM in response to azito

Download and install GPT FDisk - https://sourceforge.net/projects/gptfdisk/ . Once installed, run (do not type text like this)


sudo gdisk /dev/disk0

p (print)

n (new)

3 (GPT 3)

488757328 (Start Sector)

+488347699 (Size of GPT3)

0700 (Microsoft Basic Data)

p (print)

w (write)

y (Confirm write)

q (quit, if necessary)


Run


diskutil repairDisk disk0


Reboot, and run BC Assistant, and click on Restore/Remove.

Jul 7, 2018 6:04 AM in response to Loner T

gpt show: /dev/disk0: mediasize=500277790720; sectorsize=512; blocks=977105060

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

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

gpt show: /dev/disk0: Sec GPT at sector 977105059

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

488757328 488347699

977105027 32 Sec GPT table

977105059 1 Sec GPT header

Jul 7, 2018 6:55 AM in response to Loner T

Thanks, this made the bootcamp functional again. I tried to remove the partition, but then got the error: "An error occurred while restoring the disk to a single partition. Please run Disk Utility to check and fix the error."


Could it be that I should not try to do all this while my mac is decrypting my disk? (Unfortunately I had read somewhere that encryption may be a reason for my problems, and switched it off earlier today, not realizing that decryption will last a day.. )

Jul 7, 2018 7:14 AM in response to Loner T

APFS Container (1 found)

|

+-- Container disk1 C90C9B9F-FFB4-4C25-9836-6727FAC69443

====================================================

APFS Container Reference: disk1

Size (Capacity Ceiling): 250034016256 B (250.0 GB)

Minimum Size: 233286135808 B (233.3 GB)

Capacity In Use By Volumes: 225944297472 B (225.9 GB) (90.4% used)

Capacity Not Allocated: 24089718784 B (24.1 GB) (9.6% free)

|

+-< Physical Store disk0s2 EBF0F4D9-28B5-4A92-BB84-572E2610BABB

| -----------------------------------------------------------

| APFS Physical Store Disk: disk0s2

| Size: 250034016256 B (250.0 GB)

|

+-> Volume disk1s1 A7C82819-D719-3815-BE4A-118ED7CAAA67

| ---------------------------------------------------

| APFS Volume Disk (Role): disk1s1 (No specific role)

| Name: Macintosh HD (Case-insensitive)

| Mount Point: /

| Capacity Consumed: 224181374976 B (224.2 GB)

| Decryption Progress: 28.0% (Unlocked)

|

+-> Volume disk1s2 7A1C066F-565B-410F-857F-C1BA6C2C9092

| ---------------------------------------------------

| APFS Volume Disk (Role): disk1s2 (Preboot)

| Name: Preboot (Case-insensitive)

| Mount Point: Not Mounted

| Capacity Consumed: 32735232 B (32.7 MB)

| FileVault: No

|

+-> Volume disk1s3 9ED372F1-D54F-4E6A-BC44-69655BF7E729

| ---------------------------------------------------

| APFS Volume Disk (Role): disk1s3 (Recovery)

| Name: Recovery (Case-insensitive)

| Mount Point: Not Mounted

| Capacity Consumed: 518127616 B (518.1 MB)

| FileVault: No

|

+-> Volume disk1s4 BFF3875D-51A9-4D7D-A9B6-DEE8262A2BC7

---------------------------------------------------

APFS Volume Disk (Role): disk1s4 (VM)

Name: VM (Case-insensitive)

Mount Point: /Volumes/VM

Capacity Consumed: 1073766400 B (1.1 GB)

FileVault: No

Jul 7, 2018 7:18 AM in response to azito

azito wrote:



+-> Volume disk1s1 A7C82819-D719-3815-BE4A-118ED7CAAA67

| ---------------------------------------------------

| APFS Volume Disk (Role): disk1s1 (No specific role)

| Name: Macintosh HD (Case-insensitive)

| Mount Point: /

| Capacity Consumed: 224181374976 B (224.2 GB)

| Decryption Progress: 28.0% (Unlocked)

Recreate the GPT3 but do not run BCA till this decryption is complete.

Mistake deleting Bootcamp, now lost partition

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