

formatted with HFS+ filesystem) that you want to not automount, replace apfs with hfs.
#DISK ARBITRATOR MAC MAC#
If you would want to have all disks unmounted automatically when putting your Mac to sleep, take a look at Jettison, which not only allows you just that you’ll also have shortcuts for mounting disks right in your menubar. The fstab entry only prevents mounting upon first attaching the disk. Obviously you would want to unmount the volume manually after use.If you prefer the way of the command line, diskutil mount or diskutil mount will also mount the drive.Īs long as you do not mount the drive manually (see Caveats below), it is now safe to unplug the HDD at any time without macOS bugging you with “Disk Not Ejected Properly” error notifications. The next time the HDD gets plugged in, the Volume will only be visible inside of Disk Utility, where it can then be manually mounted. Noauto tells diskarbitrationd (the daemon that handles the … well, the arbitration of attached disks) to not automatically mount the disk. # Prevent SuperDuper Backup volume from automounting UUID =86C0607D-FFC2-4391-9194-2F04691D3AAF none apfs rw,noauto # Prevent Photos volume from automounting UUID =CD8A004A-295C-4ECF-8A36-8DAD2AF4FA63 none apfs rw,noauto The syntax is just the same as it has ever been with fstab yet the easiest way to prevent automounting your USB hard drives is to use their volume’s LABEL= or UUID=, both of which can be found by consulting diskutil:

But one may also use fstab to customize the automatically mounted volumes of USB drives. Altough not officially supported, macOS allows users to create an fstab file for custom mounts, for network attached drives for example. How? Using good old UNIX magic: /etc/fstab. Therefore I went about and setup macOS to take note of the HDD but not mount any volumes from it. MacOS does not like it though to just randomly pull plugs of external disk drives when, for example, you are quickly unplugging the Mac to head to the next appointment. The most simple approach is therefor the leave it attached. And I’d like it to do so even if I forget to attach the HDD. Super Duper creates that backup every other day.

What can I say - I am lazy … and have a second APFS volume on the same HDD that contains a bootable backup of macOS. Obviously I am not spending every day working on those pictures, just every now and then, yet still I’d like to keep the HDD connected to the OWC USB-C Dock that connects all the accessories to my MacBook Adorable (a differentiating phrase initially coined by David Smith) when I’m seated.

I keep my Lightroom photo library on it, since keeping the photos on my NAS and mounting that to work on the pictures is just too slow. Just recently I have added an external USB harddisk to my desktop setup.
