Jump to content
Sign in to follow this  
Followers 0
Wallfacer

weird problem - the mac os drive was missed after hard reboot

6 posts in this topic

Recommended Posts

guys,

 

I am facing a weird problem, as below:

system: thinkpad e431

bootloader: clover

os: win10 + mac os 10.14.2

 

everything went well until I hard shut the system (by pressing the power button) while the os was inactive, problem was: the mac os option was missed in clover, so as the recovery option.

the partition is still there in Windows Disk Manager program, but it just doesn't show up in clover.

 

what i've tried:

use DiskPart tool (win) to set the partition's id:

set id=48465300-0000-11AA-AA11-00306543ECAC

sadly, it doesn't work.

 

anyone has any clue? thanks a lot.

 

Share this post


Link to post
Share on other sites
Advertisement

i took a quick screenshot, as attached, it looks like the problem caused by some clover driver?

6D8015F8-437C-4820-A8E4-74A9E23997D8.png

Share this post


Link to post
Share on other sites
15 minutes ago, Wallfacer said:

i took a quick screenshot, as attached, it looks like the problem caused by some clover driver?

Make sure that the apfs volume is ok, boot with the installer and see if you can repair the volume that you have macOS installed.

Share this post


Link to post
Share on other sites
On 5/18/2019 at 4:30 PM, Wallfacer said:

what i've tried:

use DiskPart tool (win) to set the partition's id:


set id=48465300-0000-11AA-AA11-00306543ECAC

sadly, it doesn't work.

 

Sometimes, Windows Diskpart.exe can change your macOS partition type, making it "invisible" to Clover - see section III "How to Change Partition Type and Attributes" with GPT FDisk.  Also, the GUID you used to set the partition's id is for HFS+ (48465300-0000-11AA-AA11-00306543ECAC) not APFS (7C3457EF-0000-11AA-AA11-00306543ECAC) which is used by default in Mojave.

 

To fix,


1.  Download the zip file of GPT FDisk for Windows here & extract its contents.  Copy folder to somewhere convenient eg C:\gdisk
2.  Confirm disk number (of disk containing macOS) with Windows Disk Management 
3.  Open a Windows Command Prompt with admin privileges, cd to gdisk folder and start gdisk eg if macOS is on disk no 2, 

Spoiler



Microsoft Windows [Version 10.0.17763.437]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd \gdisk

C:\gdisk>gdisk64 2:
GPT fdisk (gdisk) version 1.0.4

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): ?
b       back up GPT data to a file
c       change a partition's name
d       delete a partition
i       show detailed information on a partition
l       list known partition types
n       add a new partition
o       create a new empty GUID partition table (GPT)
p       print the partition table
q       quit without saving changes
r       recovery and transformation options (experts only)
s       sort partitions
t       change a partition's type code
v       verify disk
w       write table to disk and exit
x       extra functionality (experts only)
?       print this menu

Command (? for help): v

No problems found. 2021 free sectors (1010.5 KiB) available in 3
segments, the largest of which is 2008 (1004.0 KiB) in size.

Command (? for help): p
Disk 2:: 1953525168 sectors, 931.5 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): C19EF799-B443-4DA7-B6BA-012E29AAE7E6
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 8-sector boundaries
Total free space is 2021 sectors (1010.5 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              40          409639   200.0 MiB   EF00  EFI System Partition
   2          411648      1827694591   871.3 GiB   0700  Basic data partition
   3      1827694592      1827956735   128.0 MiB   0C01  Microsoft reserved ...
   4      1827956736      1953525127   59.9 GiB    AF00  Apple HFS/HFS+

 


4.  Verify disk (option v), check partition table (option p), change partition type code if necessary eg from AF00 (Apple HFS) to AF0A (Apple apfs) with gdisk option t, write to disk (option w), then quit (option q).
 

Spoiler



Command (? for help): t
Partition number (1-4): 4
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = 700): L
Type search string, or <Enter> to show all codes:
0700 Microsoft basic data  0c01 Microsoft reserved    2700 Windows RE
3000 ONIE boot             3001 ONIE config           3900 Plan 9
4100 PowerPC PReP boot     4200 Windows LDM data      4201 Windows LDM metadata
4202 Windows Storage Spac  7501 IBM GPFS              7f00 ChromeOS kernel
7f01 ChromeOS root         7f02 ChromeOS reserved     8200 Linux swap
8300 Linux filesystem      8301 Linux reserved        8302 Linux /home
8303 Linux x86 root (/)    8304 Linux x86-64 root (/  8305 Linux ARM64 root (/)
8306 Linux /srv            8307 Linux ARM32 root (/)  8308 Linux dm-crypt
8309 Linux LUKS            8400 Intel Rapid Start     8e00 Linux LVM
a000 Android bootloader    a001 Android bootloader 2  a002 Android boot 1
a003 Android recovery 1    a004 Android misc          a005 Android metadata
a006 Android system 1      a007 Android cache         a008 Android data
a009 Android persistent    a00a Android factory       a00b Android fastboot/ter
a00c Android OEM           a00d Android vendor        a00e Android config
a00f Android factory (alt  a010 Android meta          a011 Android EXT
a012 Android SBL1          a013 Android SBL2          a014 Android SBL3
a015 Android APPSBL        a016 Android QSEE/tz       a017 Android QHEE/hyp
a018 Android RPM           a019 Android WDOG debug/s  a01a Android DDR
a01b Android CDT           a01c Android RAM dump      a01d Android SEC
a01e Android PMIC          a01f Android misc 1        a020 Android misc 2
a021 Android device info   a022 Android APDP          a023 Android MSADP
Press the <Enter> key to see more codes:
a024 Android DPO           a025 Android recovery 2    a026 Android persist
a027 Android modem ST1     a028 Android modem ST2     a029 Android FSC
a02a Android FSG 1         a02b Android FSG 2         a02c Android SSD
a02d Android keystore      a02e Android encrypt       a02f Android EKSST
a030 Android RCT           a031 Android spare1        a032 Android spare2
a033 Android spare3        a034 Android spare4        a035 Android raw resource
a036 Android boot 2        a037 Android FOTA          a038 Android system 2
a039 Android cache         a03a Android user data     a03b LG (Android) advance
a03c Android PG1FS         a03d Android PG2FS         a03e Android board info
a03f Android MFG           a040 Android limits        a200 Atari TOS basic data
a500 FreeBSD disklabel     a501 FreeBSD boot          a502 FreeBSD swap
a503 FreeBSD UFS           a504 FreeBSD ZFS           a505 FreeBSD Vinum/RAID
a580 Midnight BSD data     a581 Midnight BSD boot     a582 Midnight BSD swap
a583 Midnight BSD UFS      a584 Midnight BSD ZFS      a585 Midnight BSD Vinum
a600 OpenBSD disklabel     a800 Apple UFS             a901 NetBSD swap
a902 NetBSD FFS            a903 NetBSD LFS            a904 NetBSD concatenated
a905 NetBSD encrypted      a906 NetBSD RAID           ab00 Recovery HD
af00 Apple HFS/HFS+        af01 Apple RAID            af02 Apple RAID offline
af03 Apple label           af04 AppleTV recovery      af05 Apple Core Storage
af06 Apple SoftRAID Statu  af07 Apple SoftRAID Scrat  af08 Apple SoftRAID Volum
af09 Apple SoftRAID Cache  af0a Apple APFS            b300 QNX6 Power-Safe
Press the <Enter> key to see more codes:
bc00 Acronis Secure Zone   be00 Solaris boot          bf00 Solaris root
bf01 Solaris /usr & Mac Z  bf02 Solaris swap          bf03 Solaris backup
bf04 Solaris /var          bf05 Solaris /home         bf06 Solaris alternate se
bf07 Solaris Reserved 1    bf08 Solaris Reserved 2    bf09 Solaris Reserved 3
bf0a Solaris Reserved 4    bf0b Solaris Reserved 5    c001 HP-UX data
c002 HP-UX service         e100 ONIE boot             e101 ONIE config
ea00 Freedesktop $BOOT     eb00 Haiku BFS             ed00 Sony system partitio
ed01 Lenovo system partit  ef00 EFI System            ef01 MBR partition scheme
ef02 BIOS boot partition   f800 Ceph OSD              f801 Ceph dm-crypt OSD
f802 Ceph journal          f803 Ceph dm-crypt journa  f804 Ceph disk in creatio
f805 Ceph dm-crypt disk i  f806 Ceph block            f807 Ceph block DB
f808 Ceph block write-ahe  f809 Ceph lockbox for dm-  f80a Ceph multipath OSD
f80b Ceph multipath journ  f80c Ceph multipath block  f80d Ceph multipath block
f80e Ceph multipath block  f80f Ceph multipath block  f810 Ceph dm-crypt block
f811 Ceph dm-crypt block   f812 Ceph dm-crypt block   f813 Ceph dm-crypt LUKS j
f814 Ceph dm-crypt LUKS b  f815 Ceph dm-crypt LUKS b  f816 Ceph dm-crypt LUKS b
f817 Ceph dm-crypt LUKS O  fb00 VMWare VMFS           fb01 VMWare reserved
fc00 VMWare kcore crash p  fd00 Linux RAID
  
Hex code or GUID (L to show codes, Enter = 700): AF0A
Changed type of partition to 'Apple APFS'

Command (? for help) w

 

 

Good Luck!

Share this post


Link to post
Share on other sites
3 hours ago, fusion71au said:

 

Sometimes, Windows Diskpart.exe can change your macOS partition type, making it "invisible" to Clover - see section III "How to Change Partition Type and Attributes" with GPT FDisk.  Also, the GUID you used to set the partition's id is for HFS+ (48465300-0000-11AA-AA11-00306543ECAC) not APFS (7C3457EF-0000-11AA-AA11-00306543ECAC) which is used by default in Mojave.

 

To fix,


1.  Download the zip file of GPT FDisk for Windows here & extract its contents.  Copy folder to somewhere convenient eg C:\gdisk
2.  Confirm disk number (of disk containing macOS) with Windows Disk Management 
3.  Open a Windows Command Prompt with admin privileges, cd to gdisk folder and start gdisk eg if macOS is on disk no 2, 

  Hide contents

 



Microsoft Windows [Version 10.0.17763.437]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>cd \gdisk

C:\gdisk>gdisk64 2:
GPT fdisk (gdisk) version 1.0.4

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): ?
b       back up GPT data to a file
c       change a partition's name
d       delete a partition
i       show detailed information on a partition
l       list known partition types
n       add a new partition
o       create a new empty GUID partition table (GPT)
p       print the partition table
q       quit without saving changes
r       recovery and transformation options (experts only)
s       sort partitions
t       change a partition's type code
v       verify disk
w       write table to disk and exit
x       extra functionality (experts only)
?       print this menu

Command (? for help): v

No problems found. 2021 free sectors (1010.5 KiB) available in 3
segments, the largest of which is 2008 (1004.0 KiB) in size.

Command (? for help): p
Disk 2:: 1953525168 sectors, 931.5 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): C19EF799-B443-4DA7-B6BA-012E29AAE7E6
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 8-sector boundaries
Total free space is 2021 sectors (1010.5 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              40          409639   200.0 MiB   EF00  EFI System Partition
   2          411648      1827694591   871.3 GiB   0700  Basic data partition
   3      1827694592      1827956735   128.0 MiB   0C01  Microsoft reserved ...
   4      1827956736      1953525127   59.9 GiB    AF00  Apple HFS/HFS+

 


4.  Verify disk (option v), check partition table (option p), change partition type code if necessary eg from AF00 (Apple HFS) to AF0A (Apple apfs) with gdisk option t, write to disk (option w), then quit (option q).
 

  Hide contents

 



Command (? for help): t
Partition number (1-4): 4
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = 700): L
Type search string, or <Enter> to show all codes:
0700 Microsoft basic data  0c01 Microsoft reserved    2700 Windows RE
3000 ONIE boot             3001 ONIE config           3900 Plan 9
4100 PowerPC PReP boot     4200 Windows LDM data      4201 Windows LDM metadata
4202 Windows Storage Spac  7501 IBM GPFS              7f00 ChromeOS kernel
7f01 ChromeOS root         7f02 ChromeOS reserved     8200 Linux swap
8300 Linux filesystem      8301 Linux reserved        8302 Linux /home
8303 Linux x86 root (/)    8304 Linux x86-64 root (/  8305 Linux ARM64 root (/)
8306 Linux /srv            8307 Linux ARM32 root (/)  8308 Linux dm-crypt
8309 Linux LUKS            8400 Intel Rapid Start     8e00 Linux LVM
a000 Android bootloader    a001 Android bootloader 2  a002 Android boot 1
a003 Android recovery 1    a004 Android misc          a005 Android metadata
a006 Android system 1      a007 Android cache         a008 Android data
a009 Android persistent    a00a Android factory       a00b Android fastboot/ter
a00c Android OEM           a00d Android vendor        a00e Android config
a00f Android factory (alt  a010 Android meta          a011 Android EXT
a012 Android SBL1          a013 Android SBL2          a014 Android SBL3
a015 Android APPSBL        a016 Android QSEE/tz       a017 Android QHEE/hyp
a018 Android RPM           a019 Android WDOG debug/s  a01a Android DDR
a01b Android CDT           a01c Android RAM dump      a01d Android SEC
a01e Android PMIC          a01f Android misc 1        a020 Android misc 2
a021 Android device info   a022 Android APDP          a023 Android MSADP
Press the <Enter> key to see more codes:
a024 Android DPO           a025 Android recovery 2    a026 Android persist
a027 Android modem ST1     a028 Android modem ST2     a029 Android FSC
a02a Android FSG 1         a02b Android FSG 2         a02c Android SSD
a02d Android keystore      a02e Android encrypt       a02f Android EKSST
a030 Android RCT           a031 Android spare1        a032 Android spare2
a033 Android spare3        a034 Android spare4        a035 Android raw resource
a036 Android boot 2        a037 Android FOTA          a038 Android system 2
a039 Android cache         a03a Android user data     a03b LG (Android) advance
a03c Android PG1FS         a03d Android PG2FS         a03e Android board info
a03f Android MFG           a040 Android limits        a200 Atari TOS basic data
a500 FreeBSD disklabel     a501 FreeBSD boot          a502 FreeBSD swap
a503 FreeBSD UFS           a504 FreeBSD ZFS           a505 FreeBSD Vinum/RAID
a580 Midnight BSD data     a581 Midnight BSD boot     a582 Midnight BSD swap
a583 Midnight BSD UFS      a584 Midnight BSD ZFS      a585 Midnight BSD Vinum
a600 OpenBSD disklabel     a800 Apple UFS             a901 NetBSD swap
a902 NetBSD FFS            a903 NetBSD LFS            a904 NetBSD concatenated
a905 NetBSD encrypted      a906 NetBSD RAID           ab00 Recovery HD
af00 Apple HFS/HFS+        af01 Apple RAID            af02 Apple RAID offline
af03 Apple label           af04 AppleTV recovery      af05 Apple Core Storage
af06 Apple SoftRAID Statu  af07 Apple SoftRAID Scrat  af08 Apple SoftRAID Volum
af09 Apple SoftRAID Cache  af0a Apple APFS            b300 QNX6 Power-Safe
Press the <Enter> key to see more codes:
bc00 Acronis Secure Zone   be00 Solaris boot          bf00 Solaris root
bf01 Solaris /usr & Mac Z  bf02 Solaris swap          bf03 Solaris backup
bf04 Solaris /var          bf05 Solaris /home         bf06 Solaris alternate se
bf07 Solaris Reserved 1    bf08 Solaris Reserved 2    bf09 Solaris Reserved 3
bf0a Solaris Reserved 4    bf0b Solaris Reserved 5    c001 HP-UX data
c002 HP-UX service         e100 ONIE boot             e101 ONIE config
ea00 Freedesktop $BOOT     eb00 Haiku BFS             ed00 Sony system partitio
ed01 Lenovo system partit  ef00 EFI System            ef01 MBR partition scheme
ef02 BIOS boot partition   f800 Ceph OSD              f801 Ceph dm-crypt OSD
f802 Ceph journal          f803 Ceph dm-crypt journa  f804 Ceph disk in creatio
f805 Ceph dm-crypt disk i  f806 Ceph block            f807 Ceph block DB
f808 Ceph block write-ahe  f809 Ceph lockbox for dm-  f80a Ceph multipath OSD
f80b Ceph multipath journ  f80c Ceph multipath block  f80d Ceph multipath block
f80e Ceph multipath block  f80f Ceph multipath block  f810 Ceph dm-crypt block
f811 Ceph dm-crypt block   f812 Ceph dm-crypt block   f813 Ceph dm-crypt LUKS j
f814 Ceph dm-crypt LUKS b  f815 Ceph dm-crypt LUKS b  f816 Ceph dm-crypt LUKS b
f817 Ceph dm-crypt LUKS O  fb00 VMWare VMFS           fb01 VMWare reserved
fc00 VMWare kcore crash p  fd00 Linux RAID
  
Hex code or GUID (L to show codes, Enter = 700): AF0A
Changed type of partition to 'Apple APFS'

Command (? for help) w

 

 

Good Luck!

many thanks, go get an attempt.

Share this post


Link to post
Share on other sites

update on 05/20

 

all attempts failed.

 

at the end, i created an installation flash drive, and boot the system to the installation phase, attempted

1, use Disk Tool to fix the partition -- failed;

2, use Time Machine to restore the partition -- succeeded after erase the drive with APFS format.

 

fianallllllllllllllllly, my Mojave is back. many thanks for your help, guys.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

×