persistent connection to SMB shares

Discussion in 'macOS' started by Mr. Shickadance, Oct 15, 2010.

  1. Mr. Shickadance macrumors newbie

    Joined:
    Oct 15, 2010
    #1
    SOLVED

    Well, I was able to solve my own issue shortly after posting this message. I don't know why my searches didn't point this out, but it was as simple as creating a symbolic link (alias in OSX terms) to the share.

    For example:

    $ ln -s /Volumes/STORAGE /Users/ME/STORAGE

    Then, in a finder window I can drag 'n drop the STORAGE link to the devices pane on the left. Now every time I click STORAGE it brings me right to the files without any reconnecting.

    Now for posterity's sake, my original post:

    -----

    Hello all,

    I am a long time Linux user who has just taken a job doing some basic IT work for a small company. The company uses many Mac computers (mostly running 10.6.X) and has a central Windows server to host files and software.

    I need to have a Windows share mounted persistently, and this has become a problem. Basically I want it to be completely transparent to the user if possible.

    What I've already done

    First of all, I have already added an SMB mount to the users login items, as well as essentially doing the same with automator. This is not giving me a persistent connection.

    What happens now

    So, with the two methods I've already tried I get a server mounted which can be seen from Finder. The main issue is that every time the server is selected in Finder, there is a delay while the computer reconnects. I understand it still needs constant communication with the server, but how do I at least minimize this delay?

    What I want

    On my Fedora Linux machine, I added a mount line to /etc/fstab which mounts the same shares whenever I login. Using the Gnome file manager I can select the folder where my share is mounted, and with a very small (almost non-existent) delay, all the files are shown. I can click again and there is no indication of a reconnection with the server. I want to replicate this behavior on OSX.

    What can I do?

    So, in the end what can I do aside from adding the mount to login items? Windows also does this easily, it is completely transparent there. Fedora Linux handles this perfectly as I already mentioned.

    I have found many threads on the internet with similar questions, but only the solutions that I've already tried and don't really solve my problem. I have the shares mounting on login, but why do they have to reconnect every single time you click the server name in finder? How do I make this appear just as any other mount as I do in Linux?

    Did any of this make sense?

    If anyone can help me I would be ecstatic. As would any future users who find this thread.

    Thanks for looking!
     
  2. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #2
    Another way to do this is to drag the share to the login items in the "Account Preferences".
     
  3. fhall1 macrumors 68040

    fhall1

    Joined:
    Dec 18, 2007
    Location:
    (Central) NY State of mind
    #3
    If you know of a way to get the shares to NOT pop open their finder widow upon bootup, I'd like to know it. I want the shares mounted on the desktop, but not opened in a finder window upon login or reboot.
     
  4. Mr. Shickadance thread starter macrumors newbie

    Joined:
    Oct 15, 2010
    #4
    You and me both. I am in the process of finding a way to do that, as the "hide" check box in login items doesn't appear to do much. I'll be sure to post back if I find a solution.
     
  5. ulbador macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #5
    Creating a symbolic link like that is PROBABLY going to cause some issues in the long run. If for some reason it can't connect to the share, the symbolic link will still work. It will just copy whatever files you move to it to a local folder on your computer, or worse, to a "blackhole" sort of file that just gets overwritten with every item you drop on the link. I have a feeling the latter is what would actually happen, which would be really really bad.
     
  6. Mr. Shickadance thread starter macrumors newbie

    Joined:
    Oct 15, 2010
    #6
    I'm not sure what else would work. I don't understand why this is so difficult in OSX. Being a member of this board, I am sure you have come across many similar questions. I understand leaving details under the hood, but when certain common functionality is required, it shouldn't be hidden.
     
  7. ScoobyMcDoo macrumors 65816

    Joined:
    Nov 26, 2007
    Location:
    Austin, TX
    #7
    Actually it has been discussed on this board before. The suggestion I gave was a blatant ripoff from another poster on this forum. I would have given him props, but I had already closed the window and I was too lazy to look for it again.
     
  8. Playgear macrumors regular

    Joined:
    Apr 10, 2010
    #8
    THIS ANNOYS THE PISS OUT OF ME!

    The only way I've found so far is using third-party software - http://www.macupdate.com/info.php/id/29844/bonjour-mounter
     
  9. fhall1 macrumors 68040

    fhall1

    Joined:
    Dec 18, 2007
    Location:
    (Central) NY State of mind
    #9
    Looks good but $15 to stop an annoyance that takes a couple mouse clicks to make go away is a little steep....maybe if it was $5.
     

Share This Page