Author Topic: Samba Mount keeps on showing Error 2 No such Directory or File  (Read 217 times)

0 Members and 1 Guest are viewing this topic.

Offline tap

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Samba Mount keeps on showing Error 2 No such Directory or File
« on: November 12, 2020, 11:52:41 am »
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?

Offline Mad Penguin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1475
  • Karma: 10024
  • Gender: Male
    • View Profile
    • Awards
Re: Samba Mount keeps on showing Error 2 No such Directory or File
« Reply #1 on: November 12, 2020, 12:01:23 pm »
Ok, there's a bunch of stuff to look at .. firstly, try the connection with the "samba" tool ("smbclient") rather than with the "mount" command. The parameters will be the same and it will use the same system configuration, however you will be able to turn on 'debug' with a command line flag that should give you a more detailed explanation of what's going wrong.

The Linux Community Forum

Re: Samba Mount keeps on showing Error 2 No such Directory or File
« Reply #1 on: November 12, 2020, 12:01:23 pm »

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal