MacOS – Internal, virtual drive and recover HD missing. Unable to boot windows. How to fix this

hard drivemacospartition

I was testing out a Linux Mint installation on an iMac in order to run some programs written for Linux. This iMac was a dual boot with Windows installed through bootcamp. I think it corrupted the boot system for Windows (The MBR and hybrid MBR is confusing me).

I thought of removing the Linux installation and thus I used Disk Utility and reformatted and removed the Linux partitions.

However, when I list the disk, the (internal, virtual) and Recovery HD drive is missing since after the removing the first installation.

Currently I repartition the drives and reinstall Linux Mint to run the required program. I would like to ask for help with the following:

  1. What is the internal, virtual drive? And why is it and the recovery HD missing? (I want to know what I did wrong)

  2. Does the missing internal, virtual drive need fixing? How to do it?

  3. Is it possible to fix Windows boot in without reinstalling it?

    • I am actually fine with dual boot for now and lose the Windows. If I need to I would follow the guide on triple booting (which I saw after this had happened). But if there is a way to fix it please let me know.

Here is the readout from disk util when I formatted it for the first linux installation

/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_CoreStorage Macintosh HD            250.3 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   4:       Microsoft Basic Data                         649.9 GB   disk0s4
   5:       Microsoft Basic Data                         18.9 GB    disk0s5
   6:       Microsoft Basic Data                         29.9 GB    disk0s6
   7:       Microsoft Basic Data BOOTCAMP                50.0 GB    disk0s7

/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            Macintosh HD           +250.0 GB   disk1
                             Logical Volume on disk0s2
                             A2849F4D-66EA-4FFF-8FB2-5247B5407C0C
                             Unencrypted

After that I formatted and remove the linux partition of MacOS disk utility.I formatted partition 4,5 and 6 and resize with the Macintosh HD partition. Now it reads

/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_HFS Macintosh HD            949.9 GB   disk0s2
   3:       Microsoft Basic Data BOOTCAMP                50.0 GB    disk0s3



gpt show: disk0: Suspicious MBR at sector 0
       start        size  index  contents
           0           1         MBR
           1           1         Pri GPT header
           2          32         Pri GPT table
          34           6         
          40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
      409640  1855197144      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
   1855606784     262144
   1855868928   97654784      3  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
   1953523712       1423        
  1953525135          32         Sec GPT table
  1953525167           1         Sec GPT header

I repartition and installed linux mint again with a Home drive, a OS drive and a swap drive.

Now this is what the disk util reads:

/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_HFS Macintosh HD            250.0 GB   disk0s2
   3:       Microsoft Basic Data                         649.9 GB   disk0s3       
   4:       Microsoft Basic Data                         14.9 GB    disk0s4
   5:       Microsoft Basic Data                         34.7 GB    disk0s5
   6:       Microsoft Basic Data BOOTCAMP                50.0 GB    disk0s6


gpt show: disk0: Suspicious MBR at sector 0
       start        size  index  contents
           0           1         MBR
           1           1         Pri GPT header
           2          32         Pri GPT table
          34           6         
          40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
      409640  1855197144      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
   488690888      262144
   488953032  1269269104      3  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7                      
  1758222136      262144
  1758484280    29034728      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7                                                                              
  1787519008      262144
  1787781152    67825632      5  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7                      
  1855606784      262144 
  1855868928    97654784      6  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
  1953523712        1423        
  1953525135          32         Sec GPT table
  1953525167           1         Sec GPT header

Best Answer

  1. The internal virtual disk is a Logical Volume and part of a CoreStorage Logical Volume Group. CoreStorage itself is a logical volume manager similar to Linux' LVM. An LVM is an additional abstraction layer in between hard disks and partitions on one side and volumes on the other side.

    In macOS you can convert a partition (e.g disk0s2) with a HFS+ file system lossless to a Logical Volume Group which initially contains several nested items: a Physical Volume, a Logical Volume Family and a Logical Volume. The final Logical Volume is slightly smaller than the original partition, because CoreStorage needs some space to save administrative data.

    The Logical Volume contains the data of the previous standard volume/partition and is mapped to its own (virtual) disk device: disk0s2 > disk1

    If your Logical Volume disk1 contains a lot of free space you may resize it and add a second Logical Volume in the same Physical Volume and after formatting it you will get a second virtual device: disk0s2 > disk2

    If you have a second physical partition on your main disk or a second disk with a partition you may add either or all of them to the first Logical Volume Group. They will be added to the total space available in the Logical Volume Group. You may also create a second Logical Volume Group.

    If you have added a second partition (= Physical Volume) to the LVG you can expand the initial Logical Volume to span both Physical Volumes. If the second partition is on a different disk (SSD) this is called a "Fusion Drive". If the second Physical Volume is on the same drive it's a fake Fusion Drive. If you additionally add a partition on a third drive it's a Uber Fusion Drive.

    Depending on how you created the LVG you can revert a 1(LVG):1(PV):1(LVF):1(LV) to a normal volume. This is not possible with an e.g. 1:2:1:1 or 1:2:1:2 LVG because you can't map 1(LV)→ 2(HFS+-volumes) (~technically-mathematically).

    Another feature of CoreStorage is volume encryption > FileVault2.

  2. The "missing internal, virtual drive" doesn't need fixing because it's not missing but was converted to a normal partition/HFS+ volume again (see 1.)

    The Recovery HD partition probably got deleted while installing Mint.

  3. The main problem of your partition table is the MBR and its restrictions (four entries). Your Windows partition resides on the sixth partition which is actually not included in the MBR. You may fix this by following one of the many of David Anderson's answers related to MBR/PMBR/multi boot.