Cannot boot into macOS APFS after resizing Bootcamp using EaseUS

Trying to restore my Mac’s APFS partition after it became unbootable from using EaseUS to resize Bootcamp.

Trying to install Linux so wanted to resize the Bootcamp partition and now I can’t boot into macOS.

I have a portable version of macOS running and when I do

sudo gpt -r show /dev/disk0 

I get

gpt show: error: bogus map gpt show: unable to open device '/dev/disk0': Undefined error: 0 

In disk utility I see the drive and using TestDisk I can see the partitions.

Any ideas for recovering? Whats on windows is unimportant if that helps.


macOS Mojave dual monitor seperate spaces force dock on one screen

I’m relatively new to macOS. I’m using macOS Mojave and I have 2 monitors. I want the dock to stay on my right screen. My problem is when I move the mouse to the the bottom center on my left screen the dock permanently changes it’s location to the left screen until I do the same again on my right screen.

I have found a few solutions but I was not satisfied with them. Don’t answer one of the following solutions

  • I don’t want the dock to move to right. I want it at the bottom.
  • I don’t want to disable separate spaces because I want to use this feature.

Is there any way to do this besides these 2 options?

How to delete macOS Installer boot

I tried to install a macOS High Sierra update, but I got the error “An error occurred installing macOS” and thus I decided to erase the and dmg on my drive. Now every time I close my Mac it shuts down and tries to boot from the macOS Installer boot, but because I erased the update I get the “No Symbol sign”. I restart my mac and use the power key + Option to boot into my actual boot, but I don’t seem to find someone who knows how to erase that boot, is there a way you can help me out?

How can I make macOS respect HOSTALIASES environment variable?

According to the Apple developer documentation, setting HOSTALIASES will make a process look in that file for hostnames instead of /etc/hosts.

However when I tested this with ping and a replacement hostfile, the replacement never got used, only /etc/hosts (according to fs_usage) – I have also seen similar complaints online.

Is there a way to get a process to respect HOSTALIASES or otherwise use a different hosts file?

Add IP alias on macOS like on Ubuntu? [duplicate]

This question already has an answer here:

  • Changing local IP address with networksetup command on OSX? 1 answer

I want to add a second IP address on my Mac like on Ubuntu.

On Ubuntu I use this:

$   sudo ip addr add dev eth0 

On my Mac I used this:

$   sudo ifconfig en0 alias 

On Ubuntu every computer on my local network can reach, however on my Mac it’s not the same behavior, I can reach the local IP only on the computer and not on the others.

Do you know what can be the problem?

I need help with MacOS partitioning

I know there is a plenty on the Internet, but I am afraid to touch it since the data on my partition is valuable for me now.

My situation: I wanted to create a dual-boot configuration (MacOS + Windows) and succeeded. (I did follow protective mbr creation manual somewhere on the net). After a while, Windows started consuming too much space, so I decided to re-install it with the lighter build.

What happened is that I dropped MSR partition (600 MB partition, microsoft reserved one), and LOST ability to boot in MacOS.

I did restore the boot by installing ReEFIt to EFI drive.

Currently, MacOS partition is not visible if I press “Options” key, but it still boots up thankfully to EFI boot.

I have MacBook Air with OS Yosemite (128G). My ideal vision would be the following: MacOS HD = 118 GB Windows = 10 GB (the sizes could be rethought later).

Trying to remap the drive, I did drop all Windows partitions in order to put that space back to MacOS one. The issue is that now I can not edit partitions via DiskUtility (the one with GUI) – it just simply does nothing when I try to modify them. It shows gray circle at the beginning of “MBR” space.

My output of diskutil list is following (there is an interesting thing that record for GPT and MBR for MacOS partition is different: 51.2GB versus 50.8GB):

mes-MacBook-Air:~ me$   sudo diskutil list /dev/disk0    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:      GUID_partition_scheme                        *121.3 GB   disk0    1:                        EFI EFI                     314.6 MB   disk0s1    2:          Apple_CoreStorage                         51.2 GB    disk0s2 /dev/disk1    #:                       TYPE NAME                    SIZE       IDENTIFIER    0:                  Apple_HFS MacOS                  *50.8 GB    disk1                                  Logical Volume on disk0s2                                  84A33FDC-BA63-43B5-A43F-E4BF61D0830A                                  Unencrypted 

Help me out to put the space back and map 10GB for Windows and get the loader back (MacOS and Windows are present while pressing Options key) if you can. Or guide me to the good source on the topic if I ask too much.

Thank you people.

Cannot update macOS Mojave 10.14.2 to 10.4.4

I have a Mid 2012 MacBook Pro with 512 GB hard drive which dual boots along with macOS Sierra.

I have converted macOS Mojave partition to APFS from Mac OS Extended (Journaled).

When attempting to install macOS Mojave 10.14.4 update, this screen stays for a while and then system restarts to back to macOS Sierra:

enter image description here

What is going wrong and how do I resolve the issue?