Often from my friends in Window's land, I get the paths like this:
To take it a bit further, you can mount the drive from startup.
[robg adds: I have modified the formatting and some of the content from the original blog post provided by the hint's author.]
\SERVERsharepathtofile.txt
When converted to a file URL on the Mac, this will look something like:
file://SERVER/share/path/to/file.txt
Unfortunately, when I mount the volume on OS X using the normal method, the share shows up under /Volumes with a naming scheme not compatible with the file URL above. My workaround involves making a directory and mounting:
- Mount the server the normal way (Command-K in Finder).
- Check Remember Password option when authenticating.
- Unmount the drive in the Finder -- very important!
- Make a directory in Terminal with the sever and share name: mkdir -p /SERVER/share.
- Mount the server with the command mount_smbfs //`whoami`@SERVER/share/ /SERVER/share. NOTE: if your short Unix username does not match your Windows server login, make it match. If it requires a domain, things like NNN\;bray are perfectly acceptable.
To take it a bit further, you can mount the drive from startup.
- Create directory mkdir -p /Library/StartupItems/AutoMount
- Create two files, AutoMount and StartupParameters.plist in that directory. In the AutoMount file put the following:
In the StartupParameters.plist file goes this:#!/bin/sh . /etc/rc.common # The start subroutine StartService() { mount_smbfs //NDNW:bray@SERVER/share/ } # The stop subroutine StopService() { unmount SERVER/share } # The restart subroutine RestartService() { StopService StartService } RunService "$1"{ Description = "Mounts"; Provides = ("Mounts"); OrderPreference = "Late"; Messages = { start = "Starting Software Update service"; stop = "Stopping Software Update service"; }; }
[robg adds: I have modified the formatting and some of the content from the original blog post provided by the hint's author.]
•
[30,439 views]

