You are not logged in.

#1 2022-05-09 17:03:48

iminaqube
Member
Registered: 2022-05-09
Posts: 7

[SOLVED] CIFS doesn't exist in kernel after updating.

I am using Samba to be able to archive files and host my services for personal use and while updating one of my servers that connect to it and extension my server that hosts Samba this error comes up on booting:
> May 10 00:09:56 homeserver kernel: request_module fs-cifs succeeded, but still no fs?

modprobe cifs also produces no progress as well

lsmod | grep cifs
cifs_arc4              16384  0
cifs_md4               16384  0

when doing $ sudo mount -a

mount error: cifs filesystem not supported by the system
mount error(19): No such device
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

zgrep -i cifs /proc/config.gz produces this:

CONFIG_CIFS=m
# CONFIG_CIFS_STATS2 is not set
CONFIG_CIFS_ALLOW_INSECURE_LEGACY=y
CONFIG_CIFS_UPCALL=y
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_POSIX=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_SWN_UPCALL=y
# CONFIG_CIFS_SMB_DIRECT is not set
CONFIG_CIFS_FSCACHE=y

I also tried installing the default linux(-headers) kernel after trying the linux-hardened(-headers) which is what i normally use but to no avail, it produced no resolution.

find /lib/modules/ -name cifs.ko produces nothing as well.

the /etc/fstab entry also is listed (obviously hiding the details):

//192.168.0.9/samba /media/samba cifs _netdev,nofail,username=User,password=Password,rw,users,iocharset=utf8,vers=3.0,uid=9696,gid=6969 0 0 

Also this wasn't reproducible using my aptly named server SAMBACHAMBA (IDK why I named it this.)

Last edited by iminaqube (2022-05-09 19:38:48)

Offline

#2 2022-05-09 17:12:25

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,539

Re: [SOLVED] CIFS doesn't exist in kernel after updating.

modules in Arch are compressed, so you're looking for cifs.ko.zst.

Offline

#3 2022-05-09 18:10:32

iminaqube
Member
Registered: 2022-05-09
Posts: 7

Re: [SOLVED] CIFS doesn't exist in kernel after updating.

Scimmia wrote:

modules in Arch are compressed, so you're looking for cifs.ko.zst.

thank you i have found that: /lib/modules/5.17.5-arch1-1/kernel/fs/cifs/cifs.ko.zst

but the only two that modules that are in affect are cifs_arc4 and cifs_md4 (after modprobing)

Last edited by iminaqube (2022-05-09 18:11:34)

Offline

#4 2022-05-09 18:16:23

iminaqube
Member
Registered: 2022-05-09
Posts: 7

Re: [SOLVED] CIFS doesn't exist in kernel after updating.

I found that i can use sudo insmod /lib/modules/5.17.5-arch1-1/kernel/fs/cifs/cifs.ko.zst to load that module but that doesn't really solve the fact that modprobe doesn't load it or load it automatically.

cifs                 2215936  0
cifs_arc4              16384  1 cifs
cifs_md4               16384  1 cifs
dns_resolver           16384  1 cifs
fscache               385024  1 cifs

thank you for that info though that got half the problem fixed smile

just also made sure that it fixed it by restarting (it didn't) and insmod is still the only way to load it.

Last edited by iminaqube (2022-05-09 18:22:47)

Offline

#5 2022-05-09 19:12:57

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: [SOLVED] CIFS doesn't exist in kernel after updating.

uname -a # check
modinfo cifs # check
depmod -a # possible fix

Offline

#6 2022-05-09 19:22:30

iminaqube
Member
Registered: 2022-05-09
Posts: 7

Re: [SOLVED] CIFS doesn't exist in kernel after updating.

seth wrote:
uname -a # check
modinfo cifs # check
depmod -a # possible fix

Linux homeserver 5.17.5-arch1-1 #1 SMP PREEMPT Wed, 27 Apr 2022 20:56:11 +0000 x86_64 GNU/Linux

filename:       /lib/modules/5.17.5-arch1-1/kernel/fs/cifs/cifs.ko.zst
softdep:        gcm
softdep:        ccm
softdep:        aead2
softdep:        sha512
softdep:        sha256
softdep:        cmac
softdep:        aes
softdep:        nls
softdep:        md5
softdep:        hmac
softdep:        ecb
version:        2.35
description:    VFS to access SMB3 servers e.g. Samba, Macs, Azure and Windows (and also older servers complying with the SNIA CIFS Specification)
license:        GPL
author:         Steve French
alias:          smb3
alias:          fs-smb3
alias:          fs-cifs
srcversion:     FC3505487F9EB49F702347E
depends:        fscache,cifs_md4,cifs_arc4,dns_resolver
retpoline:      Y
intree:         Y
name:           cifs
vermagic:       5.17.5-arch1-1 SMP preempt mod_unload
sig_id:         PKCS#7
signer:         Build time autogenerated kernel key
sig_key:        14:27:19:EF:42:37:EA:B2:C3:95:AD:18:60:86:48:3F:25:0E:DD:1C
sig_hashalgo:   sha512
signature:      30:66:02:31:00:81:96:FE:00:79:40:1B:5C:F5:A0:32:03:1B:61:1D:
                14:83:49:36:E4:B9:DE:E0:4B:F4:83:2F:68:28:0D:3A:DA:E0:4D:C2:
                18:2B:06:F6:EE:C8:5C:A0:57:96:D0:C8:FB:02:31:00:97:95:08:EE:
                DE:A2:EF:E0:51:9D:D8:D2:58:50:1A:7A:84:9D:F5:68:3D:64:B0:33:
                C0:08:67:EC:11:87:56:67:7D:F4:82:D4:D0:C0:70:E3:A0:52:C0:14:
                2A:CF:62:62
parm:           CIFSMaxBufSize:Network buffer size (not including header) for CIFS requests. Default: 16384 Range: 8192 to 130048 (uint)
parm:           cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64 (uint)
parm:           cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256 (uint)
parm:           cifs_max_pending:Simultaneous requests to server for CIFS/SMB1 dialect (N/A for SMB3) Default: 32767 Range: 2 to 32767. (uint)
parm:           enable_oplocks:Enable or disable oplocks. Default: y/Y/1 (bool)
parm:           enable_gcm_256:Enable requesting strongest (256 bit) GCM encryption. Default: n/N/0 (bool)
parm:           require_gcm_256:Require strongest (256 bit) GCM encryption. Default: n/N/0 (bool)
parm:           enable_negotiate_signing:Enable negotiating packet signing algorithm with server. Default: n/N/0 (bool)
parm:           disable_legacy_dialects:To improve security it may be helpful to restrict the ability to override the default dialects (SMB2.1, SMB3 and SMB3.02) on mount with old dialects (CIFS/SMB1 and SMB2) since vers=1.0 (CIFS/SMB1) and vers=2.0 are weaker and less secure. Default: n/N/0 (bool)

and depmod -a did not fix it ( I rebooted.)

this was done when cifs wasnt loaded in as well as well as it being loaded in using insmod.

Last edited by iminaqube (2022-05-09 19:26:05)

Offline

#7 2022-05-09 19:25:41

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: [SOLVED] CIFS doesn't exist in kernel after updating.

So the module matches the kernel, modinfo has no trouble finding it and insmod loads it…

sudo modprobe -v cifs # make sure the module isn't loaded before

Offline

#8 2022-05-09 19:30:13

iminaqube
Member
Registered: 2022-05-09
Posts: 7

Re: [SOLVED] CIFS doesn't exist in kernel after updating.

seth wrote:

So the module matches the kernel, modinfo has no trouble finding it and insmod loads it…

sudo modprobe -v cifs # make sure the module isn't loaded before

that produces: install /bin/true

this is with these two existing in lsmod no mention of proper cifs
cifs_arc4              16384  0
cifs_md4               16384  0

Last edited by iminaqube (2022-05-09 19:31:48)

Offline

#9 2022-05-09 19:31:47

seth
Member
Registered: 2012-09-03
Posts: 50,924

Re: [SOLVED] CIFS doesn't exist in kernel after updating.

Offline

#10 2022-05-09 19:32:42

iminaqube
Member
Registered: 2022-05-09
Posts: 7

Re: [SOLVED] CIFS doesn't exist in kernel after updating.

damn thank you smile

Offline

#11 2022-05-09 19:34:14

iminaqube
Member
Registered: 2022-05-09
Posts: 7

Re: [SOLVED] CIFS doesn't exist in kernel after updating.

I thought it would result in the opposite behavior

Last edited by iminaqube (2022-05-09 19:34:26)

Offline

Board footer

Powered by FluxBB