Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using Ubuntu 14.04 LTS x86_64.

I'm trying to mount a windows share on boot, but occur this error message on syslog:

CIFS VFS: Error connecting to socket. Aborting operation.
CIFS VFS: Error connecting to socket. Aborting operation.
CIFS VFS: cifs_mount failed w/return code = -113
CIFS VFS: cifs_mount failed w/return code = -113

My fstab lines:

//ardo/gra  /mnt/gra cifs credentials=/etc/.ardo1,iocharset=utf8,uid=1000,sec=ntlm 0 0
//192.168.0.19/pro /mnt/pro cifs credentials=/root/.ardo1,iocharset=utf8,sec=ntlm,dir_mode=0777,file_mode=0777,uid=www-data,gid=users,nobrl 0 0

When I run sudo mount -a works fine.

The permissions on credential file are 0600, owner root, with user and password.

I researched some forums, and try somethings like use IP, different options in fstab, I've installed samba cifs-utils smbnetfs libpam-mount, editted /etc/nsswitch.conf and added hosts: wins, inserted IP/Name in hosts, change credentials dir. But anything works.

share|improve this question
    
Does your credentials file have a domain name? I had the same problem and resolved it by removing the domain from the user name and adding it in a separate line: username=myuser password=mypassword domain=mydomain –  Andrea Bertani Sep 29 at 7:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.