I have a linux dual boot installed with rEFInd, which I want to delete.

enter image description here

I tried to just delete the disk partition, but that throws an error.

MediaKit reports partition (map) too small. If you recently grew your whole-disk, you should run whole-disk repair.

First Aid completes without any errors.

From this other post, I figured my best option would be to run qparted on my linux dual boot to fix the disk partition.

However, after installing 10.13.4 update, my mac decided to auto-boot into the latest OS X, disabling my dual-boot. I can't even log into linux anymore.

Running diskutil list gives the following result:

/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_APFS Container disk1         210.0 GB   disk0s2
   3:                  Apple_HFS Recovery HD             650.0 MB   disk0s3
   4:           Linux Filesystem                         40.0 GB    disk0s4
   5:                 Linux Swap                         133.2 MB   disk0s5

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +210.0 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            193.4 GB   disk1s1
   2:                APFS Volume Preboot                 21.9 MB    disk1s2
   3:                APFS Volume Recovery                517.9 MB   disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

/dev/disk2 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        +2.0 TB     disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS Time Machine Backups    2.0 TB     disk2s2

I had this issue before, and the solution was to change the priority of the boot loader, but I have forgotten how to do it...

I looked at the rEFInd documentation, and I have followed the instructions:

$ sudo mountesp
- The ESP has been identified as /dev/disk0s1; attempting to mount it....
- The ESP is mounted at /Volumes/ESP

$ sudo mount -t msdos /dev/disk0s1 /Volumes/ESP
- mount: realpath /Volumes/ESP: No such file or directory

This is weird, because mountesp just told me that that directory exists...

  • 1
    Great edits! I've purged the comments - let's see if we can get some answers / ideas. – bmike Jun 2 '18 at 14:17

You must log in to answer this question.

Browse other questions tagged .