This is a very weird issue that is apparently so rare Google hasn't been any help in finding a clue as to why this happens or how to fix it.

I use mount_afp on Terminal to mount the music directory of my NAS into my user's home directory because my music library is too big to store it locally in its entirety. It is not permanently mounted whenever I use my MacBook and I don't always mount it after a reboot, only when I actually need my music library or want to start up iTunes.

I would use a command as follows: mount_afp afp://username:password@my_nas/Multimedia/[userdir]/Music ~/Music to mount the music directory of my NAS directly into the Music directory of my home directory (so iTunes can use its default paths and everything)

I also get asked when I'm not in my home network (I also get asked when I'm not in my home network)

Now, whenever I open the Photos app on my MacBook when the music directory isn't mounted the system keeps asking me to log into my NAS twice in a row and again two times after some time passes. As of recent, the issue is no more just restricted to the Photos app, it's asking me in random parts of the system to enter my NAS credentials. I can only assume it is somehow connected to me using mount_afp on Terminal to mount the Music directory of my NAS directly into my home directory when I want to listen to music via iTunes or Sync my iPhone. I'm assuming something wants to access parts of my home directory that the system is aware is on my NAS and asking me to login.

I don't understand why it's asking me to log into my NAS because the photo library is actually stored locally and iCloud sync is on and when the NAS isn't mounted it should fall back to the default Music directory which is empty on my hard drive.

Since OS X is UNIX based I thought mount_afp set a mount point in /etc/fstab or something but the file was empty and included a note not to edit it.

Somewhere the system has to record where to go in order to poll my NAS on its own. Since I also tried a complete reinstall of OS X the strange behavior was gone but it came back right when I used mount_afp again. Permanently mounting it is not feasible as I take my MacBook with me a lot when I'm out and about.

I'm out of ideas.


Might want to check /etc/auto_afp for your mount point and remove if present. Sounds like your Mac is constantly trying (and retrying) to automatically mount that share unsuccessfully.

Try moving to using autofs so you don't need to manually deal with mounting your share and it should be seamlessly unmounting that share when you change networks: http://blog.grapii.com/2015/06/keep-network-drives-mounted-on-mac-os-x-using-autofs/

As for Photos requesting you mount your AFP share despite the Photos Library being stored locally I also don't have a clue there. Maybe changing how its mounted as suggested may resolve your issue? I'll try and recreate your environment here and let you know if I have the same problem (with a possible solution).

  • Nope, with a share created and mounted, Photos open, does not ask me to mount, if I unmount and open Photos again, same thing. Weird. – David Baverstock Jul 10 '16 at 11:09
  • I can only assume it's trying to access my iTunes library in case I want to use music from it for slideshows. Unfortunately I also cannot approach the issue as described on that link you provided. At first it seemed promising but as I need to mount it under /Volumes/Macintosh HD/Users/[username]/Music I get an error from automount -vc automount: /Volumes/Macintosh: mountpoint unavailable Whether I enclose it in double quotes or escape the space character the error stays the same. – SebinNyshkim Jul 12 '16 at 7:46
  • And /etc/auto_afp seems to be missing on my system. nano opens an empty file. – SebinNyshkim Jul 12 '16 at 7:54
  • As of recent, the system has started asking me at random points to login which makes even less sense to me now. I updated my question to reflect this change of events. – SebinNyshkim Jul 12 '16 at 8:11

After much trial and error I finally found the cause of the issue:

I deleted the iTunes folder on my local file system and in doing so OS X kept trying to go for iTunes folder on the NAS because that was the only library it knew. I needed to let iTunes create an empty library on my local file system first before mounting the /Music folder on my NAS over the local ~/Music folder.

If the NAS is not mounted it will now go for the local (empty) iTunes library and the prompts stop.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .