bootcamp failed and cannot restore the partition

I was installing windows 10 and after it finished there was a popup saying bootcamp something is to be installed...i clicked yes and soon my screen turned black and never came back...i restarted my mac and it says windows has problem and keeps going to automatic repair mode without solution. I went back to Mac OS and try to delete windows and restore partition with bootcamp and disk utility...all failed...


Please can anyone help me restore the partition? bootcamp is terrible and I will not try installing windows on my Mac again...so frustrating...


Thank you for helping me!~~


+-- Container disk1 444D9FAB-E761-42A2-BB83-A169C6158B7C


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


    APFS Container Reference:     disk1


    Size (Capacity Ceiling):      389000699904 B (389.0 GB)


    Capacity In Use By Volumes:   201022918656 B (201.0 GB) (51.7% used)


    Capacity Not Allocated:       187977781248 B (188.0 GB) (48.3% free)


    |


    +-< Physical Store disk0s2 2C14E298-2843-49E6-8E47-E68A1E7B28ED


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


    |   APFS Physical Store Disk:   disk0s2


    |   Size:                       389000699904 B (389.0 GB)


    |


    +-> Volume disk1s1 9A131913-6993-4D40-9B65-ADE934F02D7B


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


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


    |   Name:                      Macintosh HD (Case-insensitive)


    |   Mount Point:               /


    |   Capacity Consumed:         199239593984 B (199.2 GB)


    |   FileVault:                 Yes (Unlocked)


    |


    +-> Volume disk1s2 45E0B273-1CE2-442D-B8C1-1B7052F4449D


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


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


    |   Name:                      Preboot (Case-insensitive)


    |   Mount Point:               Not Mounted


    |   Capacity Consumed:         47964160 B (48.0 MB)


    |   FileVault:                 No


    |


    +-> Volume disk1s3 CAAA732B-D058-4E7D-9E17-C582CAB8B0FA


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


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


    |   Name:                      Recovery (Case-insensitive)


    |   Mount Point:               Not Mounted


    |   Capacity Consumed:         510394368 B (510.4 MB)


    |   FileVault:                 No


    |


    +-> Volume disk1s4 F46BD74D-E926-477B-9A80-88EE6CEB37EE


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


        APFS Volume Disk (Role):   disk1s4 (VM)


        Name:                      VM (Case-insensitive)


        Mount Point:               /private/var/vm


        Capacity Consumed:         1073762304 B (1.1 GB)


        FileVault:                 No (Encrypted at rest)

MacBook

Posted on Sep 28, 2019 8:42 AM

Reply

Similar questions

13 replies

Sep 28, 2019 1:11 PM in response to lifromthornhill

lifromthornhill wrote:

magic!!yes the disk space is back!

Excellent!

one last problem. my macbook now does not reboot automatically into Mac Os when I restart it...if I don't press the option key and choose Mac Os it will simply be left in black...iz there any cleaning work to be done?

Let us try the simple solution first. Run the following two steps


How to reset the System Management Controller (SMC) on your Mac - Apple Support

Reset NVRAM or PRAM on your Mac - Apple Support


If that does not correct it, then we need to look at your EFI partition.

Sep 28, 2019 9:08 AM in response to lifromthornhill

here is diskutil list


/dev/disk0 (internal):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      GUID_partition_scheme                         500.3 GB   disk0


   1:                        EFI EFI                     314.6 MB   disk0s1


   2:                 Apple_APFS Container disk1         389.0 GB   disk0s2


   3:       Microsoft Basic Data                         111.0 GB   disk0s4




/dev/disk1 (synthesized):


   #:                       TYPE NAME                    SIZE       IDENTIFIER


   0:      APFS Container Scheme -                      +389.0 GB   disk1


                                 Physical Store disk0s2


   1:                APFS Volume Macintosh HD            199.3 GB   disk1s1


   2:                APFS Volume Preboot                 48.0 MB    disk1s2


   3:                APFS Volume Recovery                510.4 MB   disk1s3


   4:                APFS Volume VM                      1.1 GB     disk1s4

Sep 28, 2019 9:46 AM in response to Loner T

thank for your help~


now after reboot, the windows partition disappeared...110G lost...

the output you requested:


Lis-MacBook-Pro:~ lichen$ sudo fsck_apfs -n -l /dev/rdisk1


Password:


Sorry, try again.


Password:


dev_init:607: Using /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/fsck_apfs.778.1/apfs and /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/fsck_apfs.778.1/nx for device-io.


dev_init:607: Using /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/fsck_apfs.778.4/apfs and /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/fsck_apfs.778.4/nx for device-io.


** Checking the container superblock.


** Checking the EFI jumpstart record.


** Checking the space manager.


** Checking the space manager free queue trees.


** Checking the object map.


** Checking volume.


** Checking the APFS volume superblock.


** The volume Macintosh HD was formatted by newfs_apfs (945.200.84) and last modified by apfs_kext (945.275.7).


** 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.


** The volume Preboot was formatted by newfs_apfs (748.77.4) and last modified by apfs_kext (945.275.7).


** 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.


** The volume Recovery was formatted by newfs_apfs (748.77.4) and last modified by apfs_kext (945.275.7).


** 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.


** The volume VM was formatted by apfs.util (945.241.4) and last modified by apfs_kext (945.275.7).


** 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.


** The volume /dev/rdisk1 appears to be OK.


Lis-MacBook-Pro:~ lichen$ 

Sep 28, 2019 11:28 AM in response to Loner T

here is the result



Last login: Sat Sep 28 13:39:18 on ttys000


Lis-MacBook-Pro:~ lichen$ diskutil apfs resizeContainer disk1 0g


Started APFS operation


Aligning grow delta to 110,962,475,008 bytes and targeting a new physical store size of 499,963,174,912 bytes


Determined the maximum size for the targeted physical store of this APFS Container to be 499,962,146,816 bytes


Resizing APFS Container designated by APFS Container Reference disk1


The specific APFS Physical Store being resized is disk0s2


Verifying storage system


Using live mode


Performing fsck_apfs -n -x -l -S /dev/disk0s2


Checking the container superblock


Checking the EFI jumpstart record


Checking the space manager


Checking the space manager free queue trees


Checking the object map


Checking volume


Checking the APFS volume superblock


The volume Macintosh HD was formatted by newfs_apfs (945.200.84) and last modified by apfs_kext (945.275.7)


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


The volume Preboot was formatted by newfs_apfs (748.77.4) and last modified by apfs_kext (945.275.7)


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


The volume Recovery was formatted by newfs_apfs (748.77.4) and last modified by apfs_kext (945.275.7)


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


The volume VM was formatted by apfs.util (945.241.4) and last modified by apfs_kext (945.275.7)


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


The volume /dev/disk0s2 appears to be OK


Storage system check exit code is 0


Growing APFS Physical Store disk0s2 from 389,000,699,904 to 499,963,174,912 bytes


Modifying partition map


Growing APFS data structures


Finished APFS operation


Lis-MacBook-Pro:~ lichen$ sudo fsck_apfs -n -l /dev/rdisk1


Password:


dev_init:607: Using /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/fsck_apfs.1106.1/apfs and /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/fsck_apfs.1106.1/nx for device-io.


dev_init:607: Using /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/fsck_apfs.1106.4/apfs and /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/fsck_apfs.1106.4/nx for device-io.


** Checking the container superblock.


** Checking the EFI jumpstart record.


** Checking the space manager.


** Checking the space manager free queue trees.


** Checking the object map.


** Checking volume.


** Checking the APFS volume superblock.


** The volume Macintosh HD was formatted by newfs_apfs (945.200.84) and last modified by apfs_kext (945.275.7).


** 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.


** The volume Preboot was formatted by newfs_apfs (748.77.4) and last modified by apfs_kext (945.275.7).


** 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.


** The volume Recovery was formatted by newfs_apfs (748.77.4) and last modified by apfs_kext (945.275.7).


** 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.


** The volume VM was formatted by apfs.util (945.241.4) and last modified by apfs_kext (945.275.7).


** 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.


** The volume /dev/rdisk1 appears to be OK.


Lis-MacBook-Pro:~ lichen$ 

Sep 28, 2019 12:01 PM in response to lifromthornhill

lifromthornhill wrote:

here is the result


Last login: Sat Sep 28 13:39:18 on ttys000

Lis-MacBook-Pro:~ lichen$ diskutil apfs resizeContainer disk1 0g
...

Growing APFS Physical Store disk0s2 from 389,000,699,904 to 499,963,174,912 bytes

Modifying partition map

Growing APFS data structures

Finished APFS operation

Nice!

Lis-MacBook-Pro:~ lichen$ sudo fsck_apfs -n -l /dev/rdisk1

** Checking the fsroot tree.

** Verifying allocated space.

** The volume /dev/rdisk1 appears to be OK.

Lis-MacBook-Pro:~ lichen$ 

You should have your full disk space in macOS. Can you check?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

bootcamp failed and cannot restore the partition

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