Keeping Network drives mounted on Mac

Has anyone figured out how to keep network drives permanently mounted on a mac? I'm having problems with my mac unmounting my nas drives(all my plex media is stored here) after waking from sleep after a long period of time(mostly overnight). 

 

This makes it difficult to use my plex client if I'm away from home for more than a day.

You could try this:

http://www.bluepiccadilly.com/2012/10/mac-os-x-automatically-connect-network-drive-when-your-computer-starts-or-wakes-sleep

I have not tried it though.

You could try this:

http://www.bluepiccadilly.com/2012/10/mac-os-x-automatically-connect-network-drive-when-your-computer-starts-or-wakes-sleep

I have not tried it though.

Just tried it but can't get it to work after wake only after restart like the other commenters in that article. I'm pretty sure I have Sleepwatcher enabled. 

1 Like

Has anyone figured out how to keep network drives permanently mounted on a mac? I'm having problems with my mac unmounting my nas drives(all my plex media is stored here) after waking from sleep after a long period of time(mostly overnight). 

This makes it difficult to use my plex client if I'm away from home for more than a day.

http://useyourloaf.com/blog/2011/01/24/using-the-mac-os-x-automounter.html

http://useyourloaf.com/blog/2011/01/24/using-the-mac-os-x-automounter.html

I'm a newb when it comes to OSX command lines. I couldn't follow the article you linked compared to the one rsava provided. I'm stuck at,"Modify the master map." 

I wish it provided step by step instructions on how to get the automounter to work. I don't think a copy/paste will work. LOL

DeeL2003: Can you try following the steps here: http://mmccurdy.pancakeapps.com/autofs.html

Let me know where you run into trouble.  I've been meaning to write this up for a while in a way that's understandable for people who are not totally comfortable with the OSX command line.  Let me know how far you get and where that writeup can be improved.  Thanks!

DeeL2003: Can you try following the steps here: http://mmccurdy.pancakeapps.com/autofs.html

Let me know where you run into trouble.  I've been meaning to write this up for a while in a way that's understandable for people who are not totally comfortable with the OSX command line.  Let me know how far you get and where that writeup can be improved.  Thanks!

It looks simple enough, thanks! I'll keep you posted.

So if I setup autofs, this should solve my sleep/wake problems keeping my NAS connected? 

And how do I undo everything I followed here: http://www.bluepiccadilly.com/2012/10/mac-os-x-automatically-connect-network-drive-when-your-computer-starts-or-wakes-sleep ?

I use Drive Mounter App from the Apple App Store. It was worked flawlessly so far me. I highly recommend it.

It looks simple enough, thanks! I'll keep you posted.

So if I setup autofs, this should solve my sleep/wake problems keeping my NAS connected? 

And I can undo(or hopefully try) Sleepwatcher and the stpes I followed on this article: http://www.bluepiccadilly.com/2012/10/mac-os-x-automatically-connect-network-drive-when-your-computer-starts-or-wakes-sleep ?

Ok, I got stuck in step 1,lol. After hitting "y" to save, it's prompting me to "File Name to Write: /etc/auto_master" It gives me a list of options but not sure what to pick: ^G Get Help         ^T To Files         M-M Mac Format      M-P Prepend

^C Cancel           M-D DOS Format      M-A Append          M-B Backup File

Ok, I got stuck in step 1,lol. After hitting "y" to save, it's prompting me to "File Name to Write: /etc/auto_master" It gives me a list of options but not sure what to pick: ^G Get Help         ^T To Files         M-M Mac Format      M-P Prepend

^C Cancel           M-D DOS Format      M-A Append          M-B Backup File

Oh, just hit enter to save it as /etc/auto_master (just save it in place).  I'll add that to the instructions, thanks!

Oh, just hit enter to save it as /etc/auto_master (just save it in place).  I'll add that to the instructions, thanks!

Never mind....got it.

Oh, just hit enter to save it as /etc/auto_master (just save it in place).  I'll add that to the instructions, thanks!

I finished everything. I got to step 4 and received this message:-bash: cd: /Volumes/NAS/Videos: Can't send after socket shutdown

I finished everything. I got to step 4 and received this message:-bash: cd: /Volumes/NAS/Videos: Can't send after socket shutdown

 Update:  I think I got everything put in right after a few tries but still can't get NAS folders to automount after reboot 

also on step 3 I got this:

automount: /net updated
automount: /home updated
automount: /Volumes/NAS updated .........instead of mounted
automount: no unmounts

I've found the script and instructions found on this thread work well. I could also easily follow it, which was important for a mac newbie like myself!

http://lime-technology.com/forum/index.php?topic=10274.msg

It uses launchd, which is part of OS X, so no need for third party apps, etc. Basically it loads upon boot/wake and pings the share. If available, it mounts it (and checks this every x minutes). If not found it can be configured to send a wake-on-lan command to the NAS.

 Update:  I think I got everything put in right after a few tries but still can't get NAS folders to automount after reboot 

also on step 3 I got this:

automount: /net updated
automount: /home updated
automount: /Volumes/NAS updated .........instead of mounted
automount: no unmounts

Exactly the same issue here. Odd. 

Any help most appreciated!

Exactly the same issue here. Odd. 

Any help most appreciated!

mmccurdy's works great. I was just looking in the wrong place. Use Finder, search for "Volumes" and your NAS folder will be located there.

Thanks so much for this post.  When I get down to the step three I get the following response:

automount: /net updated

automount: /home updated

automount: /Volumes/mini: mountpoint unavailable

automount: no unmounts

 
Any ideas why it would be unavailable?  

I found this and it works perfectly:

http://lime-technology.com/forum/index.php?topic=10274.msg

@mmccurdy, do you know if automount will work even on a working session (ie. not just after a reboot or login, but even during the session).

I have an issue with a flaky Ethernet-over-power network, which makes by NAS disappear on a regular basis, and my Plex server loses the mount. Would automount automatically find out when the network is back up and re-mount the NAS drive?

I've tried to follow this but can't get it to work...doesn't mount the NAS folders that I need
 
/etc/auto_afp
 
/Users/NASmount/NAS/PhotoServer -fstype=afp,soft afp://username:password@192.168.2.19/NAS/PhotoServer
/Users/NASmount/NAS/TimeMachine -fstype=afp,soft afp://username:password@192.168.2.19/NAS/TimeMachine
/Users/NASmount/NAS/MusicServer -fstype=afp,soft afp://username:password@192.168.2.19/NAS/MusicServer
 
from /etc/auto_master
 
 
#
#
# Automounter master map
#
+auto_master            # Use directory service
/net                    -hosts          -nobrowse,hidefromfinder,nosuid
/home                   auto_home       -nobrowse,hidefromfinder
/Network/Servers        -fstab
/-                      -static
/Users/NASmount/NAS     auto_afp        -nosuid