Can’t mount samba share

mountsamba

I'm trying to mount a samba host located at 192.168.2.5. I can ping the host, I can open the share on Ubuntu and windows (with the credentials). When I try to manually connect:

pi@raspberrypi-web-server ~ $ smbclient -L 192.168.2.5
Enter pi's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]

Sharename       Type      Comment
---------       ----      -------
IPC$            IPC       IPC Service (raspberrypi-media server)
Media Folder    Disk      Media Folder
print$          Disk      Printer Drivers
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.6]

Server               Comment
---------            -------
RASPBERRYPI-MEDI     raspberrypi-media server

Workgroup            Master
---------            -------
WORKGROUP

I have this line in /etc/fstab:

//192.168.2.5/ /mnt/smb cifs user=maikel,pass=PASSWORD,_netdev 0 0

But whenever I do:

sudo mount -a

I get the following error:

Retrying with upper case share name mount error(6): No such device or
address Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Why doesn't my mount work? I've tried host raspberrypi-media but I got the same error?

Best Answer

Try this:

$ mount -t cifs -o user=maikel,pass=PASSWORD,_netdev \
    '//192.168.2.5/Media Folder' /mnt/smb

This should work. Also, try this to make sure you have permissions:

$ smbclient '\\192.168.2.5\Media Folder' -U maikel

Type in your password and type in ls at the smbclient prompt.

Related Question