I can't mount a Samba share to a node using mount_smbfs. Here is the set up:
However, no matter what permutation of mount_smbfs I use, I always seem to end up with a "Connection refused" error:
I've tried including other options like
Ultimately, my goal is to mount my shares in /etc/fstab, but I figure that if I can't get mount_smbfs to work from a terminal first, then there's no sense in trying to complicate matters.
After spending a few days reading through the relevant Handbook pages and searching through this forum and the mailing lists, I'm out of ideas. I've looked through the Samba server's logs and systemd journal, but there are no clues that I can find. So at this point I'd be appreciative of any advice or tips that I could try out.
- FreeBSD 10.2-RELEASE running GENERIC is a guest inside a VirtualBox VM using its Bridged Adapter option. I've tried switching it to a NAT adapter but it makes no difference. The Samba version is net/samba42 (installed as a package).
- The Samba server is a Raspberry Pi running Arch Linux Arm and is fully up-to-date. All machines are on the same LAN and there are no firewalls between them.
- My other Windows and Linux boxes can connect to the Samba server without problems (well, Windows sometimes has credentials dementia...).
- From FreeBSD, I can connect to the Samba server from within PCManFM by typing
smb://anthony@raspberry_pi/Raspberry
into the address bar and filling out the credentials in the dialogue boxes that follow. I can also connect using smbclient by issuingsmbclient "//raspberry_pi/RPi Home" /mnt/RPi_Home
in a terminal. I can also list all of the public shares usingsmbclient -L raspberry_pi -U%
. To me, this suggests that the Samba server isn't misconfigured.
However, no matter what permutation of mount_smbfs I use, I always seem to end up with a "Connection refused" error:
Code:
mount_smbfs -I 192.168.1.7 "//anthony@raspberry_pi/RPi Home" /mnt/RPi_Home
Password:
mount:smbfs: unable to open connection. syserr = Connection refused
I've tried including other options like
-W
and -U
in there but it doesn't make a difference. -I
seems to be mandatory though; if I leave it out then mount_smbfs will tell me that it can't find the server address. I've also tried going all-IP address (e.g., <...> -I 192.168.1.7 "//anthony@192.168.1.7<...>
), to no effect.Ultimately, my goal is to mount my shares in /etc/fstab, but I figure that if I can't get mount_smbfs to work from a terminal first, then there's no sense in trying to complicate matters.
After spending a few days reading through the relevant Handbook pages and searching through this forum and the mailing lists, I'm out of ideas. I've looked through the Samba server's logs and systemd journal, but there are no clues that I can find. So at this point I'd be appreciative of any advice or tips that I could try out.