samba mount failed with "CIFS VFS: cifs_mount failed w/return code = -6" and "is not a valid block device"

2

Environment:

  • server: Windows
  • client: RHEL 6.7 (samba-common-3.6.23-20.el6.x86_64) or Debian Wheezy (samba-common-bin 2:3.6.6-6+deb7u7)

Client's /etc/fstab:

//10.0.0.10/share/ /media/smb    cifs    _netdev,user,uid=1000,forceuid,gid=1000,forcegid,noperm,username=XXXX,password=XXXX,domain=aa.bb.cc

Mounting:

$ sudo mount /media/smb/
mount: //10.0.0.10/share/ is not a valid block device
$ dmesg | tail
CIFS VFS: cifs_mount failed w/return code = -6

user46935

Posted 2016-04-14T12:16:17.543

Reputation: 1 212

Answers

1

You have to add cifs-utils to be able to mount CIFS shares:

Red Hat/CentOS related:

$ sudo yum install cifs-utils

Debian/Ubuntu related:

$ sudo apt install cifs-utils

Solution found here: http://www.linuxquestions.org/questions/linux-networking-3/mount-10-52-0-102-jim-dpc-is-not-a-valid-block-device-893664/

user46935

Posted 2016-04-14T12:16:17.543

Reputation: 1 212

0

Possible issue is CIFS/SMB version

//192.168.1.1/MyShare/    /mnt/cifs  cifs vers=2.1,username=user1,password=passwd1   0       0

Amit Vujic

Posted 2016-04-14T12:16:17.543

Reputation: 101

0

Might be related to SMBv1/CIFS removal in Windows 10 / Windows Server v1709 (RS3):

https://support.microsoft.com/en-us/help/4034314/smbv1-is-not-installed-windows-10-and-windows-server-version-1709

parallyze

Posted 2016-04-14T12:16:17.543

Reputation: 209