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

Deleted Partition made from Bootcamp with Disk Utility BIG MISTAKE

This was my first time setting up bootcamp to do a dual boot. I have an iMac 27 Late 2013 with a 1TB HD (NON fusion/Non SSD). I used bootcamp to partition 150gb for Windows. I went through the windows 8 setup however, there was a problem and I could not get Windows setup to progress. I didn't realize this was a NONO to delete the partition with Disk Utility. I did that and am now unable to enlarge my main partition back to the full 1TB. I have googled this issue and tried so many things to get my 1TB space back to my main partition. I really have tried everything I found on forums etc. I started getting desperate and started deleting partitions. My recovery partition is not even showing anymore however, I am still able to boot into recovery mode and the internet recovery mode as well. I have included a screenshot of my partitions. I have everything backed up on time machine (on an external hard drive attached) so I am not afraid to wipe this out and start over. My question is how do I proceed to restore all my patrons as they were back to factory? Can I do that? I only see one partition now and the free 150gb space. Thanks!User uploaded file

iMac (27-inch, Late 2013), OS X Yosemite (10.10.3)

Posted on May 4, 2015 8:16 PM

Reply
10 replies

May 4, 2015 8:31 PM in response to Zypherus

BC Assistant moves Recovery HD to make the partition contiguous, but Disk Utility does not/can not.



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.

May 4, 2015 8:37 PM in response to Loner T

Sure, Here you go.


Last login: Mon May 4 23:00:57 on console

Amandas-iMac:~ Mandy$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage 850.3 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: EFI NO NAME 104.9 MB disk0s4

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD *850.0 GB disk1

Logical Volume on disk0s2

7D726D81-6829-4F8F-9DE5-36BFC8AAA263

Unencrypted

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *320.1 GB disk2

1: EFI EFI 209.7 MB disk2s1

2: Apple_HFS Steam Drive 319.7 GB disk2s2

/dev/disk3

#: TYPE NAME SIZE IDENTIFIER

0: FDisk_partition_scheme *16.0 GB disk3

1: DOS_FAT_32 WININSTALL 16.0 GB disk3s1

/dev/disk4

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk4

1: EFI EFI 209.7 MB disk4s1

2: Apple_CoreStorage 999.9 GB disk4s2

3: Apple_Boot Boot OS X 134.2 MB disk4s3

/dev/disk5

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Backup *999.5 GB disk5

Logical Volume on disk4s2

29401ACA-A413-469A-9B2B-CEC5304AE968

Unlocked Encrypted

Amandas-iMac:~ Mandy$ diskutil cs list

CoreStorage logical volume groups (2 found)

|

+-- Logical Volume Group 6B0573A3-9145-416C-8198-F6BDF64B7A3A

| =========================================================

| Name: Macintosh HD

| Status: Online

| Size: 850318790656 B (850.3 GB)

| Free Space: 15925248 B (15.9 MB)

| |

| +-< Physical Volume 43B325C0-0475-492D-B21C-E156741BB63B

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

| | Index: 0

| | Disk: disk0s2

| | Status: Online

| | Size: 850318790656 B (850.3 GB)

| |

| +-> Logical Volume Family 551906CC-8067-4D23-B674-543A53797CB6

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

| Encryption Status: Unlocked

| Encryption Type: None

| Conversion Status: NoConversion

| Conversion Direction: -none-

| Has Encrypted Extents: No

| Fully Secure: No

| Passphrase Required: No

| |

| +-> Logical Volume 7D726D81-6829-4F8F-9DE5-36BFC8AAA263

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

| Disk: disk1

| Status: Online

| Size (Total): 849967316992 B (850.0 GB)

| Conversion Progress: -none-

| Revertible: No

| LV Name: Macintosh HD

| Volume Name: Macintosh HD

| Content Hint: Apple_HFS

|

+-- Logical Volume Group 958A424F-EAA4-4CCF-BE79-690E7563BD56

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

Name: Backup

Status: Online

Size: 999860912128 B (999.9 GB)

Free Space: 18923520 B (18.9 MB)

|

+-< Physical Volume 9F5A27B1-FC31-4C3D-9746-58003B000C7C

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

| Index: 0

| Disk: disk4s2

| Status: Online

| Size: 999860912128 B (999.9 GB)

|

+-> Logical Volume Family 7219A3B0-CC7B-4116-9A51-2F6BCA86F6E6

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

Encryption Status: Unlocked

Encryption Type: AES-XTS

Conversion Status: Complete

Conversion Direction: -none-

Has Encrypted Extents: Yes

Fully Secure: Yes

Passphrase Required: Yes

|

+-> Logical Volume 29401ACA-A413-469A-9B2B-CEC5304AE968

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

Disk: disk5

Status: Online

Size (Total): 999489667072 B (999.5 GB)

Conversion Progress: -none-

Revertible: Yes (unlock and decryption required)

LV Name: Backup

Volume Name: Backup

Content Hint: Apple_HFS

Amandas-iMac:~ Mandy$ sudo gpt -vv -r show /dev/disk0


WARNING: Improper use of the sudo command could lead to data loss

or the deletion of important system files. Please double-check your

typing when using sudo. Type "man sudo" for more information.


To proceed, enter your password, or type Ctrl-C to abort.


Password:

gpt show: /dev/disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168

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 1953525167

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

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

1662458064 616240

1663074304 204800 4 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

1663279104 290246031

1953525135 32 Sec GPT table

1953525167 1 Sec GPT header

Amandas-iMac:~ Mandy$ sudo fdisk /dev/disk0

Disk: /dev/disk0 geometry: 121601/255/63 [1953525168 sectors]

Signature: 0xAA55

Starting Ending

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

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

1: EE 1023 254 63 - 1023 254 63 [ 1 - 1953525167] <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

Amandas-iMac:~ Mandy$

May 5, 2015 4:00 AM in response to Zypherus

On your GPT output you can see GPT3 (Recovery HD) followed by a gap, GPT4 (Windows EFI - this should not be there) and then your Bootcamp disk space is the current layout. You can also see it in Disk Utility if you enable Disk Utility Debug as mentioned in http://www.cultofmac.com/122623/enable-hidden-secrets-and-the-debug-menu-in-disk -utility-os-x-tips/. It will look similar to this.


User uploaded file


The simplest and safest method is


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 are manual methods as well, but they require a lot more labour in Terminal. If you are curious, you can see the last section in Repairing Boot Camp after creating new partition.

May 5, 2015 6:05 AM in response to Loner T

Thank you very much. This resolved my issue. When I initially erased the Macintosh HD it showed the option to expand the drive back to the original size however, when I tried the resize did not apply. I erased the drive again and it allowed me to resize it and restore from my TM backup. All is fixed now. Thanks again for your time!

Sep 9, 2015 7:30 AM in response to tsolomou

You may want to post a new discussion to avoid confusion.


Local Recovery (Command+R) runs from Recovery HD on your internal disk, which disallows erasing the internal disk.


Boot into Internet Recovery (Command+Opt+R) and you must see a spinning globe. Use a Wired connection, it is much faster.


Reference - OS X: About OS X Recovery - Apple Support .


Please post the output of the following OSX Terminal commands


diskutil list

diskutil cs list

Sep 9, 2015 7:44 AM in response to Loner T

HERE IT IS, THANKS:


Last login: Wed Sep 9 16:39:11 on console

tonys-mbp:~ tonys$ diskutil list

/dev/disk0

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *251.0 GB disk0

1: EFI EFI 209.7 MB disk0s1

2: Apple_CoreStorage 184.4 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Apple_CoreStorage 65.6 GB disk0s4

5: Apple_Boot Boot OS X 134.2 MB disk0s5

/dev/disk1

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD *184.0 GB disk1

Logical Volume on disk0s2

FCD69AE8-54B2-4EEE-8475-F6B042E13A42

Unencrypted

/dev/disk2

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk2

1: EFI EFI 209.7 MB disk2s1

2: Apple_HFS My Passport 999.8 GB disk2s2

tonys-mbp:~ tonys$ diskutil cs list

CoreStorage logical volume groups (2 found)

|

+-- Logical Volume Group 6C2696BD-C568-4C5F-8AA0-B3E051FD8C5F

| =========================================================

| Name: Macintosh HD

| Status: Online

| Size: 184371208192 B (184.4 GB)

| Free Space: 18882560 B (18.9 MB)

| |

| +-< Physical Volume C47F4877-9A49-4D26-8778-EC9FDEC64C98

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

| | Index: 0

| | Disk: disk0s2

| | Status: Online

| | Size: 184371208192 B (184.4 GB)

| |

| +-> Logical Volume Family 388DD1AA-0ACA-4A9E-B654-F2E32103E21C

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

| Encryption Status: Unlocked

| Encryption Type: None

| Conversion Status: NoConversion

| Conversion Direction: -none-

| Has Encrypted Extents: No

| Fully Secure: No

| Passphrase Required: No

| |

| +-> Logical Volume FCD69AE8-54B2-4EEE-8475-F6B042E13A42

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

| Disk: disk1

| Status: Online

| Size (Total): 184000004096 B (184.0 GB)

| Conversion Progress: -none-

| Revertible: Yes (no decryption required)

| LV Name: Macintosh HD

| Volume Name: Macintosh HD

| Content Hint: Apple_HFS

|

+-- Logical Volume Group E9789EF6-F6FB-49D2-B09A-58AFD227050F

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

Name: disk0s4

Status: Online

Size: 65635004416 B (65.6 GB)

Free Space: 65282678784 B (65.3 GB)

|

+-< Physical Volume FAAC7458-23BD-4C8D-AB5C-1ABA9B879E0B

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

Index: 0

Disk: disk0s4

Status: Online

Size: 65635004416 B (65.6 GB)

tonys-mbp:~ tonys$

Sep 9, 2015 7:53 AM in response to tsolomou

1. Backup OSX via Time Machine to an external disk.

2. Delete disk0s4 CS LVG - diskutil cs delete E9789EF6-F6FB-49D2-B09A-58AFD227050F

3. Revert disk0s2 CS LVG - diskutil cs revert FCD69AE8-54B2-4EEE-8475-F6B042E13A42

4. Merge disk0s2, disk0s3 and disk0s4 (you will lose Recovery HD temporarily) - diskutil mergePartitions jhfs+ "Macintosh HD" disk0s2 disk0s4

5. Restore from backup in step 1.


The order of the disk slices is very important in step 4. See the highlighted parts.


diskutil mergepartitions

Usage: diskutil mergePartitions [force] format name

DiskIdentifier|DeviceNode DiskIdentifier|DeviceNode


Merge two or more pre-existing partitions into one. The first disk parameter

is the starting partition; the second disk parameter is the ending partition;

this given range of two or more partitions will be merged into one.


All partitions in the range, except for the first one, must be unmountable.


All data on merged partitions other than the first will be lost; data on the

first partition will be lost as well if the "force" argument is given.


If "force" is not given, and the first partition has a resizable file system

(e.g. JHFS+), it will be grown in a data-preserving manner, even if a different

file system is specified (in fact, your file system and volume name parameters

are both ignored in this case). If "force" is not given, and the first

partition is not resizable, you will be prompted if you want to erase.


If "force" is given, the first partition is always formatted. You should

do this if you wish to reformat to a new file system type.


Merged partitions are required to be ordered sequentially on disk.

See diskutil list for the actual on-disk ordering; BSD slice identifiers

may in certain circumstances not always be in numerical order but the

top-to-bottom order given by diskutil list is always the on-disk order.


Ownership of the affected disk is required.


Example: diskutil mergePartitions JHFS+ NewName disk3s4 disk3s7

This example will merge all partitions *BETWEEN* disk3s4 and disk3s7,

preserving data on disk3s4 but destroying data on disk3s5, disk3s6,

disk3s7 and any invisible free space partitions between those disks;

disk3s4 will be grown to cover the full space if possible.

Deleted Partition made from Bootcamp with Disk Utility BIG MISTAKE

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