LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2020, 05:41 AM   #1
tap2019
LQ Newbie
 
Registered: Nov 2020
Posts: 3

Rep: Reputation: Disabled
Unhappy 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?
 
Old 11-12-2020, 10:52 AM   #2
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by tap2019 View Post
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"
 
Old 11-12-2020, 12:06 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,720

Rep: Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914Reputation: 5914
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?
 
Old 11-12-2020, 06:09 PM   #4
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Doh
That is what I get for not reading and thinking nfs instead.
 
Old 11-16-2020, 09:46 PM   #5
tap2019
LQ Newbie
 
Registered: Nov 2020
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] All of a sudden, NFS sharing is busted. Getting 'mount(2) No such file or directory error road hazard Linux - Networking 3 08-22-2020 09:08 PM
Login Error- Could not chdir to home directory /home/UserID: No such file or directory abhi_jais Linux - Newbie 1 03-24-2018 12:01 PM
[SOLVED] executable file error: "No such file of directory" when file does exist dalgrim Slackware 8 11-03-2014 11:28 AM
[SOLVED] error: asm/ppc_asm.h: No such file or directory and error: asm/processor.h: No such f Thirupathip Linux - Newbie 3 01-25-2013 03:02 AM
windows eclipse platform - crt1.o: No such file: No such file or directory jnettleton Programming 2 05-18-2012 09:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration