You are not logged in.

#1 2021-10-04 20:34:35

xerxes
Member
Registered: 2021-10-04
Posts: 3

[Resolved] Having issues mounting samba share using mount.cifs

I've tried to setup samba mount points on boot by using the systemd unit method and the /etc/fstab method described here:

https://wiki.archlinux.org/title/Samba# … c_mounting

but in both cases am having a similar error:

% sudo systemctl start mnt-project.mount
Job failed. See "journalctl -xe" for details.

The output of journalctl -xe is:

Oct 04 16:31:43 saiyan systemd[1]: Mounting Mount project at boot...
░░ Subject: A start job for unit mnt-project.mount has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit mnt-project.mount has begun execution.
░░ 
░░ The job identifier is 15650.
Oct 04 16:31:43 saiyan kernel: CIFS: Attempting to mount \\cs-share.cs.duke.edu\project
Oct 04 16:31:43 saiyan kernel: CIFS: VFS: Could not allocate crypto cmac(aes)
Oct 04 16:31:43 saiyan kernel: CIFS: VFS: Could not allocate crypto cmac(aes)
Oct 04 16:31:43 saiyan kernel: CIFS: VFS: Could not allocate crypto cmac(aes)
Oct 04 16:31:43 saiyan kernel: CIFS: VFS: Could not allocate crypto cmac(aes)
Oct 04 16:31:43 saiyan kernel: CIFS: VFS: Could not allocate crypto md4
Oct 04 16:31:43 saiyan kernel: CIFS: VFS: Could not allocate crypto cmac(aes)
Oct 04 16:31:44 saiyan mount[59893]: mount error(2): No such file or directory
Oct 04 16:31:44 saiyan mount[59893]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
Oct 04 16:31:44 saiyan kernel: CIFS: VFS: Could not allocate crypto cmac(aes)
Oct 04 16:31:44 saiyan kernel: CIFS: VFS: \\cs-share.cs.duke.edu generate_key: crypto alloc failed
Oct 04 16:31:44 saiyan kernel: CIFS: VFS: \\cs-share.cs.duke.edu Send error in SessSetup = -2
Oct 04 16:31:44 saiyan kernel: CIFS: VFS: cifs_mount failed w/return code = -2
Oct 04 16:31:44 saiyan systemd[1]: mnt-project.mount: Mount process exited, code=exited, status=32/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An n/a= process belonging to unit mnt-project.mount has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 32.

Trying to mount using /etc/fstab shows a similar error about not being able to allocate crypto cmas(aes) and md4.  I'm at a loss of what to do.  Any ideas?

Last edited by xerxes (2021-10-05 10:45:02)

Offline

#2 2021-10-04 22:37:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,256

Re: [Resolved] Having issues mounting samba share using mount.cifs

lsmod | grep -E '(cmac|cifs)'
uname -a
pacman -Qs linux
zgrep -i aes /proc/config.gz

Offline

#3 2021-10-04 23:03:07

xerxes
Member
Registered: 2021-10-04
Posts: 3

Re: [Resolved] Having issues mounting samba share using mount.cifs

1. lsmod | grep -E '(cmac|cifs)'

cifs                 1273856  0
libarc4                16384  1 cifs
dns_resolver           16384  1 cifs
fscache               405504  1 cifs
libdes                 24576  1 cifs

2. uname -a

Linux saiyan 5.14.8-arch1-1 #1 SMP PREEMPT Sun, 26 Sep 2021 19:36:15 +0000 x86_64 GNU/Linux

3. pacman -Qs linux

local/alsa-lib 1.2.5.1-3
    An alternative implementation of Linux sound support
local/archlinux-keyring 20210902-1
    Arch Linux PGP keyring
local/avahi 0.8+22+gfd482a7-1
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/base 2-2
    Minimal package set to define a basic Arch Linux installation
local/efibootmgr 17-2
    Linux user-space application to modify the EFI Boot Manager
local/filesystem 2021.05.31-1
    Base Arch Linux files
local/iptables 1:1.8.7-1
    Linux kernel packet control tool (using legacy interface)
local/keyutils 1.6.3-1
    Linux Key Management Utilities
local/kmod 29-1
    Linux kernel module management tools and library
local/libcap-ng 0.8.2-3
    A library for Linux that makes using posix capabilities easy
local/libiec61883 1.2.0-6
    A higher level API for streaming DV, MPEG-2 and audio over Linux IEEE 1394
local/libraw1394 2.1.2-3
    Provides an API to the Linux IEEE1394 (FireWire) driver
local/libva 2.13.0-1
    Video Acceleration (VA) API for Linux
local/libxshmfence 1.3-2
    a library that exposes a event API on top of Linux futexes
local/linux 5.14.9.arch2-1
    The Linux kernel and modules
local/linux-api-headers 5.12.3-1
    Kernel headers sanitized for use in userspace
local/linux-firmware 20210919.d526e04-1
    Firmware files for Linux
local/pacman-mirrorlist 20210822-1
    Arch Linux mirror list for use by pacman
local/python-distro 1.6.0-1
    Linux OS platform information API
local/util-linux 2.37.2-1
    Miscellaneous system utilities for Linux
local/util-linux-libs 2.37.2-1
    util-linux runtime libraries
local/v4l-utils 1.20.0-1
    Userspace tools and conversion library for Video 4 Linux

4. zgrep -i aes /proc/config.gz

CONFIG_SND_MAESTRO3=m
CONFIG_SND_MAESTRO3_INPUT=y
CONFIG_CRYPTO_AEGIS128_AESNI_SSE2=m
CONFIG_CRYPTO_AES=y
CONFIG_CRYPTO_AES_TI=m
CONFIG_CRYPTO_AES_NI_INTEL=m
CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=m
CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64=m
CONFIG_CRYPTO_LIB_AES=y
CONFIG_CRYPTO_DEV_PADLOCK_AES=m

Offline

#4 2021-10-04 23:08:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,256

Re: [Resolved] Having issues mounting samba share using mount.cifs

Linux saiyan 5.14.8-arch1-1 #1 SMP PREEMPT Sun, 26 Sep 2021 19:36:15 +0000 x86_64 GNU/Linux

vs.

local/linux 5.14.9.arch2-1
    The Linux kernel and modules

You either didn't reboot after a kernel update or forgot to mount /boot before the update or are booting from the root partition.
(The latter two are less likely since eg. cifs is loaded)

=> reboot, try again.

Offline

#5 2021-10-05 00:09:48

xerxes
Member
Registered: 2021-10-04
Posts: 3

Re: [Resolved] Having issues mounting samba share using mount.cifs

Rebooting did it. Thank you!

Last edited by xerxes (2021-10-05 00:10:01)

Offline

#6 2021-10-05 06:32:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,256

Re: [Resolved] Having issues mounting samba share using mount.cifs

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB