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

Make SMB shares appear in Devices section of Finder sidebar Network
It was driving me nuts that SMB shares from my Windows server would not reappear under DEVICES in the sidebar. However, I then figured out that I can do this:
  1. Open System Preferences » Network
  2. Click the network interface you use for the shares
  3. Click on the Advanced button at lower right
  4. Click on WINS tab, and manually enter the workgroup name of the server
  5. Click the '+' under the WINS Servers list
  6. Enter the IP of the server (you are using static IP on your server, right?)
  7. Click OK, Apply, etc. until you're done
The next time I dragged a mounted share to Devices, it then showed up there automatically after the next unmount/mount. My shares seem to mount much faster now, as well. Now if only I could find a way to increase the transfer speed...sigh.
    •    
  • Currently 1.80 / 5
  You rated: 5 / 5 (10 votes cast)
 
[26,260 views]  

Make SMB shares appear in Devices section of Finder sidebar | 6 comments | Create New Account
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 02, '09 02:37:30PM

There's a much, much simpler way to make shares show up in the devices section here:

1. drag a mounted share to Devices section of Finder sidebar

That's it.

I use this all the time to get mounted Samba volumes [not Windows servers, Linux, don't necessarily have WINS info set up in a useful way] to show up in the Devices section of the sidebar, and as the hint notes, they do come back across remounts, reboots, etc.

The WINS stuff might make them mount faster, but that's completely separate from the problem as originally described. If you just want them in the Devices section of the sidebar, you have to explicitly put them there -- which is exactly what the hint says to do anyway.

(I really wish there were a better way to do this. I've tried coming up with a `defaults write com.apple.sidebarlist...` approach but haven't been able to do it in a useful, reliable or general way. For a minute there I thought this hint was proposing a way to do it, but by the time I got to the end I realized it was just saying to do the same manual procedure that I've been doing ever since Leopard came out.)

---

--
DO NOT LEAVE IT IS NOT REAL



[ Reply to This | # ]
Make SMB shares appear in Devices section of Finder sidebar
Authored by: dzg on Jul 02, '09 02:59:46PM

Sorry, but, at least on my machine, what you describe does NOT work.
It would only stay in the sidebar until the next dismount.
I would have to re-drag it every time I mounted a share.
Hence my search for a solution.
Maybe your network config is different?



[ Reply to This | # ]
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 | # ]
Make SMB shares appear in Devices section of Finder sidebar
Authored by: scottdb on Jul 02, '09 03:13:17PM

Nice. Works perfect.

I use a VMWare virtual machine with a shared dir and this will come in VERY handy.

S



[ Reply to This | # ]
Make SMB shares appear in Devices section of Finder sidebar
Authored by: irc on Jul 04, '09 08:46:54AM

Like the OP: I've never been able to keep dragged Sharepoint shares in my Devices section on the sidebar between reboots -- despite the NAS being always on and available. They always disappear. This is with my ReadyNAS. I've added the ReadyNAS' IP to my WINS list. Let see if it sticks around in the Devices section.



[ Reply to This | # ]
Make SMB shares appear in Devices section of Finder sidebar
Authored by: apveenstra on Jul 08, '09 10:10:06AM

The current ReadyNas firmware has an option to become a WINS Server.

Since this box is always on, I enabled the WINS server, and added the IP of the ReadyNas to my Mac's newtwork configuration (at the place described in the original post). I also added this IP to my PC's network configuration under WINS servers.

Now both the PC and the ReadyNas show up automatically in the sidebar.



[ Reply to This | # ]