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.

Repairing bootcamp after making new partition

Hello, I'm new for mac and OS X. so i need some help please


I have Macbook 13 OX S 10.11.2 and windows 10. I make a new partition to share files between this 2 system but after that i could not enter my windows ( windows showing an error asking me to repair or put CD or USB )

I hope I can get help here ..


User uploaded fileUser uploaded fileUser uploaded fileUser uploaded file

OS X El Capitan (10.11.2)

Posted on Dec 18, 2015 12:31 PM

Reply
60 replies

Dec 19, 2015 7:41 PM in response to Loner T

Tamouhs-MacBook-Pro:~ tamouhadla$ sudo fdisk /dev/disk0

Password:

Disk: /dev/disk0 geometry: 30515/255/63 [490234752 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 - 244865632] <Unknown ID>

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

4: 0B 1023 254 63 - 1023 254 63 [ 363732992 - 126500864] Win95 FAT-32

Tamouhs-MacBook-Pro:~ tamouhadla$


Please check it.

Dec 19, 2015 7:50 PM in response to Tamouh A

Tamouh A wrote:


Disk: /dev/disk0 geometry: 30515/255/63 [490234752 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 - 244865632] <Unknown ID>

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

4: 0B 1023 254 63 - 1023 254 63 [ 363732992 - 126500864] Win95 FAT-32


And your GPT is

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

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

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

246544808 117188184

363732992 126500864 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

so it does match. We need to delete the MBR, if we need to run the EFI Boot.


Do you have Gdisk installed? If yes, then (do not enter anything inside the parenthesis which is an explanation)


sudo gdisk /dev/disk0

x (Experts menu..)

n (create a new protective MBR)

o (print the MBR)

w (write)

y (confirm write)


Reboot and try your EFI Boot.

Dec 19, 2015 8:12 PM in response to Loner T

Please check this



Tamouhs-MacBook-Pro:~ tamouhadla$ sudo gdisk /dev/disk0

Password:

GPT fdisk (gdisk) version 1.0.1


Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

NOTE: Write test failed with error number 1. It will be impossible to save

changes to this disk's partition table!

You may need to deactivate System Integrity Protection to use this program. See

https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11

for more information.


Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present


Found valid GPT with hybrid MBR; using GPT.


Command (? for help): x


Expert command (? for help): n


Expert command (? for help): o


Disk size is 490234752 sectors (233.8 GiB)

MBR disk identifier: 0x00000000

MBR partitions:


Number Boot Start Sector End Sector Status Code

1 1 490234751 primary 0xEE


Expert command (? for help): w


Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING

PARTITIONS!!


Do you want to proceed? (Y/N): y

OK; writing new GUID partition table (GPT) to /dev/disk0.

Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Unable to open device '/dev/disk0' for writing! Errno is 1! Aborting write!


Expert command (? for help):



I guess it's fails because I need to deactivate System Integrity Protection. should i follow the steps here "https://www.quora.com/How-do-I-turn-off-the-rootless-in-OS-X-El-Capitan-10-11"

Thanks

Dec 20, 2015 9:12 AM in response to Loner T

Tamouhs-MacBook-Pro:~ tamouhadla$ diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *251.0 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage Macintosh HD 125.4 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Reserved 16.8 MB disk0s4

5: Microsoft Basic Data BOOTCAMP 60.0 GB disk0s5

6: Microsoft Basic Data ALLFILES 64.8 GB disk0s6

/dev/disk1 (internal, virtual):

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD +125.0 GB disk1

Logical Volume on disk0s2

97BB6DDF-8164-4B66-B79B-1D7F8D4E7AC4

Unencrypted

/dev/disk2 (external, physical):

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *8.0 GB disk2

1: DOS_FAT_32 NO NAME 8.0 GB disk2s1

Tamouhs-MacBook-Pro:~ tamouhadla$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group 8846EEFC-396A-476F-857B-8FE68592319F

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

Name: Macintosh HD

Status: Online

Size: 125371203584 B (125.4 GB)

Free Space: 0 B (0 B)

|

+-< Physical Volume 62E03267-742E-4D72-9988-25C08928FF67

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

| Index: 0

| Disk: disk0s2

| Status: Online

| Size: 125371203584 B (125.4 GB)

|

+-> Logical Volume Family B0582EE2-D684-40B5-A9C8-BB608E57F1BF

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

Encryption Type: None

|

+-> Logical Volume 97BB6DDF-8164-4B66-B79B-1D7F8D4E7AC4

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

Disk: disk1

Status: Online

Size (Total): 125018882048 B (125.0 GB)

Revertible: Yes (no decryption required)

LV Name: Macintosh HD

Volume Name: Macintosh HD

Content Hint: Apple_HFS

Tamouhs-MacBook-Pro:~ tamouhadla$ sudo gpt -vv -r show /dev/disk0

Password:

gpt show: /dev/disk0: mediasize=251000193024; sectorsize=512; blocks=490234752

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 490234751

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

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

246544808 1624

246546432 32768 4 GPT part - E3C9E316-0B5C-4DB8-817D-F92DF00215AE

246579200 117153792 5 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

363732992 126500864 6 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

490233856 863

490234719 32 Sec GPT table

490234751 1 Sec GPT header

Tamouhs-MacBook-Pro:~ tamouhadla$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 30515/255/63 [490234752 sectors]

Signature: 0xAA55

Starting Ending

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

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

1: EE 0 0 2 - 1023 255 63 [ 1 - 490234751] <Unknown ID>

2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused

Tamouhs-MacBook-Pro:~ tamouhadla$

Dec 20, 2015 12:04 PM in response to Tamouh A

Your OSX Partition is a CoreStorage volume (disk1). There are no Windows drivers provided by Apple to read CS volumes. However, if you must see the OSX partition, the current state can be reverted.

Revertible: Yes (no decryption required)

If you want to test, ,please run the following command.


diskutil cs revert disk1


We use disk1 which is the CS volume, not disk0s2 which is the underlying physical disk.

Jan 25, 2016 6:02 AM in response to Loner T

Loner T, I see you have extensive knowledge concerning the topic, and I wish you could help me with a similar problem.

fyi I'm on El Capitan.

I installed windows 10 via bootcamp, without any external drives, on my 256GB ssd. I then used disk utitlity to create a shared partition by shrinking the OSX partition. After that, when I boot into windows it shows me the recovery screen, like Tamouh A's. As I said, I'm not familiar with the topic, so please, help me with each step.

Thanks.

Repairing bootcamp after making new partition

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