Skip to main content
35 votes

macOS Sierra: mounting NFS volumes

The accepted answer only works when the NFS server allows connections on non-reserved ports (i.e. >1024). The exports man pages say it: exportfs understands the following export options: secure ...
Mathias's user avatar
  • 471
18 votes
Accepted

macOS Sierra: mounting NFS volumes

In Finder, press cmd + k and enter the path to the NFS server/share: For me this mounted as /Volumes/users-1 (but I already had /Volumes/Users mounted). iMac21:~ user$ df -h /Volumes/users-1 ...
pickles's user avatar
  • 306
15 votes

How to prevent auto mounting of a volume in macOS High Sierra?

To prevent a volume from automatically mounting you need to know the filesystem type and either the volume name or volume UUID. This information can be found by using the Terminal application command ...
David Anderson's user avatar
9 votes
Accepted

macOS: Is /etc/fstab file deprecated? What is the recommended config file then?

afaik, fstab doesn't exist by default. You have to create one, first time. From your linked instructions... 7) Edit (or create) an fstab file by typing the following and pressing enter: ...
Tetsujin's user avatar
  • 118k
8 votes

How to prevent auto mounting of a volume in macOS High Sierra?

EDIT 2: Unfortunately after upgrading to Big Sur, this no longer is sufficient. You also have to edit /etc/fstab and add: UUID=[put UUID of volume here] none auto noauto EDIT: After more testing, it ...
PlinkPanther's user avatar
7 votes
Accepted

Prevent encrypted APFS volume on partition to automount / ask for password on login - Catalina

Starting with MacOS BigSur 11.1. the /etc/fstab/ solution works (again): find the volume label from the volume name: diskutil list | grep <volume name> the last entry (e.g. disk2s2) is the ...
Alexander Presber's user avatar
4 votes
Accepted

mount list grows endlessly on automount / autofs setup

The solution is to use /etc/fstab with the net option. 1 - Uncomment this line in /etc/auto_master: /Network/Servers -fstab 2 - Fill in fstab as root. For example: server:/path ...
M. Rubio-Roy's user avatar
3 votes

How to get automount and sshfs (osxfuse) working with yosemite

For macOS Mojave and latest version of osxfuse, this is the correct daemon file: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple....
Carlos D. Álvaro's user avatar
3 votes

How to get automount and sshfs (osxfuse) working with yosemite

This doesn't require disabling System Integrity Protection, as cron jobs are still working in el captain: $ crontab -e */5 * * * * /usr/local/bin/sshfs 192.168.1.2:/etc /Users/xxx/temp/etc -o uid=$(...
Benni's user avatar
  • 31
3 votes

How to prevent automount of a partition in El Capitan

Updated for macOS Mojave and macOS Catalina etc. macOS Mojave 10.14 and later are more strict about editing system files. Editing /etc/fstab is strongly discouraged. They now what you to use vifs. I ...
Bruno Bronosky's user avatar
3 votes

How to prevent automount of a partition in El Capitan

These are all great (and correct) answers! I thought I'd share a small script/utility that I use to make this easier. I've got this no_automount file executable in my ~/bin/ directory. (Don't forget ...
Volte's user avatar
  • 131
3 votes

How to make afp://appleserver01._afpovertcp._tcp.local a fully qualified DNS name or IP address instead?

Number one, something might be wrong with your VPN, because everything should work as if you were physically in the office. You might want to check that. Number two, I assume the remote machines use ...
Carl Dombrowski's user avatar
2 votes

After disabling auto mount, can I show connected but not mounted drives in Finder sidebar?

To answer the question, no Finder does not offer that preference or option, however there is a workaround. I have a similar situation and I use an AppleScript script saved as an application that ...
user3439894's user avatar
  • 59.8k
2 votes

How to prevent auto mounting of a volume in macOS High Sierra?

I had this problem on Mojave and it seems nothing solves the combination of APFS and automatic mounting of volumes. However, if you have an encrypted volume, it is possible to disable the prompting ...
Aki Korhonen's user avatar
2 votes

How to stop AutoMounter from trying Network Shares on High Sierra?

If Google lead you here because sudo vifs returns vifs: editing error this solved it for me: The source for vifs shows the error in the section /* obtain and invoke the editor */. I have my $EDITOR ...
Jannik Arndt's user avatar
2 votes

Login problems with Automount and SMB shares

I have exactly the same problem. I follow the exact step described here: http://blog.grapii.com/2015/06/keep-network-drives-mounted-on-mac-os-x-using-autofs/ /Users/username/Desktop/Synology ...
Yudi Setiawan's user avatar
2 votes

Auto-mount of the contained disk-image, when the external disk is mounted

Since the other answer is a bit devoid of explicit/specific details, this is meant to show how it can be done. In /etc/fstab I've added the appropriate entry to have the target disk containing the ...
user3439894's user avatar
  • 59.8k
2 votes

How to get rid of "The disk you inserted was not readable" and auto ignore it? (without installing apps)

Due to no answer yet, I did find a workaround and want to share here. (1) Resize the external drive and create a small 100MB Apple_HFS typed partition on it. (label the partition with the name dummy)....
sgon00's user avatar
  • 2,436
1 vote

How can I automount a network share on macOS Catalina?

This is the article that i used https://useyourloaf.com/blog/using-the-mac-os-x-automounter/ and my code: networkPath persistent="true" username password function debugEcho () { if (true) ...
Georgiana Untaru's user avatar
1 vote

Mount volume over a not-previously-existing folder

Technically you can only mount a volume on an existing folder. The trick that nevertheless makes this possible for macOS in general is that a program makes sure to create the folder before performing ...
jksoegaard's user avatar
  • 79.6k
1 vote

Auto-mount of the contained disk-image, when the external disk is mounted

You can create a launchd LaunchDaemon definition with the key “StartOnMount” set to true. This will allow you to have your own script run whenever something is mounted. Your own script should then ...
jksoegaard's user avatar
  • 79.6k
1 vote
Accepted

auto mount HFS+ filesystem from disk image (.dmg file)

You can simply add the .dmg file to your Login Items in: System Preferences > Users & Groups > (you) > Login Items The .dmg file will then automatically be mounted when you login. Update to ...
user3439894's user avatar
  • 59.8k
1 vote

Login problems with Automount and SMB shares

Try this: /- auto_smb -soft,noowners,nobrowse,rw,nofail
Seamus's user avatar
  • 5,077
1 vote

What's wrong with my automounter config?

Ok, i got: sudo chmod 600 /etc/auto_server
DenimTornado's user avatar
1 vote

How to stop AutoMounter from trying Network Shares on High Sierra?

Sorry, I am a giant doofus. I thought AutoMounter was part of MacOS when in fact it was a utility I had installed a while back and didn't configure well. I was confusing it for auto_mount. I guess it'...
Darf Nader's user avatar
1 vote

automounting NFS 4 results in kernel panic

I hit this same problem, mounting NFSv4 volumes on a High Sierra (10.13.3) MacBook Pro, from a known-good Solaris server. I unchecked the "put hard disks to sleep when possible" option in the Energy ...
user1522204's user avatar
1 vote

How to set default mount options?

If I understand your question, you should have a look into /etc/auto_master This article explains very well how auto-mount works https://useyourloaf.com/blog/using-the-mac-os-x-automounter/
Nibor Ndj's user avatar
  • 557
1 vote

How to reliably keep network share connected for a specific user using automount?

Assuming you do NOT want to enable the "root" user login feature and loosen up file and directory permissions enough to potentially open up your system to a significant security attack vector (and I ...
Bryan 'BJ' Hoffpauir Jr.'s user avatar
1 vote

automount: Another automount is running

I see a process autofsd, which is performing the auto mount, but I run Mac OS X 10.12.6 so maybe that is different. When I run automount it updates the mounts (from the auto_master file)
paul's user avatar
  • 11
1 vote

How to automatically mount NFS shares on OS X

Although quite out of date, I still picked the Stack Exchange page first, 'cause the quality is always so good. In this case, however, Apple's continual re-working of OS X, combined with the passage ...
BISI's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible