Auto mounting a network share in OS X

Discussion in 'macOS' started by Aegelward, Jun 19, 2006.

  1. Aegelward macrumors 6502

    Jul 31, 2005
    hello there, i just got my first mac a few days ago. i'm extremely happy with it, except for one minor niggle to do with networking-

    i can't see any way to automatically mount my NAS's shared drive, its a buffalo linkstation 2.0

    can anyone shine any light on it?
  2. plinden macrumors 68040


    Apr 8, 2004
  3. Le Big Mac macrumors 68020

    Le Big Mac

    Jan 7, 2003
    Washington, DC
    you should be able to do it in accounts-->login items. Then you should be able to add any server. I imagine you could create a script to do it also within the finder.
  4. realityisterror macrumors 65816


    Aug 30, 2003
    Snellville, GA
    Let us know if you know how, Le Big Mac.

    I tried to write a shell script to mount a network drive. I got as far as mounting it, but I couldn't find out how to make Finder realize it and place it on the desktop...
    This doesn't apply to the original poster, but there is also the question of if the drive is on the network at login... :confused:
  5. rockstarjoe macrumors 6502a


    Jun 2, 2006
    washington dc
    I use a Buffalo NAS too, and have the same issue (as a new switcher). The lack of "reconnect at login" is annoying, but adding the servers to your login items fixes this. What is more frustrating is the fact that the network drives are all dropped when the mac wakes up from sleep. The workaround I have found is this:

    Mount the network drives that you want to keep persistantly. Create an alias for each drive. Copy to your home directory and login items. Then if a drive gets dropped you can use spotlight to find the alias to re-mount (or use quicksilver to really speed things up).

    If anyone knows a better way to handle this please let us n00bs know! I'd love to have a hotkey combination that would just re-mount all of my network drives. Is this possible?
  6. fradac macrumors regular

    Oct 24, 2003
    Atlanta, GA
    i used a simple solution

    just mounted the drive once, made a link (by dragging the drive icon into an empty folder) and then draggint the link into the login items

    works everytime
  7. Greebazoid macrumors regular

    Mar 20, 2006
    Cape Town

    as a relative newbie to Macs, this network clunkiness does surprise me. And when I asked a long time mac friend of mine how to automate it, he gave me a "why on earth would you want to do that" stare..

    I've created alias' for the network shares that I use and dropped them on my desktop. A simple double click on the alias icon and bingo, I'm there.

    Of course, whats silly is that as soon as I've double clicked on the alias, then the drive icon is also put onto the desktop.

    Ah, the joys and quirks (and clunkiness) of OS X
  8. rockstarjoe macrumors 6502a


    Jun 2, 2006
    washington dc
    Sometimes I find the aliases stop working, even when I am connected to the network. I'll double click them and nothing happens. I have to trash them, log in to the server and create new aliases. This happens randomly, and is really annoying. So far as a new switcher this is my one big frustration with OS X. I use network shares a lot!
  9. 7on macrumors 601


    Nov 9, 2003
    Dress Rosa
    They had this working in 10.3.0 but took it out in 10.3.3. Why? Because there was no way to disconnect from the server when you connected. Too many people complained and they put it back to the old way.
  10. Killyp macrumors 68040


    Jun 14, 2006
    I store a lot of my documents on a server at home. Just added it to the login items on my MacBook Pro. Works a treat!!! Not sure what's going to happen when I take my MBP away from the network though...
  11. cb31 macrumors member

    Mar 13, 2005
    This drives me nuts and means my wife won't bother using the mac as frontrow loses the programs stored on my network drives everytime the machine has been put to sleep.

    Very annoying and should be fixed. If you specify that a network drive should be connected at login it should be connected after a sleep.
  12. ruutiveijari macrumors regular

    Dec 11, 2005
    I just today purchased a Linkstation 300GB. How can this be so difficult? Everytime I put one of my computers to sleep it loses connection to my NAS and I have to reconnect to it with the alias and enter my passwords and so on. I can't trust this to do anything, since I'd like to use it as my primary media drive and to store all of my documents and EyeTV recordings.

    Really, isn't there any third-party program for this?
  13. rockstarjoe macrumors 6502a


    Jun 2, 2006
    washington dc
    My solution

    I have a Buffalo NAS too, and as a new switcher this is my number one complaint about OS X. However, I have a workaround that should help some of you. First, create an Automater workflow that mounts these drives. Save it. Then save it again as an application and put it in your dock. Now you can click the little robot icon when you wake up from sleep and it will auto-reconnect all of your mounts. Also, if you uncheck "put drives to sleep when possible" in energy preference your network shares are a lot less likely to be dropped. Here's hoping they fix this in Leopard. :rolleyes:
  14. martintyler macrumors newbie

    Feb 9, 2005
    automount works ok for nfs as far as i can see, but it just wont play with smb.

    Every hit on google or here talks about 'login items' like its a solution to this problem. For me this isnt a solution at all, I dont log out i just close my macbook.

    Also, automount is designed to mount on demand, not to mount all drives at boot or login then forget about them.

    mount_smb seems to work ok, but automount cant seem to pass it the right parameters - I tried to debug this but the source for darwin automount depends on some non open source libraries, so you cant actually build it, so gave up.

    This really surprised me as a relatively recent switcher I thought things were meant to 'just work' ;)

    So, since nfs works, whats the best nfs server for windows?
  15. Trebz macrumors member

    Mar 2, 2006
    I switched about 10 months ago, and now have two Macs. Overall, this is one of my biggest complaints about the OS. Being able to properly map a drive like I do in XP is very high on my wish list.

    The other annoyances are being unable to maximize windows in to take up the full screen with the click of a button, not having a delete and backspace key, the difficulty of getting expose' to work with a non apple mouse.
  16. digeridooguru macrumors newbie

    Oct 27, 2006
    All is not lost... Try this.

    I was dealing with the same issue as many of you automounting shared folder on a linkstation (smb'ers).

    I have not tried it yet, but perhaps you may want to go to this site and give one of these options a try for automounting:
  17. iMark macrumors member

    May 25, 2006
    Newcastle, England, UK
    in finder click apple then > recent items > recently mounted servers will be at the bottom of the list.

    now if anyone knows how to change the server icon?

    i have a LaCie and a nice icon for it but every time it's unmounted then remounted it goes back the the default purple icon. gahhh!
  18. techmonkey macrumors 6502a

    Jun 8, 2007
    Sorry to revive this old thread, but this is one of my biggest complaints about OSX. This is my first Mac and I use network shares to my WinXP desktop all the time.

    Whenever I wake from sleep, my system pops up with a box after a minute or so stating that network shares were disconnected, and I then have to unmount them.

    Has anyone found a solution for this? If anything, is it possible to stop the window from popping up after waking from sleep?
  19. jetace macrumors newbie

    Aug 25, 2007
    An old thread, but I may be able to add something...

    I switched about a month ago and as a windows user since 3.11, this issue of reconnecting network drives just seems madness to me - how could OSX sensibly be used in a business environment (where storing files locally is actively discouraged)...especially as this 'just works' in windows !!

    Anyway, at the same time I bought mine, my mate bought his too and as he wanted to set up his first wireless network he bought an airport extreme with it . Now, I haven't had a chance to investigate his set-up but when I spoke to him a couple of days ago he didn't know what I was talking about and explained that there was an application in the "Utilities" folder called "Airport disk utility", which kept his drives persistent at all times. I had a play with this on MBP, but had no luck.

    I'm a noob to OSX, but I couldn't get the Airport Disk Utility to see my network disks and from where I'm standing it looks as though Apple have built some proprietary stuff into the airport extreme to handle this.

    Can someone explain what this application actually does 'cos it sounds like the answer if it could be configured to see network drives without having to buy an airport extreme.
  20. nsbio macrumors 6502a


    Aug 8, 2006
    Well, networking is one area where OS X is downright crappy compared to Windows XP (do not know about Vista). It is such a basic thing that it is a shame that Apple has not gotten it right. I would gladly trade all these useless Genie and Ripple effects for well-functioning networking.

    Question for folks with Leopard previews: have they fixed networking?
  21. techmonkey macrumors 6502a

    Jun 8, 2007
    God I hope. If its not fixed I will be very disappointed. Being a switcher since June, the networking aspect is my biggest gripe with Macs. Its pretty pathetic to say the least, especially the hangups if you do not unmount your network drivers before putting it to sleep.

    Does anyone know someone that will automatically unmount all drives when I put my MBP to sleep? I have an applescript that will do this, but I don't want to have to manually run it every time.
  22. obriens2 macrumors newbie

    Sep 7, 2008
    1 Year Later...

    I was poking around tonight looking for a solution to scheduling OSX tasks, and found what I would call the Holy Grail. (If you haven't already found it...)

    I wanted to keep my drives persistent, but lose my network drives every time my Mac sleeps. I have an automator task to map all of the drives, so it's not difficult to remap them, but since my Itunes library is on one of those drives - each time I lose the mapping, I can't access my library.

    Here's the fix (sort of...)
    Using the automator task to map the drives
    Download the app called Cronnix for the Mac (This is a cron scheduler, a really easy one, to schedule tasks in unix)
    Open Cronnix and setup a new task to run the already designed automator action
    Schedule the Cronnix task as often as you'd like (I set mine to run every day at midnight, but you could do it more often.
    Note - running the script to map the drives has no ill impact if they're already mapped, so running this every hour wouldn't hurt a thing.

    Happy scripting...!
  23. philberndt macrumors newbie

    Jan 18, 2011
  24. leftheaded macrumors member

    May 10, 2010
    my volumes always open in finder when i restart my computer. is there a way to stop this? i just want to reconnect to the server/nas, not open a window

Share This Page