Unofficial archive. This is a read-only, community-run archive of the Apple Support Community. It is not affiliated with or endorsed by Apple Inc.

Can't get rid of a windows partition? Help?

diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage Macintosh HD 499.1 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s6

4: Microsoft Reserved 16.8 MB disk0s5


/dev/disk1 (internal, virtual):

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD +498.7 GB disk1

Logical Volume on disk0s2

F92D742F-C9D6-4611-8E3F-3833BD61AF7C

Unencrypted


/dev/disk2 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: IR5_CCSA_X64FRE_SV-... *4.3 GB disk2


diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group 80863243-D781-49D9-8C86-9832F3A390A0

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

Name: Macintosh HD

Status: Online

Size: 499114930176 B (499.1 GB)

Free Space: 18968576 B (19.0 MB)

|

+-< Physical Volume EF4E5ABF-B78A-4937-9156-67EC37CC39E7

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

| Index: 0

| Disk: disk0s2

| Status: Online

| Size: 499114930176 B (499.1 GB)

|

+-> Logical Volume Family E29E4F71-4F06-4A9B-96A5-AC804651E7E2

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

Encryption Type: None

|

+-> Logical Volume F92D742F-C9D6-4611-8E3F-3833BD61AF7C

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

Disk: disk1

Status: Online

Size (Total): 498743640064 B (498.7 GB)

Revertible: Yes (no decryption required)

LV Name: Macintosh HD

Volume Name: Macintosh HD

Content Hint: Apple_HFS

10 replies

Also, when I try to install Windows 8.1 .. I get to the installation stage.. but at formatting the disk (boot camp disk) I get an error about some GPT Error ? Any idea what this is about? It looks something like this;


https://www.youtube.com/watch?v=xXpE4p7hMUQ&t=52


I also get an message and link in terminal that I have to do a "csrutil disable" to be able to do the thing as stated above to get over this GPT error when installing windows.


Another error that I have had is that Windows crashes after install. Im trying to install bootcamp drivers.. could it be the wrong versions?

sudo gpt -vv -r show /dev/disk0

Password:

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

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 976773167

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

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

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

976545792 227343

976773135 32 Sec GPT table


And,...


MacBook Pro (15-inch, Early 2011)

2 GHz Intel Core i7

8 GB 1333 MHz DDR3

Intel HD Graphics 3000 512 MB

macOS Sierra 10.12.5

The easiest method is Time Machine backup/erase/restore. If that is not possible, we will need GPT Fdisk and convert the 16.8MB to free space, coalesce it into a single 'fake' Microsoft Data partition, and let BC Assistant remove and enlarge the core OS X partition. Can you choose the process you want to follow?

I already installed GPT disk on this Mac. How can I convert the free space and remove it? I tried removing it in the utility disk but it won't let me. Also bootcamp doesn't work. It says The startup disk cannot be partitioned or restored to a single partition. The startup disk must be formatted as a single Mac OS Extended (Jounaled) volume or already partitioned bt Boot Camp Assistance for installing Windows.

diskutil list

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *500.1 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage Macintosh HD 499.1 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Microsoft Reserved 16.8 MB disk0s4


/dev/disk1 (internal, virtual):

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD +498.7 GB disk1

Logical Volume on disk0s2

F92D742F-C9D6-4611-8E3F-3833BD61AF7C

Unencrypted


The windows booting thing is still there.. but it says the disk needs to be repaired in the windows partition. I am guessing its EFI or the Microsoft reserved?

Erase the Microsoft Reserved (disk0s4) and create Free Space. The following command must be run only once otherwise you will lose data.


diskutil eraseVolume free free disk0s4


Some OS X versions return an error because the free space has no disk slice. After it completes, post the output of


sudo gpt -vv -r show /dev/disk0

sudo gpt -vv -r show /dev/disk0

Password:

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

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 976773167

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 00004000

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

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

976513024 260111

976773135 32 Sec GPT table

976773167 1 Sec GPT header

Using GPT Fdisk, we will create a 'fake' partition and use BC Assistant to reclaim the space. You need to disable SIP using Local Recovery (Command+R during reboot) and csrutil disable command.


Use the following Gdisk steps (do not enter test like this which explains the commands).


sudo gdisk /dev/disk0

x (Expert menu)

l (set sector alignment using "L" to...)

1 (one sector)

m (Main menu)

n (New)

4 (GPT4)

976513024 (Start)

+260111(Size, notice the "+" sign)

0700 (Microsoft Basic Data)

p (Print)

w (Write)

y (Confirm write)

q (Quit Gdisk, if necessary)


Run a repair disk to ensure the disk is synced with the GPT.


diskutil repairDisk disk0


Now reboot, and run BCA and click on Restore/Remove and Continue.

Please post the output of


sudo gpt -vv -r show /dev/disk0


What is the year/model of your Mac?

Can you reboot and post the output of diskutil list? I can give you commands and steps to correct the issue. It will take a few of steps.