Score:1

RockyLinux: unable to load cifs module

in flag

I have installed RockyLinux 8.5 and am trying to mount a directory via cifs. I get the following error message:

# mount -t cifs -o user=<remarked>,domain=<remarked>,password=<remarked> //<remarked>/backups /mnt/backups
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)

The RPM packages cifs-utils and samba-utils are booth installed, but it seems to be, that the kernel can not find the cifs module because it is not possible to load it:

# find / -name "cifs"
/usr/lib/modules/4.18.0-348.el8.0.2.x86_64/kernel/fs/cifs
# lsmod | grep cifs
# modprobe cifs
modprobe: FATAL: Module cifs not found in directory /lib/modules/4.18.0-348.el8.0.2.x86_64

Does anyone have an idea why RockyLinux cannot load the cifs module? This is probably the problem why the mount does not work.

Here are additionally my dmesg logs. I cant found anything about cifs.

Score:1
in flag

Because you don't have the cifs module, else you would have seen

# find / -name "cifs"
/usr/lib/modules/4.18.0-348.el8.0.2.x86_64/kernel/fs/cifs
/usr/lib/modules/4.18.0-348.el8.0.2.x86_64/kernel/fs/cifs/cifs.ko
Score:0
in flag

I found the solution for my problem. I've installed such a minimal version of RockyLinux, that the RPM kernel-modules and kernel-core were missing.

After installing booth RPMs could cifs be loaded via modprobe cifs.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.