I am trying to mount a network drive to my AlmaLinux box, and are running out of ideas.
I want to mount the folder "project" with:
sudo mount -t cifs --verbose -o username=$USER,uid=$USER //company.com/shares/project /mnt/project
The response is:
Password for initials@//company.com/shares/project:
mount.cifs kernel mount options: ip=*.*.*.*,unc=\\company.com\shares,uid=1000,user=initials,prefixpath=project,pass=********
mount error(4): Interrupted system call
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)(dmesg)
dmesg
responds with
[106100.323781] CIFS: Attempting to mount \\company.com\shares
[106100.670441] CIFS: VFS: BAD_NETWORK_NAME: \\company.com\shares
[106101.138732] CIFS: VFS: BAD_NETWORK_NAME: \\company.com\shares
[106101.218723] CIFS: VFS: cifs_mount failed w/return code = -4
With the same command I can connect to another folder in shares/
, like project2, this dir I mounted a long time ago without issue, and I can mount and unmount this with no issue.
I am also able to mount the entire /shares
, where I can cd
into project2, but not project.
I have tried on another machine, where I can mount without issue, so it is not some folder permissions that are the issue. Also, my colleagues can't mount on this machine with their logon.
On the other machine after mounting dmesg
also has BAD_NETWORK_NAME, so that should not be the problem.
Do you have any ideas I can try to fix this issue?
//fileshare04/shares$/project
directly, or even resolve the hostnamefileshare04
in general? Do you see the same kind of path for the other project folders (which work) – e.g. are they on the same fileshare04 server, and do they also use a bare hostname vs a full domain name?sudo mount -t cifs --verbose -o username=$USER,uid=$USER //fileshare04/shares$/project /mnt/project
i getmount error: could not resolve address for fileshare04: Unknown error
The one I can access is onfileshare24
. I am not quite sure what you mean with the last part?fileshareXX
or is itfileshareXX.example.com
?" (Do you get any results fromhost fileshare04
– with or without the .example.com added? Can youping
that server?)