Installing a drive on macOS is simple; Connect it to the port and it will install automatically. If you want, you can use Folder Action and have the installed drive open in Finder when it is installed. Removal is manual because the drive cannot guess when you have finished using it, but after removing or removing it, you must physically remove it from the Mac and reconnect it if you want to install it. At least, that's what most people do because it's simple, but you can install a drive that ejects without physically disconnecting it. The process is not the simplest but it can be done.
Install the removed drive without disconnecting
First, connect the drive to your Mac. Make sure it's installed. After installing the unit, open Terminal and run the following command.
This will list all the drives / disks that are connected to your Mac and will include the drives that are connected. Here, you should write down the name of the unit. In the screenshot below, the drive that is installed is called / dev / disk2. You will see that this disk has a volume underneath. This is fine, but when it comes to disks that have volumes, the commands to install and loosen them will be different than if the disks have no volumes. All you need to do is make a difference and it will become clear when you run the above command. The numbered items that are listed on the drive / disk indicate that you have a volume.
If the disk has volume, run the following command to remove it. Replace the disk name with your disk.
diskutil unmountDisk /dev/disk2
If the disk has no volume, run the following command to remove it. Again, rename the disk to a disk that you did not install.
diskutil unmount /dev/disk2
Now that the disk has been removed, you must install it again. The command will differ again depending on whether the disk has volume or not. If the disk has volume, run the following command. Rename the disk accordingly.
diskutil mountDisk /dev/disk2
If the disk has no volume, use the following command but rename the disk to the disk you are installing.
diskutil mount /dev/disk2
That is all you need to do. You no longer have to physically remove the disk and reconnect it to your Mac to install it after removing the disk. Removing and reconnecting drives on a MacBook isn't too difficult, but on iMacs and Mac Minis, ports are not easy to reach.
You can do this Windows 10 too, but the process is much more complicated and has limitations.