You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

cannot install windows, boot camp keeps failing

I always have this issue with boot camp, I went thought support before and we tried everything ending up having to use Terminal to create install windows.

I always get this error that the partition could not be created within boot camp and to use disk utility to check the disk. Disk utility just says everything is ok. But it does say that one of the images ccould not be checked there is some sort of error.


I have a pretty old macbook from 2013, but I DID have boot camp working and windows installed at one point. I just want to be able to get my head around this and get it installed myself.


Anyway have any idea how I can do that? Seems I have to go around boot camp and use terminal to do so, always get this disk error. Have no idea why.


Here is what disk utility says:


Running First Aid on “Container disk1”


NOTE: First Aid will temporarily lock the startup volume.


Verifying storage system

Using live mode.

Performing fsck_apfs -n -x -l /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 Untitled was formatted by hfs_convert (945.250.134) and last modified by apfs_kext (945.275.9).

Checking the object map.

Checking the snapshot metadata tree.

Checking the snapshot metadata.

Checking snapshot 1 of 1.

error: drec_key object (oid 0x3000de4c3): invalid hash (0, expected 2822d6) of name (0022553ac04f62d8_0)

Snapshot is invalid.

The volume /dev/disk0s2 could not be verified completely.

Storage system check exit code is 0.


Operation successful.



MacBook Pro 15″, macOS 10.14

Posted on Jul 13, 2020 10:02 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 14, 2020 11:57 AM

HI!!

Actually i just wiped my computer and reinstalled MAC OSX AND IT WORKED!!!

I am typing this in windows..

I guess it was just simpler than I thought which makes me wonder why I didn't get this easily working when I tried before I guess I didn't wipe the HD correctly.

I just erased my disk in disk utility, and installed mojave fresh then instantly installed bootcamp and it worked... Now I can simply restore the files and applications needed from my time machine back up...


Thanks so much for your help...

:-)

Similar questions

15 replies
Question marked as Top-ranking reply

Jul 14, 2020 11:57 AM in response to Loner T

HI!!

Actually i just wiped my computer and reinstalled MAC OSX AND IT WORKED!!!

I am typing this in windows..

I guess it was just simpler than I thought which makes me wonder why I didn't get this easily working when I tried before I guess I didn't wipe the HD correctly.

I just erased my disk in disk utility, and installed mojave fresh then instantly installed bootcamp and it worked... Now I can simply restore the files and applications needed from my time machine back up...


Thanks so much for your help...

:-)

Jul 14, 2020 11:36 AM in response to indexbeats

Your issue is APFS corruption.


Originally...


Checking snapshot 1 of 1.
error: drec_key object (oid 0x3000de4c3): invalid hash (0, expected 2822d6) of name (0022553ac04f62d8_0)
Snapshot is invalid.


and after deletion of snapshots...


Checking the fsroot tree.
error: drec_key object (oid 0x3000de4c3): invalid hash (0, expected 2822d6) of name (0022553ac04f62d8_0)
fsroot tree is invalid.


Notice the OID, Hash and Name is the same in both error messages.


Do you have a Time Machine backup? If not, can you create one now?


See Back up your Mac with Time Machine - Apple Support for reference.


indexbeats wrote:

I don't understand why its so ridiculously complicated and no one seems to be able to help me. Or even understand what the issue is. I had to be on the phone with several tech people then they escalated so I could speak with an engineer and they had to talk me through doing this all in Terminal and it was the only way it worked!! :(

Did it work? Are you able to create a partition?

Makes me wanna get a pc again....

Yes, that is definitely an option. 🚮

Jul 13, 2020 11:24 AM in response to Loner T

Hi I am new to Mac as I grew up with MS DOS and Windows. I do not know what you mean by trailing "/".

I have put this input into the terminal these are the results:


Last login: Mon Jul 13 17:56:25 on console

Ds-MacBook-Pro:~ d$ diskutil apfs listsnapshots /

Snapshots for disk1s1 (2 found)

|

+-- Name: com.apple.TimeMachine.2020-07-13-162307

|  XID: 2305090

|

+-- Name: com.apple.TimeMachine.2020-07-13-190447

  XID: 2307220

  NOTE: This snapshot sets the minimal allowed size of APFS Container disk1

Ds-MacBook-Pro:~ d$ 














Jul 14, 2020 2:02 AM in response to Loner T

Hi thank but are you sure that these snapshots are the problem? Because this problem has lasted a long time, way before today. This always happens when I try to install windows.

I am pretty sure we tried this before, deleting the snapshots and it did not help.

I will try it again.. But I will not lose any information from my Time machine?


Also why would these create an issue with partitioning my disk?


I really want to understand the file system better on mac os x as I am an advanced user on ms-dos based systems which seem much simpler to me. I do not understand why on mac osx there are virtual drives within virtual drives...


I read somewhere that older macs like mine are prone to some file system error that makes boot camp fail.

It seems this way as even after completely reinstalling the OS we still could not get boot camp to work and we had to use Terminal to partition, then boot camp to finish the job.


I will try deleting those snapshots...


Jul 14, 2020 5:19 AM in response to Loner T

I did not run this previously...


Ds-MacBook-Pro:~ d$ fsck_apfs

usage: fsck_apfs [ [-q | -n | -y] [-l] [-s] [-S] [-o] ] device

    -q      quick check if the superblock and checkpoint superblock are valid.

    -n      verify only (answer "no" to questions)

    -y      always repair (answer "yes" to questions)

    -l      live fsck (lock down for verify-only)

    -s      print space verification summary

    -S      skip iteration of snapshots, although no repairs can be made.

    -o      repair overallocations; please do not run an older fsck_apfs on newer systems with this option

Ds-MacBook-Pro:~ d$ 

Jul 14, 2020 6:01 AM in response to indexbeats

I just tried to partition it within Disk Utility to create a MS-Dos partition and this also failed!! :(


Partitioning disk “APPLE SSD SM0512F Media” (disk0)


Running operation 1 of 2: Add “Windows 10” 83.22 GB by splitting “Untitled” (disk0s2) from 500.07 GB to 416.85 GB…

Aligning shrink delta to 83,222,724,608 bytes and targeting a new physical store size of 416,845,312,000 bytes

Determined the minimum size for the targeted physical store of this APFS Container to be 336,014,082,048 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 Untitled was formatted by hfs_convert (945.250.134) and last modified by apfs_kext (945.275.9).

Checking the object map.

Checking the snapshot metadata tree.

Checking the snapshot metadata.

Checking the extent ref tree.

Checking the fsroot tree.

error: drec_key object (oid 0x3000de4c3): invalid hash (0, expected 2822d6) of name (0022553ac04f62d8_0)

fsroot tree is invalid.

The volume /dev/disk0s2 could not be verified completely.

Storage system check exit code is 0.

Shrinking APFS Physical Store disk0s2 from 500,068,036,608 to 416,845,312,000 bytes

Shrinking APFS data structures

APFS Container Resize error code is 49187

A problem occurred while resizing APFS Container structures.


Operation failed…


Jul 14, 2020 6:24 AM in response to indexbeats

I don't understand why its so ridiculously complicated and no one seems to be able to help me. Or even understand what the issue is. I had to be on the phone with several tech people then they escalated so I could speak with an engineer and they had to talk me through doing this all in Terminal and it was the only way it worked!! :(


Makes me wanna get a pc again....

cannot install windows, boot camp keeps failing

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