Disk ejected but still show up in Disk Utility? I have this external (USB) drive that can't seem to be disconnected correctly.  Whenever I eject the drive, it won't disappear from Disk Utility.  Afterwards when the drive gets re-connected again, it cannot be mounted. At this stage, I would need to reboot the Mac to get the drive to mount again.



Ejecting from the Terminal via diskutil eject /dev/disk2 returns a Disk /dev/disk2 ejected message and unmounts the disk.  However the disk still shows up both in Disk Utility and diskutil list. 

Furthermore even after the USB cable is disconnected, the disk still shows in both Disk Utility lists — GUI and command line. 

How can I solve this?

OS: macOS Mojave 10.14.1 (18B75)
Weird as it is, this seems to be the solution:


Remove the disk from Time Machine's list of backup destination drives.
Remove file tmbootpicker.efi from the drive's root directory.
Remove file /var/db/volinfo.database
After restarting and able to mount the drive again, re-add the drive to Time Machine.


Ejecting the drive seems to work now — it finally disappears from Disk Utility's list after the USB cable is unplugged.