I have a usb drive connected to my router, it's a share, works fine from all our windows machines and from Ubuntu, but not from Raspbian. I got the IP-address with nmblookup -S WORKGROUP
and the path with smbtree -N
, and I can list it:
pi@RPi2a ~ $ /usr/bin/smbclient -L //192.168.2.253/SMBSHARE -N
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.3.14]
Sharename Type Comment
--------- ---- -------
samba Disk samba share dir
IPC$ IPC IPC Service (Samba Server)
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.3.14]
Server Comment
--------- -------
MY_LT
RPI2A RPi2a server
SMBSHARE Samba Server
Workgroup Master
--------- -------
WORKGROUP SMBSHARE
I'm trying to mount it with:
sudo mount -t cifs //192.168.2.253/SMBSHARE/samba/usb1_1 /mnt/pishare --verbose -o guest
Resulting in:
mount.cifs kernel mount options: ip=192.168.2.253,unc=\\192.168.2.253\SMBSHARE,guest,user=,prefixpath=SAMBA/USB1_1,pass=********
mount error(6): No such device or address
Trying to find a solution, I came across this and this (among many many others). Trying to connect with smbclient:
$ sudo /usr/bin/smbclient \\\\192.168.2.253\\SMBSHARE\\samba\usb1_1 -Nd=3
I get:
...
Connecting to 192.168.2.253 at port 445
Connecting to 192.168.2.253 at port 139
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.3.14]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
I should add that Samba does run on the RPi, for sharing some folders on the Pi itself. As I understood, cifs
doesn't use /etc/samba/smb.conf
, the smbclient
command is just for checking permissions. But I don't even get there. Should I pass more parameters to smbclient?
I don't understand why mount.cifs can't find the share, when smbclient -L does list it properly. Nor do I see how permissions enter into it, as I can successfully browse and read everything from Windows and Ubuntu without credentials.