You are not logged in.

#1 2019-06-13 21:03:42

ArchArching
Member
Registered: 2015-10-25
Posts: 23

[SOLVED]“mount error(2): No such file or directory”

I am attempting to mount my NAS on my Arch machine and receiving the below error:

mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Not seeing anything in man which helps.

Below is command I am using

sudo mount -t cifs -o user=<user> //192.168.0.14/volume1/NetBackup/Share /mnt/NAS

I can ping the IP of the NAS. The below command:

smbclient -U <user> -L 192.168.0.14

returns the below:

    Sharename       Type      Comment
    ---------       ----      -------
    NetBackup       Disk      System default shared folder
    photo           Disk      System default shared folder
    surveillance    Disk      System default shared folder
    video           Disk      System default shared folder
    IPC$            IPC       IPC Service ()
Reconnecting with SMB1 for workgroup listing.

    Server               Comment
    ---------            -------

    Workgroup            Master
    --------- 

Right clicking the directory on the NAS displays the path as being:

/volume1/NetBackup/Share

Any ideas on what to do next to troubleshoot?

Last edited by ArchArching (2019-07-06 17:37:27)

Offline

#2 2019-06-29 07:43:10

ArchArching
Member
Registered: 2015-10-25
Posts: 23

Re: [SOLVED]“mount error(2): No such file or directory”

OK I spotted a syntax error, I get little further on using the below:

sudo mount -t cifs -o user=<user> //192.168.0.14/volume1/NetBackup /mnt/NAS

On entering the NAS password I see the below:

mount error: cifs filesystem not supported by the system
mount error(19): No such device

The commmand

zgrep -i cifs /proc/config.gz

returns:

CONFIG_CIFS=m
# CONFIG_CIFS_STATS2 is not set
CONFIG_CIFS_ALLOW_INSECURE_LEGACY=y
# CONFIG_CIFS_WEAK_PW_HASH is not set
CONFIG_CIFS_UPCALL=y
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_POSIX=y
CONFIG_CIFS_ACL=y
CONFIG_CIFS_DEBUG=y
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_DEBUG_DUMP_KEYS is not set
CONFIG_CIFS_DFS_UPCALL=y
# CONFIG_CIFS_SMB_DIRECT is not set
CONFIG_CIFS_FSCACHE=y

The command

modprobe cifs

returns:

modprobe: FATAL: Module cifs not found in directory /lib/modules/5.1.11-arch1-1-ARCH

and command

insmod cifs

returns:

insmod: ERROR: could not load module cifs: No such file or directory

Offline

#3 2019-06-29 07:47:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]“mount error(2): No such file or directory”

Paste the output of `uname -a`. If the kernel version is different to `pacman -Q linux` you have either not rebooted after an upgrade, or your /boot was not mounted for the kernel upgrade and you will need to fix that.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2019-06-29 08:14:38

ArchArching
Member
Registered: 2015-10-25
Posts: 23

Re: [SOLVED]“mount error(2): No such file or directory”

jasonwryan wrote:

Paste the output of `uname -a`. If the kernel version is different to `pacman -Q linux` you have either not rebooted after an upgrade, or your /boot was not mounted for the kernel upgrade

Output of uname-a is certainly different `pacman -Q linux`, so different I am left wondering if I am understanding you correctly?

Linux arch 5.1.15-arch1-1-ARCH #1 SMP PREEMPT Tue Jun 25 04:49:39 UTC 2019 x86_64 GNU/Linux
jasonwryan wrote:

and you will need to fix that.

How do I fix it? I would be surprised if my boot partition was not mounted.

Offline

#5 2019-06-29 09:14:15

ArchArching
Member
Registered: 2015-10-25
Posts: 23

Re: [SOLVED]“mount error(2): No such file or directory”

jasonwryan wrote:

Paste the output of `uname -a`. If the kernel version is different to `pacman -Q linux` you have either not rebooted after an upgrade, or your /boot was not mounted for the kernel upgrade and you will need to fix that.

Ah, I see what you mean now. Both commands return linux 5.1.15.arch1-1.

pacman -Q linux = linux 5.1.15.arch1-1
uname -a = Linux arch 5.1.15-arch1-1-ARCH #1 SMP PREEMPT Tue Jun 25 04:49:39 UTC 2019 x86_64 GNU/Linux

Last edited by ArchArching (2019-06-29 09:15:22)

Offline

#6 2019-06-29 10:31:40

seth
Member
Registered: 2012-09-03
Posts: 64,113

Re: [SOLVED]“mount error(2): No such file or directory”

And do you still have the "modprobe: FATAL: Module cifs not found in directory /lib/modules/5.1.11-arch1-1-ARCH" issue?

Offline

#7 2019-07-04 19:31:09

ArchArching
Member
Registered: 2015-10-25
Posts: 23

Re: [SOLVED]“mount error(2): No such file or directory”

seth wrote:

And do you still have the "modprobe: FATAL: Module cifs not found in directory /lib/modules/5.1.11-arch1-1-ARCH" issue?

No I don't, but on entering sudo mount -t cifs -o user=<user> //192.168.0.14/volume1/NetBackup /mnt/NAS I am again seeing

mount error(2): No such file or directory

Offline

#8 2019-07-04 19:48:28

seth
Member
Registered: 2012-09-03
Posts: 64,113

Re: [SOLVED]“mount error(2): No such file or directory”

"volume1" does not seem to be part of the share name, does it?

Offline

#9 2019-07-04 19:52:56

ArchArching
Member
Registered: 2015-10-25
Posts: 23

Re: [SOLVED]“mount error(2): No such file or directory”

seth wrote:

"volume1" does not seem to be part of the share name, does it?

Probably not but:

sudo mount -t cifs -o user=<user> //192.168.0.14/NetBackup /mnt/NAS

gives the same "mount error(2): No such file or directory" error.

Something I just noticed which is a little odd, after entering the cifs command I am prompted for the password to the NAS, and whether I input the correct password or garbage it comes back with same error message.

Last edited by ArchArching (2019-07-04 20:04:41)

Offline

#10 2019-07-04 20:10:33

seth
Member
Registered: 2012-09-03
Posts: 64,113

Re: [SOLVED]“mount error(2): No such file or directory”

What if you pass the password w/ the options?
Also try "vers=1.0" - what is the "NAS" exactly?

Offline

#11 2019-07-06 17:36:50

ArchArching
Member
Registered: 2015-10-25
Posts: 23

Re: [SOLVED]“mount error(2): No such file or directory”

seth wrote:

What if you pass the password w/ the options?
Also try "vers=1.0" - what is the "NAS" exactly?

"vers=1.0" did it. Do you know why?

Thank you so much for the help!

NAS = network attached storage.

Offline

#12 2019-07-06 18:37:18

seth
Member
Registered: 2012-09-03
Posts: 64,113

Re: [SOLVED]“mount error(2): No such file or directory”

I know what "NAS" means, I meant what vendor/product.

SMBv1 is highly insecure (wannacry situation) and thus no longer the default, but it seems some consumer boxes (synology) only support that version, https://wiki.archlinux.org/index.php/Sa … st_is_down

Offline

#13 2019-07-06 19:11:56

ArchArching
Member
Registered: 2015-10-25
Posts: 23

Re: [SOLVED]“mount error(2): No such file or directory”

seth wrote:

I know what "NAS" means, I meant what vendor/product.

SMBv1 is highly insecure (wannacry situation) and thus no longer the default, but it seems some consumer boxes (synology) only support that version, https://wiki.archlinux.org/index.php/Sa … st_is_down

Ah I see, it is indeed a Synology. Thanks again.

Offline

Board footer

Powered by FluxBB