<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Help me automount my smb share in Apple OS X (reward inside)</title>
	<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside/</link>
	<description>Comments on Ask MetaFilter post Help me automount my smb share in Apple OS X (reward inside)</description>
	<pubDate>Tue, 02 Jan 2007 18:13:31 -0800</pubDate>
	<lastBuildDate>Tue, 02 Jan 2007 18:13:31 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Help me automount my smb share in Apple OS X (reward inside)</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside</link>	
		<description>Here&apos;s what I know: I can access my smb share without difficulty via the Finder/Network or by mounting it manually, but what I can&apos;t seem to do is automount my samba share on boot/login.  There&apos;s a &lt;b&gt;reward&lt;/b&gt; and twice more inside. &lt;br /&gt;&lt;br /&gt; I&apos;ve tried via &lt;a href=&quot;http://www.macosxhints.com/article.php?story=20031022164821984&quot;&gt;NetInfo Manager&lt;/a&gt; and I&apos;ve tried via &lt;a href=&quot;http://tech.tyr.org.uk/2006/02/automounting_samba_on_os_x_1.html&quot;&gt;niload fstab&lt;/a&gt; and neither seem to work for me.&lt;br&gt;
&lt;br&gt;
Here are the nitty gritty specifics:&lt;br&gt;
&lt;br&gt;
Server name:  miles&lt;br&gt;
share name: share&lt;br&gt;
username: nobody&lt;br&gt;
password: none (as in you don&apos;t need to supply a password for user nobody)&lt;br&gt;
&lt;br&gt;
So I am able to do a mount manually successfully with the following:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;mount_smbfs -W workgroup //nobody@miles/share ./share&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
&lt;small&gt;(it works although I get this error when I navigate into it the first time: &lt;code&gt;mount_smbfs: spnego blob2principal error 1&lt;/code&gt;)&lt;/small&gt;&lt;br&gt;
&lt;br&gt;
Also, if I go through the Finder and Network it also works.  By doing a Get Info on the share I see the following:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;Kind: Volume&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Server: cifs://WORKGROUP;nobody@MILES/SHARE&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
But no matter how I try to automount the share I don&apos;t seem to have any success.  I&apos;m wondering if the password might be the issue and how one passes an empty password in the string?  &lt;br&gt;
&lt;br&gt;
I&apos;ve tried various combinations through NetInfo Manager using the following &lt;a href=&quot;http://www.macosxhints.com/article.php?story=20031022164821984&quot;&gt;two&lt;/a&gt; &lt;a href=&quot;http://www.bombich.com/mactips/automount.html&quot;&gt;articles&lt;/a&gt; as reference, without any luck.  Same with using &lt;a href=&quot;http://tech.tyr.org.uk/2006/02/automounting_samba_on_os_x_1.html&quot;&gt;niload fstab&lt;/a&gt;. &lt;br&gt;
&lt;br&gt;
&lt;b&gt;I&apos;d be willing to reward someone with an unused license to &lt;a href=&quot;http://www.realmacsoftware.com/rapidweaver/&quot;&gt;RapidWeaver&lt;/a&gt; or &lt;a href=&quot;http://www.devon-technologies.com/products/devonthink/&quot;&gt;DevonThink Personal&lt;/a&gt; if they solve my problem.&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
P.S.  I can give more specifics if needed.&lt;br&gt;
P.P.S.  No, I won&apos;t be adding any password to this mount, so lets not go there.</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.54223</guid>
		<pubDate>Tue, 02 Jan 2007 17:51:47 -0800</pubDate>
		<dc:creator>furtive</dc:creator>
		
			<category>samba</category>
		
			<category>smb</category>
		
			<category>apple</category>
		
			<category>osx</category>
		
			<category>automount</category>
		
			<category>share</category>
		
			<category>cifs</category>
		
			<category>fstab</category>
		
			<category>netinfo</category>
		
			<category>manager</category>
		
			<category>niload</category>
		
			<category>mount_smbfs</category>
		
	</item> <item>
		<title>By: lurkingular</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#816655</link>	
		<description>Have you tried adding the mounted share to your login items in the &quot;Accounts&quot; section of System Preferences? That&apos;s what did it for me in the Windows environment at my work...just a thought.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-816655</guid>
		<pubDate>Tue, 02 Jan 2007 18:13:31 -0800</pubDate>
		<dc:creator>lurkingular</dc:creator>
	</item><item>
		<title>By: smackfu</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#816659</link>	
		<description>You can also use Automator to do mounts, and then set that script to run at login.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-816659</guid>
		<pubDate>Tue, 02 Jan 2007 18:17:21 -0800</pubDate>
		<dc:creator>smackfu</dc:creator>
	</item><item>
		<title>By: McGuillicuddy</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#816674</link>	
		<description>This works, but it doesn&apos;t automatically remount the drives if they are mounted.&lt;br&gt;
&lt;br&gt;
Open the AppleScript editor and paste in the following:&lt;br&gt;
&lt;br&gt;
try&lt;br&gt;
	tell application &quot;Finder&quot;&lt;br&gt;
		mount volume &quot;smb://SERVERNAME;username:password@ip_address/sharename&quot;&lt;br&gt;
	end tell&lt;br&gt;
end try&lt;br&gt;
&lt;br&gt;
Edit the script to reflect your specifics. Mount multiple drives by copying the try--&amp;gt;end try block and changing the server and/or sharename.&lt;br&gt;
&lt;br&gt;
Select &quot;Save as&quot; and choose Application as the File Type. Uncheck start-up screen.&lt;br&gt;
&lt;br&gt;
Then go to your User Preferences and accounts and add this application as a Startup Item.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-816674</guid>
		<pubDate>Tue, 02 Jan 2007 18:27:44 -0800</pubDate>
		<dc:creator>McGuillicuddy</dc:creator>
	</item><item>
		<title>By: McGuillicuddy</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#816675</link>	
		<description>It doesn&apos;t automatically remount the drives if they &lt;strong&gt;become un&lt;/strong&gt;mounted.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-816675</guid>
		<pubDate>Tue, 02 Jan 2007 18:28:44 -0800</pubDate>
		<dc:creator>McGuillicuddy</dc:creator>
	</item><item>
		<title>By: purephase</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#816714</link>	
		<description>The apple script idea is the best (IMO). As for the remount if disconnected, you could always setup &lt;a href=&quot;http://growl.info/&quot;&gt;Growl&lt;/a&gt; to notify you in the event that it happens. I&apos;ve never done it myself, but I can&apos;t see why &lt;a href=&quot;http://growl.info/documentation/hardwaregrowler.php&quot;&gt;HardwareGrowler&lt;/a&gt; wouldn&apos;t do the trick.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-816714</guid>
		<pubDate>Tue, 02 Jan 2007 18:58:55 -0800</pubDate>
		<dc:creator>purephase</dc:creator>
	</item><item>
		<title>By: niles</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#816716</link>	
		<description>Here&apos;s a list of what I&apos;ve done (and I&apos;m not at the Mac today so I can&apos;t tell you which one makes it work, but):&lt;br&gt;
&lt;br&gt;
1)Add a shortcut to the network drive. Place on desktop.&lt;br&gt;
2)Add said shortcut to the left-sidebar of Finder windows.&lt;br&gt;
3)When you connect, hit the &quot;Save in keychain&quot; checkbox.&lt;br&gt;
&lt;br&gt;
These are in no particular order, and may or may not need to be done at the same time. Not really sure why this works, but somehow or another it has.&lt;br&gt;
&lt;br&gt;
I&apos;ll be at that computer tomorrow all day, so I&apos;ll see if there&apos;s anything else I&apos;ve done. &lt;strong&gt;But it is possible from Finder (maybe Keychain) alone. No 3rd party stuff or scripts needed.&lt;/strong&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-816716</guid>
		<pubDate>Tue, 02 Jan 2007 19:04:01 -0800</pubDate>
		<dc:creator>niles</dc:creator>
	</item><item>
		<title>By: majick</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#816764</link>	
		<description>If you don&apos;t want to go to the trouble of all that scripting, and you just want the volume mounted on login, all you need to do is mount the drive once, save the credentials to the keychain, then open the User preferences and drag the volume&apos;s desktop icon into the Startup Items list.&lt;br&gt;
&lt;br&gt;
That&apos;s it.  Just drag the icon into the list of stuff you want done when you log in.  Seriously.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-816764</guid>
		<pubDate>Tue, 02 Jan 2007 20:10:27 -0800</pubDate>
		<dc:creator>majick</dc:creator>
	</item><item>
		<title>By: hades</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#816781</link>	
		<description>I had to tweak the instructions a bit to get automount working with NetInfo Manager, but it works for me now. Here&apos;s how mine is set up:&lt;br&gt;
&lt;br&gt;
In &lt;code&gt;/&lt;/code&gt; -&amp;gt; &lt;code&gt;mounts&lt;/code&gt;, add a new subdirectory. Name it &lt;code&gt;miles:/share&lt;/code&gt;. (That is, its &lt;code&gt;name&lt;/code&gt; property should be &lt;code&gt;miles:/share&lt;/code&gt;.)&lt;br&gt;
&lt;br&gt;
Click on miles:/share and add a new property (Directory -&amp;gt; New Property). Name this property &lt;code&gt;dir&lt;/code&gt; and give it the value &lt;code&gt;/Network/Miles_Share&lt;/code&gt; (or &lt;code&gt;/Network/Whatever&lt;/code&gt;; this is what the mount point will be named). Do this twice more for &lt;code&gt;opts&lt;/code&gt; and &lt;code&gt;vfstype&lt;/code&gt; properties. When you&apos;re done, the properties should look like this:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;name -&amp;gt; miles:/share&lt;br&gt;
dir -&amp;gt; /Network/Miles_Share&lt;br&gt;
opts -&amp;gt; url==cifs://nobody:@miles/share&lt;br&gt;
vfstype -&amp;gt; url&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
Now open a Terminal and check &lt;code&gt;/etc/hostconfig&lt;/code&gt;. There should be a line in it which reads:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;AUTOMOUNT=-YES-&lt;/code&gt;&lt;br&gt;
&lt;br&gt;
If there isn&apos;t, of if it reads &lt;code&gt;-NO-&lt;/code&gt;, add or fix it, and save the file.&lt;br&gt;
&lt;br&gt;
Now reboot. You can probably get away with not rebooting, and starting any stopped services by hand, and such, but rebooting&apos;s simplest. When it comes back up, see if there&apos;s a new directory in &lt;code&gt;/Network&lt;/code&gt;. If so, browsing to it should automatically mount it from the server. If not, I don&apos;t know what to say. That&apos;s what works for me. You might try using &lt;code&gt;url==cifs://nobody:nobody@miles/share&lt;/code&gt; for the &lt;code&gt;opts&lt;/code&gt; property, if leaving the password blank doesn&apos;t work.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-816781</guid>
		<pubDate>Tue, 02 Jan 2007 20:21:15 -0800</pubDate>
		<dc:creator>hades</dc:creator>
	</item><item>
		<title>By: hades</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#816784</link>	
		<description>The benefit of doing it with automount through NetInfo Manager is that it should automatically re-mount itself if it gets unmounted, unlike a startup or login script. In practice, this doesn&apos;t always work and sometimes I have to run the command:&lt;br&gt;
&lt;br&gt;
&lt;code&gt;sudo killall -HUP automount&lt;/code&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-816784</guid>
		<pubDate>Tue, 02 Jan 2007 20:25:27 -0800</pubDate>
		<dc:creator>hades</dc:creator>
	</item><item>
		<title>By: flaterik</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#816795</link>	
		<description>A different approach: is there any chance you can make your SMB shares be AFP shares?&lt;br&gt;
&lt;br&gt;
I have a linux server supporting my powerbook, and by far the best I&apos;ve had with network has been when i used atalkd to provide them instead of samba.&lt;br&gt;
&lt;br&gt;
I have shortcuts to folders within that share, and if it happens to get unmounted and I click on one of them, it just mounts. No password prompt. It&apos;s nice.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-816795</guid>
		<pubDate>Tue, 02 Jan 2007 20:33:41 -0800</pubDate>
		<dc:creator>flaterik</dc:creator>
	</item><item>
		<title>By: hades</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#816800</link>	
		<description>Wow, I&apos;d forgotten about the nidump/niload trick. That&apos;s much easier than using netinfo manager. Try these commands, from the terminal:&lt;br&gt;
&lt;pre&gt;nidump fstab . &amp;gt; /tmp/fstab&lt;br&gt;
echo &quot;miles:/share /Network/Miles url url==cifs://nobody:@miles/share 0 0&quot; &amp;gt;&amp;gt; /tmp/fstab&lt;br&gt;
sudo niload fstab . &amp;lt; /tmp/fstab&lt;br&gt;
sudo killall -HUP automount&lt;/pre&gt;&lt;br&gt;
If automount is running (which is should be if it&apos;s got a -YES- in /etc/hostconfig), that should do the trick, putting the automounted directory in /Network/Miles</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-816800</guid>
		<pubDate>Tue, 02 Jan 2007 20:45:27 -0800</pubDate>
		<dc:creator>hades</dc:creator>
	</item><item>
		<title>By: niles</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#818054</link>	
		<description>Ok, reporting back....&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
It looks like I did my step 3 (what &lt;a href=&quot;http://ask.metafilter.com/mefi/54223#816764&quot;&gt;majick says&lt;/a&gt;, only without the startup thing). However, I use the network drive so often that at the beginning of the day, I often open up one of the shortcuts, causing the drive to be mounted. Adding to startup items should be fine - and remember that once login stuff is saved, it will automount if you access any shortcuts to it.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-818054</guid>
		<pubDate>Wed, 03 Jan 2007 20:04:44 -0800</pubDate>
		<dc:creator>niles</dc:creator>
	</item><item>
		<title>By: niles</title>
		<link>http://ask.metafilter.com/54223/Help-me-automount-my-smb-share-in-Apple-OS-X-reward-inside#818056</link>	
		<description>&lt;small&gt;Be really, for the love of all that is a &lt;em&gt;graphical&lt;/em&gt; interface, please don&apos;t use those scripts. I mean, it&apos;s nice and all - but it&apos;s built in.&lt;br&gt;
My 2&#162;.&lt;small&gt;&lt;/small&gt;&lt;/small&gt;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.54223-818056</guid>
		<pubDate>Wed, 03 Jan 2007 20:06:18 -0800</pubDate>
		<dc:creator>niles</dc:creator>
	</item>
	</channel>
</rss>
