Prevent Automounting
I work with MacOS Mojave. I used terminal to prevent two external hard drives from mounting every time I start up my computer. I wanted to double-check with someone more experienced. I noticed that there were two approaches to entering information for this. One uses the command line "sudo nano /etc/fstab". After that you're supposed to enter the UUIDs. (The prevention of automounting didn't seem to change with this.) Then there is the command line "cd /etc" and hit return and then enter "sudo vifs". Upon typing the other command, I got a big red warning saying that another file was already being used for this? I figured it referred to the "sudo" commands. It gave me an option to delete it, which I did. That seems to have cleared up that error. Then I entered my UUIDs into this area the volumes stopped automounting.
To double-check that the commands were entered correctly, I typed in sudo nano /etc/fstab and my commands were there along with a warning about VIFS. Then I typed CD /etc and sudo vifs. My commands were in there along with the same warning about VIFS. (But no big red error.) Does this confirm that I entered it right?