LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help on Samba mount error 2 No such directory or file (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-on-samba-mount-error-2-no-such-directory-or-file-4175685107/)

tap2019 11-12-2020 05:41 AM

Need help on Samba mount error 2 No such directory or file
 
I am trying to mount a Samba share and have encountered the following error.

The command used to mount the share is:
> sudo mount -t cifs //<Samba IP>/smb /mnt/smb -o user=<UserName>,password=<Password>,vers=3.0



The message returned is mount error(2): no such file or directory.



The strange thing is I am able to use the GUI to access the Samba folder via smb://. Ping and telnet work too. The /mnt/smb directory exists as well.



The OS is RHEL 7.8 (Maipo) and the kernel version is 3.10.0-1127. For the OS, both the firewall and SELinux have been disabled.

Both cifs and keyutils have been installed as well.



I have done plenty of google searches but to no avail. Are there other OS configs or command options to look at?

computersavvy 11-12-2020 10:52 AM

Quote:

Originally Posted by tap2019 (Post 6184578)
The command used to mount the share is:
> sudo mount -t cifs //<Samba IP>/smb /mnt/smb -o user=<UserName>,password=<Password>,vers=3.0

I think the error may be in using "//<Samba IP>/smb". If you look at the man page for nfs, or mount, among others it should be "<Samba IP>/smb"

michaelk 11-12-2020 12:06 PM

mounting nfs is not the same as cifs. nfs uses the syntax
Code:

nfs_server:/share/name
The syntax for a cifs share is:
Code:

//IP address/share_name
Verify you have the correct IP address and share name. Another way to look at the server is via the smbclient utility

smbclient -L IP_address

What distribution/version is running on the host. Any recent updates or changes?

computersavvy 11-12-2020 06:09 PM

:doh: Doh
That is what I get for not reading and thinking nfs instead.

tap2019 11-16-2020 09:46 PM

Hello, I would like to update this thread. The cause of the error is due to FIPS being enabled, which blocks cifs from working properly. After disabling FIPS, the samba share could be mounted successfully.


All times are GMT -5. The time now is 12:05 AM.