How to fix VFS: cifs_mount failed w/return code = -115 after an update
1
vote
0
answers
1796
views
This was quite a catastrophic update. Initially, all I got after reboot was a brief error that turned into kernel panic after a few seconds. I booted into the previous kernel but it would not start X. I realized that there was no initramfs for the new kernel and ran
dracut -f -v
to rebuild all of them. It rebuilt old images but not the new one. I realized that Nvidia kernel module was failing it and uninstalled Nvidia drivers, ran depmod
and built initramfs for the new kernel.
When I wanted to reinstall Nvidia driver, the drive where I keep it was not mounting from the text console. I had to bring the driver over on an external drive. Then I got X but there is still a problem with CIFS: my Windows shares no longer mount during the system boot. After a few seconds, they throw error -115 (no matter how many times I try). They mount only manually, after X starts, and instantaneously.
$ sudo dmesg|grep CIFS|less
[ 17.445268] CIFS: enabling forceuid mount option implicitly because uid= option is specified
[ 17.445273] CIFS: enabling forcegid mount option implicitly because gid= option is specified
[ 17.445275] CIFS: Attempting to mount //server/share
[ 27.817807] CIFS: VFS: Error connecting to socket. Aborting operation.
[ 27.817822] CIFS: VFS: cifs_mount failed w/return code = -115
[ 121.033569] CIFS: enabling forceuid mount option implicitly because uid= option is specified
[ 121.033574] CIFS: enabling forcegid mount option implicitly because gid= option is specified
[ 121.033576] CIFS: Attempting to mount //server/share
The first attempt is the auto-mounting during the boot, and the second is my manual mounting.
The line in fstab
that has worked for more than a decade (with a couple of vers
updates) is:
//server/share /mnt/shared cifs credentials=/etc/smbcredentials,iocharset=utf8,fsc,uid=use0,gid=use0,file_mode=0644,dir_mode=0777,vers=3.11 0 0
Tried smb3
in place of cifs
. Makes no difference.
My first thought was that something changed in 6.14.5 from the perspective of CIFS syntax, but then I booted into older kernels and found that all of them have the same error now, so this is rather a library/tool issue then kernel, and this might be relevant:
Upgrade libsmbclient-2:4.21.5-1.fc41.x86_64 Dependency updates
Replaced libsmbclient-2:4.21.4-1.fc41.x86_64 Dependency @System
How can the CIFS error be fixed?
Asked by SuperAl
(151 rep)
May 8, 2025, 10:30 PM
Last activity: May 8, 2025, 10:43 PM
Last activity: May 8, 2025, 10:43 PM