smb mounts

Rick Stevens rstevens at vitalstream.com
Wed Jan 26 22:06:12 UTC 2005


Mark Knecht wrote:
> Hi,
>    OK, with lots of new FC machines around the house we're trying to
> get a house wide music network set up. All the ogg/mp3 files reside on
> a machine called dragonfly and we want to be able to play them from
> any other machine. To do this I'm trying to get Samba to allow me to
> mount that remote directory here on my local machine. However I'm not
> successful yet.
> 
> [root at Godzilla root]# mount -t smbfs -o username=mark
> \\\\dragonfly\\MusicLib /home/mark/music
> Error connecting to 192.168.10.52 (No route to host)
> 17455: Connection to dragonfly failed
> SMB connection failed
> [root at Godzilla root]#
> 
> [root at Godzilla root]# ping dragonfly
> PING Dragonfly (192.168.10.52) 56(84) bytes of data.
> 64 bytes from Dragonfly (192.168.10.52): icmp_seq=0 ttl=64 time=1.61 ms
> 64 bytes from Dragonfly (192.168.10.52): icmp_seq=1 ttl=64 time=1.84 ms
> 
> I can ssh into dragonfly also, so it's not truly that it isn't there.
> 
>    What causes this? Does it mean that Samba isn't really sharing the
> directory yet? How can I check this? Being simplistic I tried:
> 
> [root at Godzilla root]# smbclient //dragonfly/MusicLib
> Error connecting to 192.168.10.52 (No route to host)
> Connection to dragonfly failed
> [root at Godzilla root]#
> 
> but I'm not sure that's even right. The man page assumes a degree of
> prior knowledge.
> 
>    What's the first trick I'm missing so that I might make some
> forward progress?

1.	ssh to dragonfly

2.	Check dragonfly's default route.  Make sure it's set.

3.	Make sure you're allowing smb connections to dragonfly both in
	/etc/samba/smb.conf and in your iptables.  Judging from the
	"no route to host" error, the odds are that iptables is blocking
	you.  You need UDP and TCP ports 137-139 open.

4.	Verify that dragonfly has nmbd and smbd running (you need both)

5.	Try "smbclient \\dragonfly -L -U username" ON dragonfly to
	verify what's being exported.

6.	Try "smbclient \\dragonfly -L -U username" on your client node.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-         Microsoft Windows:  Proof that P.T. Barnum was right       -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list