Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Make SMB shares appear in Devices section of Finder sidebar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Make SMB shares appear in Devices section of Finder sidebar
Authored by: babbage on Jul 06, '09 11:32:29AM

I'm not sure what's going on here, but it isn't just me, or my network environment here.

I work for a company that builds Samba servers, and for lack of a better solution, this is the workaround we have our customers do to get mounted volumes to stay in the sidebar and persist there across remounts & reboots.

I've helped dozens of people set it up this way -- drag the mounted volume icon from the Mac desktop to the Devices section of the sidebar -- and have had zero reports of the setting not being persistent.

It had never occurred to me to muck around with WINS settings prior to reading this hint, and I'm still not convinced that it's necessary in the general case, though in your case it obviously ended up being a required step.

That said, if the WINS server is (sometimes) mandatory, there should be a `defaults write` way to do it, which might be easier to automate for a pool of machines. Looks like /Library/Preferences/SystemConfiguration has the two (?) relevant files, preferences.plist & com.apple.smb.server.plist.

Current settings, for the SMB server preference file:

* defaults read /Library/Preferences/SystemConfiguration/com.apple.smb.server

Write out new settings:

* sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server WINSServerAddressList 'IP ADDRESS HERE'

* sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server Workgroup 'WORKGROUP NAME HERE'

The `defaults write` syntax for the preferences file will be similar, but it looks like you have to nest the statement inside some kind of UUID-encoded representation of the network port/service you want to attach it to, then go down a couple of more levels from there. This kind of `defaults` incantation gets a lot more complex very quickly, and I'm not sure the clearest & most succinct way to write it that will work in a general case. (It would probably have to be wrapped in a several line shell/perl script to tease out what those UUID keys refer to, among other things.)

But it may be sufficient to just update the SMB server file, in which case the the two `sudo defaults write` files above may work. Feel free to try them out.

---

--
DO NOT LEAVE IT IS NOT REAL



[ Reply to This | # ]