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.

windows 10 operating system gives error after I add a new partition

Hey guys,

I have got a MacBook Air (13-inch, Early 2015) with processor 1,6 GHz Intel Core i5, memory 8 GB 160MHz DDR3 operating macOS Sierra Version 10.12.3


I have installed and been using Windows 10 on my Mac, however; I added an additional partition and now Windows gives an error and does not start-up. I have read loads of discussions, I have tried the solution that Loner T explained as following:


sudo fdisk -e /dev/disk0

p

setpid 4

07

flag 4

p

write

y


but when I type 'write' and press return key, terminal tells me that "fdisk: /dev/disk0: Operation not permitted"

What can I do about this? Can you please help me?

MacBook Air, macOS Sierra (10.12.3)

Posted on Feb 1, 2017 7:22 AM

Reply
30 replies

Feb 1, 2017 8:48 AM in response to Loner T

diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *121.3 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage Macintosh HD 59.0 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Basic Data File Trans 11.2 GB disk0s4

5: Microsoft Basic Data BOOTCAMP 50.1 GB disk0s5


/dev/disk1 (internal, virtual):

#: TYPE NAME SIZE IDENTIFIER

0: Macintosh HD +58.7 GB disk1

Logical Volume on disk0s2

79211509-BF91-429F-B859-AD3FF73108AC

Unlocked Encrypted


/dev/disk2 (external, physical):

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *8.0 GB disk2

1: DOS_FAT_32 B 8.0 GB disk2s1




sudo gpt -vv -r show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=121332826112; sectorsize=512; blocks=236978176

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 236978175

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 115240728 2 GPT part - 53746F72-6167-11AA-AA11-00306543ECAC

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

116919904 21905824 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

138825728 262144

139087872 97888256 5 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

236976128 2015

236978143 32 Sec GPT table

236978175 1 Sec GPT header




sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 14751/255/63 [236978176 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 - 115240728] <Unknown ID>

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

4: 07 1023 254 63 - 1023 254 63 [ 116919904 - 21905824] HPFS/QNX/AUX

Feb 1, 2017 11:15 PM in response to Loner T

sudo fdisk /dev/disk0

Password:

Disk: /dev/disk0 geometry: 14751/255/63 [236978176 sectors]

Signature: 0xAA55

Starting Ending

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

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

1: EE 0 0 2 - 1023 254 63 [ 1 - 115650367] <Unknown ID>

2: AB 1023 254 63 - 1023 254 63 [ 115650368 - 1269536] Darwin Boot

3: 07 1023 254 63 - 1023 254 63 [ 116919904 - 21905824] HPFS/QNX/AUX

*4: 07 1023 254 63 - 1023 254 63 [ 139087872 - 97888256] HPFS/QNX/AUX

Feb 5, 2017 9:17 AM in response to Berkusar

This is an expected error. We need to remove the MBR on the disk using GPT Fdisk (aka Gdisk) using the following steps. (Do not enter text like this).


sudo gdisk /dev/disk0

x (experts menu)

n (create a new protective MBR and remove the Hybrid MBR)

o (print the new MBR)

p (print the partition table)

w (write)

y (confirm write)


Reboot and try to install Windows by selecting EFI Boot from the USB.

windows 10 operating system gives error after I add a new partition

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