partition gone after upgrading to el capitan

tried to follow the steps here:

https://discussions.apple.com/thread/7265037


but got totally lost, I ran test disk but it doesn't show my windows partition.

User uploaded file

here is my SSD, the 188 is my OSX, the selected chunk used to be my windows partition and the other chunk is free space.


It also won't let me delete the UNTITLED partition by hitting the - button. What should I do??


Additionally when I run boot camp assistant it says this:

User uploaded file


i also tried following these steps:

Step A. You have El Capitan, so we need to disable SIP.


1. Boot into Local Recovery (Command+R).

2. Start Utilities -> Terminal.

3. Type csrutil disable in Terminal and press Enter/Return.

4. Type csrutil status.

5. Boot normally, and type csrutil status to confirm that all individual entries are still disabled.


Step B. Correct the MBR for Windows boot ability. Please ignore the i386 MBR error message, but not any others.


sudo fdisk -e /dev/disk0

p

setpid 4

07

flag 4

p

w

y


Reboot and check if you can see the BC Volume and files in the volume using Finder. If you can, use System Preferences -> Startup Disk, click on the lock icon and choose Bootcamp and click Restart. If everything works normally re-enable SIP using csrutil enable and the method in Step A.


When i did:

sudo fdisk -e /dev/disk0

and

p


I got to this result which looked odd so I stopped:

User uploaded file

MacBook Pro (Retina, 13-inch, Mid 2014), OS X El Capitan (10.11.2), null

Posted on Jan 21, 2016 3:40 PM

Reply
11 replies

Jan 21, 2016 4:01 PM in response to Loner T

$ 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 188.7 GB disk0s2

3: Apple_Boot Recovery HD 650.0 MB disk0s3

4: Apple_HFS UNTITLED 39.9 GB disk0s4

/dev/disk1 (internal, virtual):

#: TYPE NAME SIZE IDENTIFIER

0: Apple_HFS Macintosh HD +188.4 GB disk1

Logical Volume on disk0s2

9E319AFC-8512-40EA-9985-EC22D583B294

Unencrypted

$ diskutil cs list

CoreStorage logical volume groups (1 found)

|

+-- Logical Volume Group 169596AD-1B3C-45CF-BF8A-651ABBC6C041

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

Name: Macintosh HD

Status: Online

Size: 188745510912 B (188.7 GB)

Free Space: 19001344 B (19.0 MB)

|

+-< Physical Volume D46C8AFA-9A78-4976-8E23-5ED44245AA53

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

| Index: 0

| Disk: disk0s2

| Status: Online

| Size: 188745510912 B (188.7 GB)

|

+-> Logical Volume Family 5FF11FF7-3F5A-42CB-AD70-6DB3FE41656F

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

Encryption Type: None

|

+-> Logical Volume 9E319AFC-8512-40EA-9985-EC22D583B294

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

Disk: disk1

Status: Online

Size (Total): 188374188032 B (188.4 GB)

Revertible: Yes (no decryption required)

LV Name: Macintosh HD

Volume Name: Macintosh HD

Content Hint: Apple_HFS

$ sudo gpt -vv -r show /dev/disk0

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

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

370322752 41788096

412110848 77861720 4 GPT part - 48465300-0000-11AA-AA11-00306543ECAC

489972568 262151

490234719 32 Sec GPT table

490234751 1 Sec GPT header



** Thanks Loner you seem to be the savior of partition issues on this forum

Jan 21, 2016 4:18 PM in response to Loner T

I might have messed up earlier, I erased the 40 GB partition in disk utility trying to mess with it before I looked up the issue. I don't mind losing all the windows data (I had nothing on it). I just want to remove it or something so I can repartition.


here is the quick search result:

User uploaded file



after hitting continue

User uploaded file


When i hit 'p' on the first ms data it says "cant open filesystem. Filesystem seems damaged"

This second ms data just has an empty program files and user's folder - probably since I hit erase like an idiot in disk utility : (

Jan 21, 2016 5:37 PM in response to hopelessmac

The simplest and safest method to get your disk space back is


1. Backup OSX and all your files - Use Time Machine to back up or restore your Mac - Apple Support .

2. Boot into Internet Recovery (Command+Opt+R) - OS X: About OS X Recovery - Apple Support .

3. Click on Utilties -> Disk Utility and Erase your internal whole disk.

4. Restore OSX and your files - Use Time Machine to back up or restore your Mac - Apple Support .


This requires a separate external disk which can accommodate TM backup - Backup disks you can use with Time Machine - Apple Support .


There are other methods, if you do not want to pursue this method.

Jan 21, 2016 8:56 PM in response to hopelessmac

It may sound daunting but it is pretty quick and painless. There are two commands that need to be executed in Internet Recovery.


1. Revert the CS volume to JHFS+

diskutil cs revert 9E319AFC-8512-40EA-9985-EC22D583B294

2. Merge partitions

diskutil mergePartitions jhfs+ "Macintosh HD" disk0s2 disk0s4


The syntax and help is (read the mergePartitions carefully)

diskutil cs revert

Usage: diskutil coreStorage revert

MountPoint|DiskIdentifier|DeviceNode|lvUUID

[-stdinpassphrase | -passphrase [passphrase] | -recoverykeychain file]

Convert a CoreStorage logical volume back to its native type.

If you are attempting to revert a disk on which conversion was started but

which could not be unmounted, you must eject the disk or reboot first.

The file system must be mounted and resizable (i.e. Journaled HFS+).

Ownership of the affected disk and a passphrase (if encrypted) is required.



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.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

partition gone after upgrading to el capitan

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