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

Deleting Partition after unsuccessful windows installation

Greetings

I tried to install windows 8.1 using bootcamp assistance on my macbook pro retina. It downloaded all the necessary drivers, recognized my iso file and made partition successfully . but when it restarted computer no installation windows showed up. So I tried to repeat by bootcamp but it said that windows is installed so I only was able to remove windows. But it stuck when it was removing the partition and after that I cannot use devoted space to windows. I even tried disk utility but I am not able to delete partition the key is gray. So how can I delete that partition and use my hair drive as one partition.

Posted on Jun 3, 2015 4:24 AM

Reply
Question marked as Best reply

Posted on Jun 3, 2015 6:24 AM

Restart in Recovery Mode (hold command & R keys after you reboot). Once in recovery run Disk Utility. First see if you can delete the 2nd partition - that will be the Windows partition. Sometimes this can be done from recovery when it cannot be done from the Mac boot partition. If it fails here too then your only choice will be to repartition the drive (1 Mac partition) and then (hopefully) restore from a recent Mac backup.

5 replies
Question marked as Best reply

Jun 3, 2015 6:24 AM in response to prmjs

Restart in Recovery Mode (hold command & R keys after you reboot). Once in recovery run Disk Utility. First see if you can delete the 2nd partition - that will be the Windows partition. Sometimes this can be done from recovery when it cannot be done from the Mac boot partition. If it fails here too then your only choice will be to repartition the drive (1 Mac partition) and then (hopefully) restore from a recent Mac backup.

Jun 3, 2015 8:40 AM in response to prmjs

This is a tricky exercise with a CoreStorage volume. Can you post the output of the following Terminal commands?

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.

Jun 3, 2015 9:07 AM in response to Loner T

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *251.0 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage 159.4 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD *159.0 GB disk1

Logical Volume on disk0s2

A4694DD7-A6DC-45BF-94F2-99830002C0E4

Unencrypted

Javads-MacBook-Pro:~ javad$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group BE9F36A6-814D-482E-A689-B4B9B5890077

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

Name: Macintosh HD

Status: Online

Size: 159361245184 B (159.4 GB)

Free Space: 8921088 B (8.9 MB)

|

+-< Physical Volume 287BCC1F-4549-4B37-9354-03CA2A599BED

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

| Index: 0

| Disk: disk0s2

| Status: Online

| Size: 159361245184 B (159.4 GB)

|

+-> Logical Volume Family 8F0FC88B-1512-40B2-8ADF-002B319A6147

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

Encryption Status: Unlocked

Encryption Type: None

Conversion Status: NoConversion

Conversion Direction: -none-

Has Encrypted Extents: No

Fully Secure: No

Passphrase Required: No

|

+-> Logical Volume A4694DD7-A6DC-45BF-94F2-99830002C0E4

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

Disk: disk1

Status: Online

Size (Total): 159000002560 B (159.0 GB)

Conversion Progress: -none-

Revertible: Yes (no decryption required)

LV Name: Macintosh HD

Volume Name: Macintosh HD

Content Hint: Apple_HFS

Javads-MacBook-Pro:~ javad$ sudo gpt -vv -r show /dev/disk0

Password:

Sorry, try again.

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

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

312931608 177303111

490234719 32 Sec GPT table

490234751 1 Sec GPT header

Jun 3, 2015 9:55 AM in response to prmjs

The Gap after GPT3 is all your free space. As dwb suggests, here are the steps. You will need a Time Capsule or an external TB/FW/USB drive which is roughly 1.5 times the disk space that you have allocated in OSX.


1. Back up OSX using Time Machine - Mac Basics: Time Machine backs up your Mac - Apple Support.

2. Boot into Internet Recovery - OS X: About OS X Recovery - Apple Support.

3. Erase your internal drive and restore from the TM backup in Step 1 - OS X Yosemite: Recover your entire system.


Please be aware that TM does not backup Bootcamp partitions.


There is also a Terminal method using diskutil commands, which requires merging partitions (which also causes Recovery HD to be temporarily lost). Recovery HD can be rebuilt by reinstalling the current version of OSX after the merge operations are complete.


The first method requires more time, but minimizes chances of human error.

Deleting Partition after unsuccessful windows installation

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