Unable to mount with mount_smbfs while smbclient works fine

twilight pipfstarrd at openmailbox.org
Wed Jul 20 12:03:12 UTC 2016


Hello guys!

I'm trying to mount a samba share (actually a D-link sharecenter) in my
local network to my freebsd machine. But for some reason mount_smbfs
does nothing, exiting with status 1. Dmesg is empty on errors releated
to mount. PF firewall lets out packages to local network, so it must not
be the case.

I've read the man twice, the isn't anything covering the possible
errors. I'm confused, what should I do?

Here are the pf rules:
~> sudo pfctl -s rules
scrub in all fragment reassemble
block return out all
pass out quick on lo0 route-to lo1 inet proto tcp from any to
127.192.0.0/10 flags S/SA modulate state
pass quick on lo0 all flags S/SA keep state
pass quick on lo1 all flags S/SA keep state
pass out quick inet proto tcp all user = 256 flags S/SA modulate state
pass out quick route-to lo1 inet proto udp from any to any port = domain
keep state
pass out quick inet from any to 192.168.1.0/24 flags S/SA keep state
pass out quick inet from any to 192.168.0.0/24 flags S/SA keep state
pass out quick inet from any to 192.168.2.0/24 flags S/SA keep state
pass out route-to lo1 inet proto tcp all flags S/SA modulate state
twilight at equestria ~> sudo pfctl -s nat
rdr pass on lo1 inet proto tcp all -> 127.0.0.1 port 9040
rdr pass on lo1 inet proto udp from any to any port = domain ->
127.0.0.1 port 53


Here's an example of how it looks:

~> smbclient //192.168.2.12/Volume_1 -U guest
params.c:OpenConfFile() - Unable to open configuration file
"/usr/local/etc/smb-client.conf":
	No such file or directory
smbclient: Can't load /usr/local/etc/smb-client.conf - run testparm to
debug it
Enter guest's password:
Failed to load upcase.dat, will use lame ASCII-only case sensitivity rules
Failed to load lowcase.dat, will use lame ASCII-only case sensitivity rules
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.15]
smb: \> pwd
Current directory is \\192.168.2.12\Volume_1\
smb:\> ⏎

                                   ~> sudo mount_smbfs -I 192.168.2.12
//guest at 192.168.2.12/Volume_1  /nmnt

~> echo $status
1

~> mount
zroot/ROOT/default on / (zfs, local, noatime, nfsv4acls)
devfs on /dev (devfs, local, multilabel)
bootpool on /bootpool (zfs, local, nfsv4acls)
zroot/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls)
zroot/usr/home on /usr/home (zfs, local, noatime, nfsv4acls)
zroot/usr/ports on /usr/ports (zfs, local, noatime, nosuid, nfsv4acls)
zroot/usr/src on /usr/src (zfs, local, noatime, nfsv4acls)
zroot/var/audit on /var/audit (zfs, local, noatime, noexec, nosuid,
nfsv4acls)
zroot/var/crash on /var/crash (zfs, local, noatime, noexec, nosuid,
nfsv4acls)
zroot/var/log on /var/log (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/var/mail on /var/mail (zfs, local, nfsv4acls)
zroot/var/tmp on /var/tmp (zfs, local, noatime, nosuid, nfsv4acls)
zroot on /zroot (zfs, local, noatime, nfsv4acls)
map -hosts on /net (autofs)


If any extra information is required, I can provide it by your requests.

-- 
Cheers~

PGP key fingerprint:
07B3 2177 3E27 BF41 DC65  CC95 BDA8 88F1 E9F9 CEEF

You can retrieve my public key at pgp.mit.edu.


More information about the freebsd-questions mailing list