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

Boot partition suddenly unusable

I was recently trying to install Ubuntu onto a partition on my Mac (mid 2015 21.5" iMac, running macOS Mojave).

A by-product of this was that my macOS boot partition was renamed to FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF rather than Macintosh HD or whatever it was before. It continued working fine before I rebooted my Mac (so I know that all my data is still there) but when I did, there was no way to access the partition.

I formatted the 40gb I'd allocated to Ubuntu and put a fresh install of macOS Sierra on it using recovery mode.

I know that my data is formatted as APFS but disk utility doesn't recognise it at all.


This is what terminal says when I type in diskutil list:


/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk0

1: EFI EFI 209.7 MB disk0s1

2: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF 960.0 GB disk0s2

3: Apple_HFS efwef 39.3 GB disk0s3

4: Apple_Boot Recovery HD 650.0 MB disk0s4


And this is what it says when I type in diskutil info disk0s2:


Device Identifier: disk0s2

Device Node: /dev/disk0s2

Whole: No

Part of Whole: disk0


Volume Name: Not applicable (no file system)

Mounted: Not applicable (no file system)

File System: None


Partition Type: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF

OS Can Be Installed: No

Media Type: Generic

Protocol: SATA

SMART Status: Verified

Disk / Partition UUID: 71F124C4-B25D-41F0-88AE-CD4145D652FD


Disk Size: 960.0 GB (960018657280 Bytes) (exactly 1875036440 512-Byte-Units)

Device Block Size: 512 Bytes


Read-Only Media: No

Read-Only Volume: Not applicable (no file system)


Device Location: Internal

Removable Media: Fixed


Solid State: No


It won't let me mount it or use any APFS commands because it doesn't think it has a file system.


I know for sure that disk0s2 is using a file system and that my data is intact, my question is: how do I access it? or, how do I get my Mac to recognise it as what it is?


Thank you

iMac (Retina 4K, 21.5-inch, Late 2015), macOS Mojave (10.14), null

Posted on Oct 14, 2018 1:44 PM

Reply

Similar questions

6 replies

Oct 14, 2018 3:44 PM in response to r_w_n

I've made some progress by following whatever guides I could find online, but it still isnt sorted.

I now have disk0s2 back, recognised as APFS, but it isnt in a container so my Mac can't find a way to use it. It's also now 883.2 GB rather than the 960 GB it was before (any explanation for that would be helpful).

I dont think I have deleted the files associated with the container, my reason for this is that when I type in diskutil list, after it listing the contents of disk0 and disk1, it shows disk2 to disk17, each with no 'type' and all called 'untitled', each of them being different sizes but none more than 6.3 MB - I think these are the contents of what was previously an APFS container.


Prior to this my primary drive was just in a container called 'Container 1'.


I no longer have the ability to paste anything from Terminal here because my fresh install of macOS Sierra diappeared at some point. When I type gpt -r show disk0 theres an entry with no index number that has the size 226802864 (maybe thats the lost partition). there are a couple others but none that size.

Any help here would be appreciated.

Oct 14, 2018 6:08 PM in response to r_w_n

I've booted from USB so here's what I'm getting from the terminal.

from 'diskutil list':

/dev/disk0 (internal, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *1.0 TB disk0

1: EFI EFI 209.7 MB
disk0s1

2: Apple_APFS 883.2 GB
disk0s2

3: Apple_Boot 650.0 MB
disk0s3


/dev/disk1 (external, physical):

#: TYPE NAME SIZE IDENTIFIER

0: GUID_partition_scheme *30.8 GB disk1

1: EFI EFI 209.7 MB
disk1s1

2: Apple_HFS mac 29.9 GB disk1s2

3: Apple_Boot Recovery HD 650.0 MB
disk1s3


and from 'sudo gpt -r show disk0':

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
226802864

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

228482040
1725043095 2
GPT part - 7C3457EF-0000-11AA-AA11-00306543ECAC


1953525135 32 Sec GPT table


1953525167 1 Sec GPT header

Boot partition suddenly unusable

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