You are not logged in.
Hi everyone,
after this weekends updates I am no longer able to mount my SMB server shares, no matter what method I try.
It does not seem to be one of the issues reported with the 5.15 kernel as I use the current 5.18.
Until now I used the following line (-s, all the same) to connect to the server (TrueNAS-12.0-U8.1, no recent updates):
# NAS
//10.0.0.12/store /mnt/store cifs x-systemd.automount,credentials=/home/USERNAME/.cred,vers=3.1.1,uid=1000,gid=1000,iocharset=utf8 0 0
I removed the vers as there was an error message pointing to it (cannot reproduce).
I also added the noauto option as the sample in the wiki shows.
Also tried -t SMB3, added sec, etc.
It always returns a code -22:
$ sudo mount -a
$ journalctl | tail
Jul 05 21:31:48 archryzen kernel: CIFS: VFS: cifs_mount failed w/return code = -22
Jul 05 21:31:49 archryzen systemd[1]: mnt-store.automount: Got automount request for /mnt/store, triggered by 7311 (Fm::JobThread)
Jul 05 21:31:49 archryzen systemd[1]: Mounting /mnt/store...
Jul 05 21:31:49 archryzen kernel: CIFS: Attempting to mount \\10.0.0.12\store
Jul 05 21:31:49 archryzen mount[7313]: mount error(22): Invalid argument
Jul 05 21:31:49 archryzen mount[7313]: Refer to the mount.smb3(8) manual page (e.g. man mount.smb3) and kernel log messages (dmesg)
Jul 05 21:31:49 archryzen systemd[1]: mnt-store.mount: Mount process exited, code=exited, status=32/n/a
Jul 05 21:31:49 archryzen systemd[1]: mnt-store.mount: Failed with result 'exit-code'.
Jul 05 21:31:49 archryzen systemd[1]: Failed to mount /mnt/store.
Jul 05 21:31:49 archryzen kernel: CIFS: VFS: cifs_mount failed w/return code = -22
Manual mount is also not possible and basically returns the same error:
$ sudo mount -t cifs //10.0.0.12/store /mnt/store/ -o user=USERNAME
Couldn't chdir to /mnt/store/: No such device
$ journalctl | tail
Jul 05 21:54:12 archryzen mount[8161]: Refer to the mount.smb3(8) manual page (e.g. man mount.smb3) and kernel log messages (dmesg)
Jul 05 21:54:12 archryzen systemd[1]: mnt-store.mount: Mount process exited, code=exited, status=32/n/a
Jul 05 21:54:12 archryzen systemd[1]: mnt-store.mount: Failed with result 'exit-code'.
Jul 05 21:54:12 archryzen systemd[1]: Failed to mount /mnt/store.
Jul 05 21:54:12 archryzen kernel: CIFS: VFS: cifs_mount failed w/return code = -22
Any ideas are highly welcome. Working without access to my server is not fun.
Thanks!
My system:
Operating System: Arch Linux
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5
Kernel Version: 5.18.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX Vega
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C37
System Version: 2.0
Last edited by theringoffire (2022-07-05 23:22:41)
Offline
Offline
Thanks!
I just checked the NW section, sorry.
I will give the workarounds a try & mark as solved.
Offline
Workaround with vers=2.0 worked.
Offline