Auto-mount network volumes upon changing locations

As I am shifting my Macbook between office and home and with working in office I need to access frequently into a few network locations which I ended up mounting them regularly manually.
Any solution on that so I can pre-set what volumes to mount upon changing locations?
Or perhaps auto-mount network volumes upon joining a particular SSID?

I'm sure there's a way to Script it, but that being beyond my capabilities, here's how I'd do it using Dynamic mounts...
Make two New Folders on the Desktop, (Office and Home might be good names).
After Mounting the Volumes at work, drag the Globe Icons to the Office Folder, after mounting the Shares at home, drag them to the Home folder, (you can even rename them once in the folders).
Drag those two Folders to the Dock between Applications and Trash to have two popup menus for nearly instant connecting.

Similar Messages

  • Mount network volume: different users same credentials, see different shares

    A set of network volumes on a NAS need to periodically be backed up to a local USB disk. Manually, I can mount most shares (from a Finder window). In a shell script I can list all files due (find) and use that list for backing up to a local USB volume (cpio). So far so good. However, I need to mount these network volumes first. The mount command doesn't seem to work for me.
    How do I mount a network volume in a shell script?
    Also I noticed that if under fast user switching user A logs in with credentials uName and uPassword, the NAS shows 6 shares to choose from. When user B on the same machine logs in with the same credentials uName and uPassword, only 5 shares are visible and one is not shown. It looks as if the credentials do not uniquely determine the volumes offered for mounting. Also, when user B mounts a share, it appears to be owned by user A (who is logged in but has not mounted any share on the NAS) rather than owned by B or by uName...
    How do I mount this volume as user uName rather than A or B?
    How can one uniquely determine the identity of the volume? Network volumes don't show UUIDs and the name given in the /Volume/ folder can change, as is discussed in message 11871367.

    eljonco wrote:
    I just checked: after a reboot, user A logs in (automatic login enabled), user A logs out, user B logs in, ls -a /Volumes only shows local HD and a USB HD. No network mounts there.
    In the finder window, the NAS shows up on the left. Clicking it and entering credentials uName, uPassword, a list of five, not 6, items is offered for mounting. So your options 1 and 4 are then ruled out, unless an alias made by user A and copied to user B's home folder would still link to user A's mounting options.
    Actually, only option 1 is ruled out. That Finder list is simply not reliable. It is likely cached somewhere and could be restored by deleting some hidden preference file. It regularly causes people to freak out when they see some sharepoint listed on a network that they have long since left.
    If you did Go > Connect to Server in the Finder and typed in the location, you could still create an alias.
    Once mounted one of 5 shares as uName with uPassword, an ls -al /Volumes shows the local drives and
    drwx------@ 11 B staff <date> sharename
    and all folders in sharename also show B:staff as user:group. I find that strange, as I did not log in to the share with credentials B, but with credentials uName. Anyhow.
    The uName user is for the network share. When MacOS X mounts that, it gives it permissions appropriate for the user who did the mounting. If you did an NFS mount as root, the server would handle permissions via UNIX uid and gid. I'm really not familiar with the details of AFP.
    As I read in a post about autoFS that 'cd /Volume/theHiddenShare' should magically mount that share, I gave it a shot. Alas, '/Volumes/theHiddenShare: No such file or directory'. Same long shot in the dark in the 'Go/Connect to' dialog gave 'The folder cannot be found'. Not surprisingly, I suppose.
    Yes. That has to be setup
    Here is what I've done to my /etc/auto_home:
    # Automounter map for /home
    #+auto_home     # Use directory service
    # Get /home records synthesized from user records
    #+/usr/libexec/od_user_homes
    myserver.org -allow_other,reconnect,fstype=sshfs [email protected]:/home/me_remote
    I'm not on a big network, so I've disabled the system functionality by commenting out "+auto_home" and "+/usr/libexec/od_user_homes". Now, the system doesn't manage /home and I am free to do with it what I want. This will mount the path "/home/myserver.org" connected to the "me_remote" user on "myserver.org". I'm using the funky MacFUSE sshfs filesystem. Your AFP file system should work much better. Your line would look something like this:
    drive5 -fstype=afp uUser@MyLocalServer:/theHiddenShare
    Run "automount -vc" to reset your automount system.
    Next use Finder Go > Connect to Server and type in "afp://uUser@MyLocalServer:/theHiddenShare".
    You want to mount the drive once so that you can store uPassword in your keychain.
    Now unmount the drive.
    The Finder mounts all go into /Volumes and, as you have discovered, can get themselves confused. This automount will be at "/home/drive5". All you have to do is enter that folder in the Finder and it will be automatically mounted. If you haven't used it for a while, it will be unmounted automatically.
    You may have to play around with this a little. I don't have any network AFP share that I need to mount on a regular basis, so those parameters may need to be adjusted somewhat.

  • Auto-mount network drive?

    Hi all,
    I have a Mac Pro running Leopard and a 1TB Buffalo Terastation on my home network. I am able to access with the Terastation from the Mac by going though Finder. To do so, I have to click on the name of the TS on the left side of Finder and then click on the "share" folder in the next column. This mounts the network share as /volumes/share.
    This is OK but I currently have my iTunes library on the Buffalo TS. However, if my iPod is already docked before I power up the Mac, iTunes can't find its library because the share isn't mounted. I have to manually make Leopard mount the share by the procedure in the above paragraph.
    Is there a way I can get the Mac to auto-mount the network share like I can under Windows or Linux? Since MacOS X is Linux based, can I use the Linux method for auto-mount the share by editing a fstab file?
    Any info will be appreciated. I've tried searching and have tried a few tips but haven't got it working yet.
    Thanks,
    Steven

    I'm not sure if this solution works or not, to be honest.
    I've added my mounted sharepoint to my login items aswell as editing the file you described:
    MacProBU:/MacProBU x url net, automounted,url==afp://admin:admin@"AFP on Tolton2TB.afpovertcp.tcp.local/MacProBU" 0 0
    MacProBU is the name of the Sharepoint and drive, once it is mounted.
    AFP on Tolton2TB.afpovertcp.tcp.local/MacProBU is the location of my sharepoint when I 'Get Info' on my mounted drive.
    My Network drive now seems to mount and be ready to use at login, however a Finder window now opens every time, showing my the contents of the Share.
    Not too much of a problem, but a bit annoying.
    I've read tons of articles about auto-mounting shares, AFP and SMB etc drives
    All seem a bit mis-matched with no idea what's going on. And a lot are complaining about the removal of NetInfo in leopard.

  • Auto-Mounting Network Shares/Disk Images

    Hi,
    I'd like to share how I solved my problem with auto-mounting a network disk image/folder share to be used as a custom library/location for Aperture 3.xx. I can now either reference the master photos from the network or have it copy to this disk image volume on the network, although it might be better to have it copy to the disk image volume, so one can move it around as a file later. I researched hard over these forums and internet resources and discovered what I thought was the best way to accomplish this. Initially, I found right away that Aperture doesn't allow you to create a library over your network drive or a home server such as mine, unless it is partitioned/formatted to Mac OS. This wasn't acceptable for me as I also run Windows 7 PCs that need to utilize the network folder shares, as well.
    I don't understand why I don't have this problem using iPhoto 2011, and do with Aperture 3.0, which is a far more expensive application. Anyhow, I read a little about NFS, but didn't know how to implement this or if it required the Mac Server and/or a non-built in application, it probably isn't compatible with windows. So, I found that by creating a .DMG disk image file, as a partitioned/formatted Mac OS file in Disk Utility, and saving it to the network folder of my choosing, did the trick.
    Steps I used to accomplish this:
    -Go to Disk Utility and create "New Image"
    -Select format w/ MacOSX Extended(journaled) and choose "single partition/GUID" type (or whatever you want)
    -Enter a custom size of your disk image (ex in 1GB or 1TB). Click "Create"
    * I created this locally 1st and then I copied it over the network, to the network folder/subfolder on my HP Mediasmart Home Server EX495. I found that creating it over the network took too long and would crash Disk Utility.
    -After it's copied to your desired location over the network folder, open Automator.
    -choose "Application" workflow, double-click to add "Get Specified servers". Enter location of your server (ex smb://hpserver/)
    -Then add "Connect to Servers",
    -Then add "Get specified Finder Items". Click Add, and locate your disk image file over the network. (this will automatically add the location path. For ex. smb:/hpserver/photos/aperture_library.dmg)
    -Then add "Mount Disk Image".
    -Then test workflow by clicking on "Run" button on top right of window. If your
    Finder->Preferences->General settings on your Mac is set to show "Connected Servers" on your desktop, your disk image will appear on you desktop.
    -Finally, save this Application workflow as an application by clicking File menu->Save As. Save this to your documents folder area.
    -To have your Mac auto-mount your disk image automatically when you login:
    ->go to System Preferences->Accounts->your "Admin account name"->Login Items
    ->click "+" sign and navigate to the Documents folder, to where the Automator application you saved
    ->click Add. Once done, it will appear on the Login Items area. You can choose to hide it, if you want by clicking the checkbox.
    -Now Restart your Mac, and now your disk image should auto-mount.
    Hope this helps, as it helped me solve the issue. Too bad one must have to program this and it is not native on MacOSX.

    Too many steps. Do this:
    1. Go to Disk Utility and create a disk image with the following properties:
    Format: Mac OS Extended (Journaled)
    Partitions: Hard Disk
    Image Format: Sparse bundle disk image
    2. Copy the image you just created to the share on the network where it should reside.
    3. Open System Preferences, and click on the Accounts icon
    4. Select *your account* and click on the Login Items tab
    5. Drag the icon for the disk image from the network share into the Login Items list
    If a login item is something on a network share, it will reconnect to the share it's located on automatically first.
    If a login item is a disk image, the disk image will be opened and mounted.
    It's important that the image is a journaled one because if it isn't, being disconnected from it while writing would be potentially disastrous.
    It's important that the image is a sparsebundle for two reasons: sparsebundles only take up as much space as they need (e.g., a 1Tb sparsebundle with 100M of data takes up about 100M of space), and they also break the disk down into smaller files. If the underlying filesystem on your network share is FAT32, then no file can go over 4Gb. If you use a sparsebundle, of course, there's no practical limit to how large the disk image can get. Also, it can speed up certain types of backup procedures.
    I suggest using partition type "Hard Disk" instead of "1 partition GUID" because, as a disk image, there's no sense in having a partition table or making it bootable (because you can't boot from the image).

  • Mounting Network Drive Upon Startup

    Is it possible to mount a network drive upon startup so that my auto backup program can see and backup to it?
    If so, how is this setup?
    Thanks,
    James

    Try doing i manually instead of using sharepoints tool.
    http://www.bombich.com/mactips/automount.html
    Ive always doen it this way and had success wheher wired or wireless... unless ofcourse the network jsut wasnt avaialble.

  • Mounting Network Volumes in the Command line

    What is the command for mounting a Network volume in a command line.... Plus when done this way will it get the password from keychain?

    The command in question is mount:
    <pre class=command>mount -t type server:/path/to/share /path/to/mountpoint</pre>
    This will mount the share /path/to/share from server server using protocol type (e.g. 'afp', 'nfs', 'smb'). The sharepoint will be mounted at the local /path/to/mountpoint
    mount will not use the keychain. If you require passworded access you can either include the username and password in the command, or switch to using an AppleScript solution which can use the keychain, and can be involked via osascript:

  • Un-mounting network volumes with command line

    Does anyone know how to unmount a network volume from the command line in OSX. Using umount deletes the mount but not the mount point. I can't get diskutil or disktool to do it.

    I don't use smb much, but it does look like there's something funny going on. On my system, smb shares mounted from the "Finder" are unmounted normally (mountpoint deleted, "Finder" icon gone) using: 'umount', or eg.<pre>osascript -e 'tell application "Finder" to eject disk "volumename (not mountpoint name)"</pre>But shares mounted using 'mount_smbfs' behave as you describe with respect to the "Finder". But I couldn't reproduce the ".autodiskmounted" file issue in my limited testing involving "normal" use. Sorry, I don't have much more to add - maybe someone more familiar with smb can comment...

  • Auto Mount Network Drives Broken

    Hello,
    I have an automator script setup which auto mounts my server 2008 network shares on my desktop, now having upgraded to lion it will not let me do this, it also wont alow me to connect manually via the "connect drive" option!
    Can anyone point me in the correct area?
    Also i use a mighty mouse to scroll from one web page tot he next, not with lion this does not seem to be a available any help again?
    Ollie

    Is there any way to add a delay of around 60 seconds before the application tries to mount?
    Have you tried the delay verb from the StandardAdditions suite?

  • Auto-mounting AFS volumes

    I've read there are two 'ways' of doing it, 'dynamically', and 'statically'. Which way do I want to do it, the following, and how do I do it, exacly?
    I've got GNU Linux servers tarfu, snafu and fubar. Each server is sharing at least 1 volume via netatalk. I have had to mount these volumes after I login since I set up the system about a year ago. I noticed that the "connect at startup" (or whatever it was called) checkbox present from OS ~ through OS 9 was missing, and figured, "oh well. I'll live without it", well, Now I am done living without it.
    I want to mount shares at a) boot time or b) login time.
    How?
    I have scoured google for decent instructions, but all I came up with was this: http://www.bombich.com/mactips/automount.html
    Not very helpful. There are no Auth options, which I require, and the instructions just aren't written very well.
    Does anyone have any instructions, a blow-by-blow document telling me just how to do what I want to do?

    What about applescript ??
    I set up an applescript for a client yesterday, that i made into an application... which i told to load on login... would that help ??
    My script is below (you'll need to copy into 'Script Editor') and save as an application after cutomising it:
    COPY FROM HERE:
    tell application "Finder"
    if (exists disk "sharename") then
    set volumemounted to true
    display dialog "'sharename' is already mounted on the Desktop" buttons {"OK"}
    if volumemounted = "true" then
    quit
    end if
    else
    try
    mount volume ("afp://username:[email protected]/sharename")
    display dialog "'sharename' was mounted on your desktop." & return & return & "Happy Sharing!" buttons {"OK"}
    on error
    display dialog "There was an error mounting the 'sharename' Disk. Check the disk is connected to its computer and turned on." buttons {"OK"}
    end try
    set volumemounted to true
    end if
    end tell
    COPY TO HERE
    You'll need to customise the parts in bold...
    Ask if you need further clarification...
    Cheers.
    Macbook 17" Duo2   Mac OS X (10.4.8)  

  • Mounted network volume info

    We have two file servers each with multiple shares. I've been looking for a method by which applescript examines all mounted volumes on the desktop and determines which network shares come from which file server. No luck so far. I realize that I could just build a table (we're only talking about a few dozen shares on two servers), but I'd rather have a dynamic solution for a variety of reasons. Anybody have any suggestions?
    Thanks.

    Hello StiffMittens,
    You may possibly be able to extract server information from alias of shared volume.
    Like the following. The first two are getting dump data of alias record, the last one is using 'alias description for' command of Satimage OSAX.
    Only if they contain some useful information to identify server...
    Good luck,
    H
    --SCRIPT1
    set a to "AFP_VOL:" as alias
    return {{«class TEMP»:a}} as string --record dump (undocumented method)
    --END OF SCRIPT1
    --SCRIPT2
    set a to "AFP_VOL:" as alias
    set fp to "" & (path to "desk") & "alias dump.txt"
    writeData(fp, a, {_append:false})
    on writeData(fp, x, {append:append})
      text fp: output file path
      data x: anything to be written to output file
      boolean _append: true to append data, false to replace data
    local a
    try
    open for access (file fp) with write permission
    set a to fp as alias
    if not _append then set eof a to 0
    write x to a starting at eof
    close access a
    on error errs number errn
    try
    close access file fp
    on error --
    end try
    error "writeData(): " & errs number errn
    end try
    end writeData
    --END OF SCRIPT2
    --SCRIPT3
      using Satimage OSAX
      http://www.satimage.fr/software/en/downloads_software.html
    set a to "AFP_VOL:" as alias
    return alias description for a
    --END OF SCRIPT3
    Message was edited by: Hiroto

  • Auto Mounting Network Shares

    How would I go about automatically mounting Windows CIFS shares as well as Linux NFS and Samba (SMB) shares on my desktop at login???
    Thanks,
    -brian

    Once they are mounted on your desktop you can drag them onto your login items window in your account preferences.

  • Why don't network volume mounts (login items) configured in Profile Manager show up

    Using Lion server and Lion clients.  Bound both the server and client to Active Directory and successfully got Profile Manager up and running.  All I really need from Profile Manager is the ability to mount network volumes so when the user logs in it mounts their home directory.  Please note we do not specify any home directory paths in AD.  I can login with my AD accounts on the Lion client and get other Profile Manager settings to work, however when I try and mount a network volume via login items nothing happens.  I am using SMB for this.  If I try to manually connect to the same path via Go -> Connect To Server it works fine.  For a simple test I even created a folder on one of my Windows servers D drive and shared it and within profile manager configured it as SMB://server/share and still nothing.  I tried setting it in the Dock section as well which I read in another post somewhere but all I get is a question mark.  I have tried all variations of server name, FQDN, ip address, etc.  I know it's not permissions since it works when I try it manually so am really at a loss here.  Is there any way to log what happens at login to see if it's even trying to mount the volume?  I do know the client is getting the profile since i can see it in system preferences but it never works.  Any ideas would be greatly appreciated, thank you!

    @bkma did you find any solution? i run into the same problem.

  • Network Volume adding Numbers and centralized libraries

    Hello,
    I would like to know what determines the numerical suffix to the network mount points. Currently I have a mac mini sharing my family iphoto library and music that two macbook pro's connect to. Currently my issue is in using iphoto library manager, it says to mount network volume before opening the iphoto library, but for some reason the library volume keeps changing.
    Sometimes I'll login and it'll just be Pictures, next time it'll be Pictures-1, Pictures-2, etc.
    The same thing happens when I use Time Machine shared disks, etc.
    When I login through Finder, everything is ok, but I don't like having to always go into settings and re-find libraries for photos/media/etc.
    This leads me to ask a few questions...
    1) Is there any way to ensure that the volume names always stay the same?
    2) I am looking to at some point implement Snow Leopard Server, and I need to know that if I have shared volumes over the server, that this won't happen. Specifically, I'll be logging into the server from different countries and I can't imagine having to constantly remotely manage it to fix volume names.
    Currently, all of these drives that are showing as numbered suffixes are network drives (time capsule/NAS/Mac Mini shares over Wifi) so I'm trying to figure out what the underlying problem is so that I can minimize/eliminate it.
    This is very frustrating for me as this is my first Mac setup and I jumped in headfirst with the whole family system, but I've spent years managing networks on PCs and I've never encountered this problem. I am trying to centralize our home network like I've done at other locations but before I invest further, I want to know that these little annoyances won't be a hinderance.
    Thanks!!

    I'm having the exact same issue, which breaks all my references to the volume. I have to update the path to include the new number <volumename>-5 currently. The problem happens when I do a restart, or loose network connection for other reasons. I happens on my desktop (Mac Pro) and my laptop (MacBook Pro) when mounting to my Tiger Server (PowerMac G5). It is extremely frustrating and makes code development a pain in the butt when I use my server for file storage.

  • Mounting all local hard drives before auto mounts

    I have autofs configured to mount network drives at a location which is a couple of levels down inside a local, but secondary internal drive. This works fine if the local drive is already mounted, but upon rebooting the autofs locations appear to mount first then force the internal drive to be mounted at '/Volumes/Shares 1' instead of /Volumes/Shares.
    How to fix?
    Thanks.

    AFAIK, you can't. However, you'll get more help at the Unix forum under OS X Technologies. For Mac OS X startup sequence, see http://support.apple.com/kb/HT2674 and http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemS tartup/Articles/BootProcess.html#//apple_ref/doc/uid/20002130-BAJJBJEG for starters.

  • Auto-mounting TC on Leopard

    Greetings!!!
    Has anyone ever tried to \[auto\] mount TC disk upon boot (not at login)? I don't seem to find /etc/fstab on 10.5.6 and the vifs output is completely empty. *diskutil info <TC_Disk>* doesn't return anything either; I think it's sensible though as its not connected as local-disk but it does mount under /Volume - I'm a bit confused here. Can anyone please direct me to the right direction please? Cheers!!

    Sure; will try to do a write up to night. Basically I was trying to iTunes library area across multiple machine; it's even possible for multiple users as well. Cheers!!!

Maybe you are looking for

  • WLS threads - how to retrieve individual operations?

    Hello everybody, can anyone tell me if is there a way to find out which WLS thread is performing each individual operation - for instance, compiling or executing a specific JSP? TIA Paola R.

  • Setting fonts in reports.

    Using labview V6.1 and Windows 2000. I am using the Append front panel image to report.vi to attach a panel image to a report. I would like to set the font of the text that is in this image, but the set report font.vi does nothing for this neither do

  • Issue with VL10b

    Hi, I am facing the very weird problem. i am using the retail envirnoment ecc 6.0. i have scheduled daily batch job for outbound delivery creation from STO's through VL10B transaction. As per the SAP standard system it should create a single delivery

  • IPhoto 11' not opening ??

    When I click on the iPhoto icon it just displays a ? and does not open the program. This only happens when one of my external hard drives is not connected, when it is iPhoto opens just fine. I thought this might be a referencing problem but have trie

  • From javawebserver to tomcat

    Hi! I used to use java web server, but now I need to migrate my application (JSP and servlets) from java web server to tomcat. I installed tomcat for windows, can you tell me where to put classes and JSPs?? and if there is some configurations that I