Apple Event: May 7th at 7 am PT

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

Repairing bootcamp after extending Windows partition

Hallo


I have a Mac air with windows on it.


I was extending the partition for windows, first by allocating 10 gb from mac, I then wanted to open windows and locate the 10 gb there, but could not open windows , the error that occur was "missing operation".


when i use the following solution:


sudo fdisk -e /dev/disk0s4

p

setpid 4

07

flag 4

p

write

y

after "sudo fdisk -e /dev/disk0s4" its says "resource Busy"

when i try to active the disk and the partition in windows repair utility, its tells me "ACTIVE kan only be used on MBR disk"

Sorry for my bad English, i really hope someone can help.

MacBook Air, OS X El Capitan (10.11.3), Windows 7 Pro N

Posted on Feb 5, 2016 5:01 AM

Reply
35 replies

Feb 8, 2016 2:11 PM in response to Loner T

When i try to use 2 3 4 i get.



Last login: Mon Feb 8 23:02:34 on ttys000

Jibrils-MacBook-Air:~ jibril_syed$ sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C

Jibrils-MacBook-Air:~ jibril_syed$ sudo gdisk /dev/rdisk0

GPT fdisk (gdisk) version 1.0.1



Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present



Found valid GPT with hybrid MBR; using GPT.



Command (? for help): p

Disk /dev/rdisk0: 236978176 sectors, 113.0 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 462AC483-8071-4B8B-B472-80EB6D5DA439

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 236978142

Partitions will be aligned on 8-sector boundaries

Total free space is 3773 sectors (1.8 MiB)



Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 121743879 57.9 GiB AF00 Macintosh

3 121743880 123013415 619.9 MiB AB00 Recovery HD

5 123015168 236976127 54.3 GiB 0700 BOOTCAMP



Command (? for help): r



Recovery/transformation command (? for help): o



Disk size is 236978176 sectors (113.0 GiB)

MBR disk identifier: 0x84B5DD92

MBR partitions:



Number Boot Start Sector End Sector Status Code

1 1 121743879 primary 0xEE

2 121743880 123013415 primary 0xAB

4 * 123015168 236976127 primary 0x07



Recovery/transformation command (? for help): h



WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,

just hit the Enter key at the below prompt and your MBR partition table will

be untouched.



Type from one to three GPT partition numbers, separated by spaces, to be

added to the hybrid MBR, in sequence: 2 3 4

Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y



Creating entry for GPT partition #2 (MBR partition #2)

Enter an MBR hex code (default AF):

Set the bootable flag? (Y/N): n



Creating entry for GPT partition #3 (MBR partition #3)

Enter an MBR hex code (default AB):

Set the bootable flag? (Y/N): n



GPT partition #4 does not exist or is too big; skipping.



Unused partition space(s) found. Use one to protect more partitions? (Y/N):


i cant get the output off "sudo dd if=/dev/rdisk0s4 count=1 2>/dev/null | hexdump -C"


??

Feb 8, 2016 2:17 PM in response to JIB BER

The following shows 2 3 5. You do not have 4. Can you reboot and check if they are corrected to be in order and sequential.


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 121743879 57.9 GiB AF00 Macintosh

3 121743880 123013415 619.9 MiB AB00 Recovery HD

5 123015168 236976127 54.3 GiB 0700 BOOTCAMP

Feb 8, 2016 2:44 PM in response to Loner T

I just rebooted, it still shows this:


Last login: Mon Feb 8 23:41:11 on console

Jibrils-MacBook-Air:~ jibril_syed$ sudo gdisk /dev/rdisk0

Password:

GPT fdisk (gdisk) version 1.0.1


Warning: Devices opened with shared lock will not have their

partition table automatically reloaded!

Partition table scan:

MBR: hybrid

BSD: not present

APM: not present

GPT: present


Found valid GPT with hybrid MBR; using GPT.


Command (? for help): p

Disk /dev/rdisk0: 236978176 sectors, 113.0 GiB

Logical sector size: 512 bytes

Disk identifier (GUID): 462AC483-8071-4B8B-B472-80EB6D5DA439

Partition table holds up to 128 entries

First usable sector is 34, last usable sector is 236978142

Partitions will be aligned on 8-sector boundaries

Total free space is 3773 sectors (1.8 MiB)


Number Start (sector) End (sector) Size Code Name

1 40 409639 200.0 MiB EF00 EFI System Partition

2 409640 121743879 57.9 GiB AF00 Macintosh

3 121743880 123013415 619.9 MiB AB00 Recovery HD

5 123015168 236976127 54.3 GiB 0700 BOOTCAMP


Command (? for help):

Repairing bootcamp after extending Windows partition

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