Using fstab for Network Mounts

Discussion in 'Mac OS X Server, Xserve, and Networking' started by enev, Mar 10, 2014.

  1. enev macrumors newbie

    Mar 10, 2014
    I need to mount 13 different network volumes at my office. I work on a lot of different *nix workstations and would like to keep our network paths the same, including on my mac (OSX 10.8.5). So using fstab to mount to a folder called SOL_MOUNTS seems like the best option. I know it's deprecated, but it seems like it should still work.

    Most of my volumes mount fine and there is no problem. Some never mount and other die after awhile. But it's never the same mount that has the problem. I've set my auto mount time out in /etc/autofs.conf to 315360000 to rule out a timeout.

    I've copy/pasted my fstab and auto_master below. Any suggestions?

    nas1:/jobs /MOUNTS/nas1/jobs url automounted,url==cifs://user:password@nas1/jobs 0 0
    nas3:/nla /SOL_MOUNTS/nas3/nla url automounted,url==cifs://user:password@nas3/nla 0 0
    nas3:/shipping /MOUNTS/nas3/shipping url automounted,url==cifs://user:password@nas3/shipping 0 0
    nas4:/graphics /MOUNTS/nas4/graphics url automounted,url==cifs://user:password@nas4/graphics 0 0
    nas4:/online /MOUNTS/nas4/online url automounted,url==cifs://user:password@nas4/online 0 0
    nas6:/graphics /MOUNTS/nas6/graphics url automounted,url==cifs://user:password@nas6/graphics 0 0
    nas6:/online /MOUNTS/nas6/online url automounted,url==cifs://user:password@nas6/online 0 0
    vantage:/watch /MOUNTS/vantage/watch url automounted,url==cifs://user:password@vantage/watch 0 0
    vantage:/output /MOUNTS/vantage/output url automounted,url==cifs://user:password@vantage/output 0 0 /MOUNTS/web/website_web url automounted,url==cifs:// 0 0 /MOUNTS/web/website_web url automounted,url==cifs:// 0 0
    ar1:/archive /MOUNTS/ar1/archive url automounted,url==cifs://user:password@ar1/archive 0 0
    ar1:/restore /MOUNTS/ar1/restore url automounted,url==cifs://user:password@ar1/restore 0 0

    # Automounter master map
    +auto_master            # Use directory service
    /net                    -hosts          -nobrowse,hidefromfinder,nosuid
    /home                   auto_home       -nobrowse,hidefromfinder
    /Network/Servers        -fstab
    /-                      -static
    /hosts                  -hosts          -nobrowse,hidefromfinder,nosuid
  2. chrfr macrumors 604

    Jul 11, 2009
  3. enev thread starter macrumors newbie

    Mar 10, 2014
    Sorry to bump an old thread. I still couldn't get it to work.

    My workaround ended up being going to Automator and writing a bash script using
    mount -t smbfs //user:pass@server/share /mnt/server/share
    for each mount I needed. Then I saved the workflow out as an application, and added the application to my login items.

    A bit hacky, but hey it works and hasn't dropped out on me.
  4. mikepj macrumors regular

    Nov 2, 2004
    Once a network file system is mounted, you can drag the mount point from your Desktop into Login Items to do the same thing. This gets kind of unruly when you have a lot of mount points though, so the Automator action might still be your best bet.

Share This Page