how to mount a DFS share?

Discussion in 'Mac OS X Lion (10.7)' started by nicoisconfusion, Oct 13, 2011.

  1. nicoisconfusion macrumors newbie

    Joined:
    Sep 27, 2011
    #1
    Hi guys i was wondering if anyone knew the command to mount a DFS share in 10.7
    I dont mean to get the home drive to automatically map. Just to run a command from terminal to map a location

    something like

    mount -t dfs://dfsname/foldername/foldername

    If any body could let me know i would appreciate it. There is NOTHING on the net about it yet
     
  2. larkost macrumors 6502a

    Joined:
    Oct 13, 2007
    #2
    I assume you are talking about Micorsoft's dfs extension to SMB/CIFS. If so then you are looking for 'mount_smbfs'. In 10.7 the SMB/CIFS client can handle resolving DFS shares to the underlying SMB servers. Previously you had to do the resolution yourself.

    And there is pleanty out there, you just don't know what to look for.
     
  3. nicoisconfusion, Oct 14, 2011
    Last edited: Oct 14, 2011

    nicoisconfusion thread starter macrumors newbie

    Joined:
    Sep 27, 2011
    #3
    Yeah thanks for that. I found a link for mount_smbfs and it worked a treat..

    Th last thing is was wondering is can you use a mounted drive as a variable? In bash?

    Eg something like this
    mkdir /Volumes/anything
    mount_smbfs //dfsshare/folder/folder /Volumes/anything

    Mounteddrive="??????"

    What can I use in there. Once mounted is /Volumes/anything still valid or is it removed once that path is mounted to it.

    I want it as a variable so that I can symlink to it.
    Could I do
    Mounteddrive="/Volumes/anything"

    Then if I want to do a symlink just use
    ln -s /Something/Something $Mounteddrive/Something
     

Share This Page