Can't boot APFS partition, no disk type in diskutil

Borin

macrumors regular
Original poster
Jan 15, 2016
102
182
Britannia
I'm running the latest High Sierra public beta on my 2015 rMBP, and I've had no trouble until now. I converted my macOS partitions to APFS during the first public beta and have upgraded since then with no issues. Earlier today, I decided to restart my rMBP, but instead of booting back into macOS, it booted into my Windows partition. I've restarted before, whilst in the public beta, with no issues.

I booted to internet recovery and opened Disk Utility. It showed the following:
500.28 GB APPLE SSD SM0512F Media:
- disk0s2
- disk0s3
- BOOTCAMP
I fired up Terminal and ran diskutil list, which returned the following for /dev/disk0:
Code:
0: GUID_partition_scheme - 500.3 GB - disk0
1: EFI - EFI - 209.7 MB - disk0s1
2: 7C3457EF-0000-11AA-AA11-00306543ECAC - 424.3 GB - disk0s2
3: 5361644D-6163-11AA-AA11-00306543ECAC - 655.4 MB - disk0s3
4: Microsoft Basic Data - BOOTCAMP - 75.1 GB - disk0s4
I tried running the following on the off chance it would fix it
Code:
asr adjust --target /dev/disk0s2 --settype "Apple_APFS"
but it just returned:
Code:
asr: volume adjustment failed: unknown error: -123
I guess that's due to the rMBP's release year, but it didn't work nonetheless.

Any thoughts on how I might fix this? The Windows partition works perfectly fine, so it doesn't seem to be a drive failure. I'm trying to put off just reformating the partitions and reinstalling macOS from fresh due to some of my files not being backed up, but I'll do that if I must.
 

Borin

macrumors regular
Original poster
Jan 15, 2016
102
182
Britannia
Just returns errors about being unable to determine the mount point, statfs() and filesystem of the volume.
 

Significant1

macrumors 6502a
Dec 20, 2014
787
249
What happens, if you press alt during startup to select boot partition. Does the partition show up?

Internet recovery will not give you High Sierra (I doubt) and therefore has no support for APFS. If you have access to another Mac, you could instead make an bootable usb-key installer with High Sierra and boot into recovery on that.

Edit: Have you tried entering local recovery with CMD+R on startup?
 
Last edited:

Borin

macrumors regular
Original poster
Jan 15, 2016
102
182
Britannia
Only the Windows partition appears when I boot with alt depressed.

It just provides Yosemite, so it’s no use. I don’t have access to another Mac, so I unfortunately can’t get the High Sierra installer.

Cmd + R just opens internet recovery; it can’t find the local recovery partition.
 

h9826790

macrumors G5
Apr 3, 2014
14,012
6,625
Hong Kong
It looks so messy at this point. If I were you, I will seriously consider backup all the data (it seems you can still boot to the Windows partition), and then boot into internet recovery. Use disk utility there for format the whole hard drive, and start everything again. It may cost you a day. But I suspect that still much quicker than try to figure out the root cause and find the fix.
 

barrykkli

macrumors newbie
Aug 10, 2017
1
0
It happened to me once. I have a BootCamp Windows partition. For unknown reason, the MacOS drive disappear and I booted into Windows every time. I need to do recovery mode. Use DistUtil to mount the partition where I have my High Sierra on. Once mounted, I'm able to reboot into my MacOS. Not sure it is the same issue in your case. You may try......
 

Significant1

macrumors 6502a
Dec 20, 2014
787
249
It just provides Yosemite, so it’s no use. I don’t have access to another Mac, so I unfortunately can’t get the High Sierra installer.
Maybe you can find a guide to do it from windows. Not something I have looked into. Though I guess that would require to download from somewhere else than app-store.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.