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.

0x80070057 error when trying to format bootcamp partition.

I'm trying to install windows 10 on my mid 2012 macbook pro. I had win 10 on the macbook previously but decided to re partition the hard drive. Big mistake.


So I've made an boot flash drive with support software, partitioned the hard drive, and booted into windows installer. I skip the product key as my hardware is already registered. I go to format the bootcamp partition and windows says they cannot format it. Error code 0x80070057. I am stumped...

MacBook Pro, OS X Yosemite (10.10.5)

Posted on Sep 22, 2015 4:08 PM

Reply
10 replies

Sep 22, 2015 6:03 PM in response to pugas

Let us check your partitions. Please post the output of following commands from OS X Terminal.


diskutil list

diskutil cs list

sudo gpt -vv -r show /dev/disk0

sudo fdisk /dev/disk0


The "sudo" commands will prompt for your password, and it will not be echoed back. You may also see a warning about improper use of "sudo" and potential data loss due to "abuse" of the command.

Sep 22, 2015 7:51 PM in response to Loner T

TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage 250.2 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data BOOTCAMP 249.0 GB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD *249.9 GB disk1

Logical Volume on disk0s2

BCDE07BD-D34F-4E24-BB11-4A003D0FC6B2

Unencrypted

Erics-MacBook-Pro-2:~ Eric$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group F22D6194-DAA1-4A21-98FF-0D9250BE6FE7

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

Name: Macintosh HD

Status: Online

Size: 250248101888 B (250.2 GB)

Free Space: 18972672 B (19.0 MB)

|

+-< Physical Volume BF963C6D-BB12-4C0B-A98F-E86AD1BFF251

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

| Index: 0

| Disk: disk0s2

| Status: Online

| Size: 250248101888 B (250.2 GB)

|

+-> Logical Volume Family 0384EA45-6A22-498A-A46A-CFFB7364B137

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

Encryption Status: Unlocked

Encryption Type: None

Conversion Status: NoConversion

Conversion Direction: -none-

Has Encrypted Extents: No

Fully Secure: No

Passphrase Required: No

|

+-> Logical Volume BCDE07BD-D34F-4E24-BB11-4A003D0FC6B2

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

Disk: disk1

Status: Online

Size (Total): 249876807680 B (249.9 GB)

Conversion Progress: -none-

Revertible: Yes (no decryption required)

LV Name: Macintosh HD

Volume Name: Macintosh HD

Content Hint: Apple_HFS

Erics-MacBook-Pro-2:~ Eric$ sudo gpt -vv -r show /dev/disk0


gpt show: /dev/disk0: mediasize=500107862016; sectorsize=512; blocks=976773168

gpt show: /dev/disk0: Suspicious MBR at sector 0

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

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

start size index contents

0 1 MBR

1 1 Pri GPT header

2 32 Pri GPT table

34 6

40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

409640 488765824 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

489175464 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC

490445000 1848

490446848 486326272 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

976773120 15

976773135 32 Sec GPT table

976773167 1 Sec GPT header

Sep 23, 2015 5:58 AM in response to Loner T

Erics-MBP-2:~ Eric$ fdisk

usage: fdisk [-ieu] [-f mbrboot] [-c cyl -h head -s sect] [-S size] [-r] [-a style] disk

-i: initialize disk with new MBR

-u: update MBR code, preserve partition table

-e: edit MBRs on disk interactively

-f: specify non-standard MBR template

-chs: specify disk geometry

-S: specify disk size

-r: read partition specs from stdin (implies -i)

-a: auto-partition with the given style

-d: dump partition table

-y: don't ask any questions

-t: test if disk is partitioned

`disk' is of the form /dev/rdisk0.

auto-partition styles:

boothfs 8Mb boot plus HFS+ root partition (default)

hfs Entire disk as one HFS+ partition

dos Entire disk as one DOS partition

raid Entire disk as one 0xAC partition

Erics-MBP-2:~ Eric$

Sep 23, 2015 6:00 AM in response to pugas

Disk: /dev/disk0 geometry: 60801/255/63 [976773168 sectors]

Signature: 0xAA55

Starting Ending

#: id cyl hd sec - cyl hd sec [ start - size]

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

1: EE 1023 254 63 - 1023 254 63 [ 1 - 409639] <Unknown ID>

2: AC 1023 254 63 - 1023 254 63 [ 409640 - 488765824] <Unknown ID>

3: AB 1023 254 63 - 1023 254 63 [ 489175464 - 1269536] Darwin Boot

4: 0B 1023 254 63 - 1023 254 63 [ 490446848 - 486326272] Win95 FAT-32

Erics-MBP-2:~ Eric$

Sep 24, 2015 9:21 PM in response to Loner T

I tried reseting the SMC and NVRAM. No Luck. Here is the output of 1.


Last login: Thu Sep 24 23:17:24 on console

Erics-MacBook-Pro-2:~ Eric$ 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 the EFI system partition's size

Checking the EFI system partition's file system

Checking the EFI system partition's folder content

Checking all HFS data partition loader spaces

Checking booter partitions

Checking booter partition disk0s3

Repairing file system

Checking Journaled HFS Plus volume

Checking extents overflow file

Checking catalog file

Checking multi-linked files

Checking catalog hierarchy

Checking extended attributes file

Checking volume bitmap

Checking volume information

The volume Recovery HD appears to be OK

File system check exit code is 0

Updating boot support partitions for the volume as required

Reviewing boot support loaders

Checking Core Storage Physical Volume partitions

Verifying storage system

Checking volume

disk0s2: Scan for Volume Headers

disk0s2: Scan for Disk Labels

Logical Volume Group F22D6194-DAA1-4A21-98FF-0D9250BE6FE7 on 1 device

disk0s2: Scan for Metadata Volume

Logical Volume Group has a 24 MB Metadata Volume with double redundancy

Start scanning metadata for a valid checkpoint

Load and verify Segment Headers

Load and verify Checkpoint Payload

Load and verify Transaction Segment

Incorporate 0 newer non-checkpoint transactions

Load and verify Virtual Address Table

Load and verify Segment Usage Table

Load and verify Metadata Superblock

Load and verify Logical Volumes B-Trees

Logical Volume Group contains 1 Logical Volume

Load and verify 0384EA45-6A22-498A-A46A-CFFB7364B137

Load and verify BCDE07BD-D34F-4E24-BB11-4A003D0FC6B2

Load and verify Freespace Summary

Load and verify Block Accounting

Load and verify Live Virtual Addresses

Newest transaction commit checkpoint is valid

Load and verify Segment Cleaning

The volume F22D6194-DAA1-4A21-98FF-0D9250BE6FE7 appears to be OK

Storage system check exit code is 0

Repairing storage system

The volume disk0s2 cannot be repaired when it is in use

Checking volume

disk0s2: Scan for Volume Headers

disk0s2: Scan for Disk Labels

Logical Volume Group F22D6194-DAA1-4A21-98FF-0D9250BE6FE7 on 1 device

disk0s2: Scan for Metadata Volume

Logical Volume Group has a 24 MB Metadata Volume with double redundancy

Start scanning metadata for a valid checkpoint

Load and verify Segment Headers

Load and verify Checkpoint Payload

Load and verify Transaction Segment

Incorporate 0 newer non-checkpoint transactions

Load and verify Virtual Address Table

Load and verify Segment Usage Table

Load and verify Metadata Superblock

Load and verify Logical Volumes B-Trees

Logical Volume Group contains 1 Logical Volume

Load and verify 0384EA45-6A22-498A-A46A-CFFB7364B137

Load and verify BCDE07BD-D34F-4E24-BB11-4A003D0FC6B2

Load and verify Freespace Summary

Load and verify Block Accounting

Load and verify Live Virtual Addresses

Newest transaction commit checkpoint is valid

Load and verify Segment Cleaning

The volume F22D6194-DAA1-4A21-98FF-0D9250BE6FE7 appears to be OK

Storage system check exit code is 0

Updating Windows boot.ini files as required

The partition map appears to be OK

Finished partition map repair on disk0

Erics-MacBook-Pro-2:~ Eric$

Sep 25, 2015 4:07 AM in response to pugas

If your disk repair worked, run the SMC Reset/NVRAM Reset, remove Windows, and run the BC/W10 installer again.


Please also see https://support.microsoft.com/en-us/kb/2476568 . Based on your partition information, it looks clean.


Can you look at Can't resize Macintosh HD partition and look at the discussion regarding mounting EFI partition. We should look at what is in your EFI partition, because we cannot remove the SR partition as shown in the M$ link. There is a scenario where the EFI partition gets used as a SR partition as shown in the linked discussion.

0x80070057 error when trying to format bootcamp partition.

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