Connecting to folders in NAS automatically on login

Discussion in 'macOS' started by 30secondstosam, Mar 8, 2013.

  1. 30secondstosam macrumors newbie

    Joined:
    Oct 12, 2011
    #1
    Hi all - something that does my head in every morning at work (because I'm lazy) is connecting to the NAS automatically. I know that on this small LAN, the Windows (*shudders*) machines automatically connect and there is no mounting required.
    However, in Mac, we have to go to finder, click on the NAS, then click on the folders we want to use and THEN it mounts them.

    Any ideas? I've tried a couple a couple of login scripts that didn't work. Using Snow Leopard

    Thanks all
     
  2. switon macrumors 6502a

    Joined:
    Sep 10, 2012
    #2
    RE: automounting of shares...

    Hi 30secondstosam,

    I don't quite know what you mean when you say that you tried a couple of login scripts, so perhaps you have already tried the things I suggest below. Sorry if that is the case...

    First of all, you can use the Login Items in the Users & Groups pane to add a network share to your login. When you login then the network share should be mounted (assuming, of course, that you have the proper permissions to do so, but this should be the case if you can mount the share manually) automatically.

    Code:
    System Preferences -> Users & Groups -> <username> -> Login Items -> + -> <shared volume>
    Secondly, if the first method did not work, then you can add the desired mount to your /etc/auto_master map file used by the automountd daemon which is run by the launchd daemon at boot time. This will mount the share at boot time. While this is a little more work, it is well documented how to do this in the manpages: "man auto_master", "man automount", "man autofs.conf", "man automountd", etc.

    Regards,
    Switon
     
  3. fhall1 macrumors 68040

    fhall1

    Joined:
    Dec 18, 2007
    Location:
    (Central) NY State of mind
    #3
    Once you have your NAS volumes connected. Go to system preferences, login items, drag the volume icon(s) from your desktop into the login items window to add them to your login items.
     
  4. AshMan macrumors regular

    Joined:
    May 1, 2010
    #4
    You could also created an Automator workflow to start on login as well to map the drives.

    I do it with an Automator workflow so the drives map without opening new windows of the contents. It just mounts the shares.
     

Share This Page