Updated Kernel now cant access/mount LAN drives

I decided to update my kernel to newer LTS Kernel: 5.15.19-1 but now i can not access or mount my backup network HDD’s?

❰greg❙~❱✔≻ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=bfe48f69-800c-4332-b8ea-0df162b1710d /              ext4    defaults,noatime 0 1
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0
/swapfile    none    swap    sw    0    0
//192.168.2.1/volume(sda1) /run/media/greg/NAS cifs user,nofail,vers=1.0,credentials=/home/greg/.smbcredentials,uid=1000,gid=1001,iocharset=utf8,sec=ntlm 0 0
//192.168.2.1/volume(sda1) /run/media/greg/CAVERN cifs user,nofail,vers=1.0,credentials=/home/greg/.smbcredentials,uid=1000,gid=1001,iocharset=utf8,sec=ntlm 0 0
❰greg❙~❱✔≻
❰greg❙~❱✔≻ mount /run/media/greg/NAS
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
❰greg❙~❱✔≻ sudo dmesg | tail
[sudo] password for greg: 
[  953.326133] Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers

[  953.326140] CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
[  953.326146] bad security option: ntlm

[  953.326148] CIFS: VFS: bad security option: ntlm
[ 1013.677499] audit: type=1100 audit(1644431921.026:104): pid=5046 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="greg" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 1013.678478] audit: type=1101 audit(1644431921.026:105): pid=5046 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="greg" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 1013.681322] audit: type=1110 audit(1644431921.029:106): pid=5046 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 1013.689328] audit: type=1105 audit(1644431921.036:107): pid=5046 uid=1000 auid=1000 ses=1 subj==unconfined msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
❰greg❙~❱✔≻ C^C
❰greg❙~❱✘≻ journalctl -S -15m
Feb 09 18:43:19 greg-inspiron5767 kernel: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Feb 09 18:43:19 greg-inspiron5767 kernel: CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
Feb 09 18:43:19 greg-inspiron5767 kernel: bad security option: ntlm
Feb 09 18:43:19 greg-inspiron5767 kernel: CIFS: VFS: bad security option: ntlm


System:
  Host: greg-inspiron5767 Kernel: 5.15.19-1-MANJARO x86_64 bits: 64
    Desktop: KDE Plasma 5.23.5 Distro: Manjaro Linux
Machine:
  Type: Laptop System: Dell product: Inspiron 5767 v: N/A
    serial: <superuser required>
  Mobo: Dell model: 03XWWJ v: A00 serial: <superuser required>
    UEFI-[Legacy]: Dell v: 1.4.1 date: 12/24/2020
Battery:
  ID-1: BAT0 charge: 42.0 Wh (100.0%) condition: 42.0/42.0 Wh (100.0%)
CPU:
  Info: dual core Intel Core i5-7200U [MT MCP] speed (MHz): avg: 1091
    min/max: 400/3100
Graphics:
  Device-1: Intel HD Graphics 620 driver: i915 v: kernel
  Device-2: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo
  Display: x11 server: X.Org 1.21.1.3 driver: loaded: modesetting
    resolution: 1920x1080~60Hz
  Message: Unable to show advanced data. Required tool glxinfo missing.
Network:
  Device-1: Intel Wireless 3165 driver: iwlwifi
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet driver: r8169
  Device-3: Intel Bluetooth wireless interface type: USB driver: btusb
Drives:
  Local Storage: total: 931.51 GiB used: 76.61 GiB (8.2%)
Info:
  Processes: 214 Uptime: 13m Memory: 15.45 GiB used: 2.95 GiB (19.1%)
  Shell: fish inxi: 3.3.12

https://bbs.archlinux.org/viewtopic.php?id=271264

what! ok thx for the pointer but how do i sort this access and mount now then please. thx.

Please keep in mind im not very good with linux, so you’ll need to walk me through any instruction (no assumptions of my knowledge)

Some options I can think of that do not require a custom kernel:

1 Does the system that you connect to have the option to set the default authentication protocol version or provide options, refer to the support group/company for the NAS that you use.

2 Does kernel 5.10 or 5.4 have this issue to? (the removal of ntlm might not get backported to al the lts kernels)

I would try option 1 first since some day you will have to upgrade kernels and run into this again.

Edit: dang these long lines that scroll of the screen
There is a version declared in the fstab line for the mounts: vers=1.0 changing that to a higher number (again check the NAS documentation) might solve the issue.

1 Like

Nop no options, this is just external hdds plugged into my router, there are no such options.

I cant believe this. Every time i update, something breaks. Im still waiting for them to fix bluez so my bluetooth works again after the last stable update. I terrified of updates nowadays.

I can downgrade back to previous kernel, how long do you think that will remain?

Having multiple kernels is not complex: Manjaro Kernels - Manjaro

The screenshot shows the storage part of the NAS, if there is no page for the share part where permissions, protocols, share names etc are configured then your options are limited.

ntlm is deprecated and has been removed from the kernel

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=76a3c92ec9e0668e4cd0e9ff1782eb68f61a179c

1 Like

there are non


Im trying to create an account on the archlinux forum (i have one but it says i dont but i know i do i use a PW manager) So trying to create a new account, it asking for me to solve this command but i cant

greg@greg-inspiron5767 ~ $ "date -u +%V$(uname)|sha256sum|sed 's/\W//g'"?
bash: date -u +%VLinux|sha256sum|sed 's/\W//g'?: No such file or directory
greg@greg-inspiron5767 ~ $ date -u +%V$(uname)|sha256sum|sed 's/\W//g'"?  
> ^C
greg@greg-inspiron5767 ~ $ echo "date -u +%V$(uname)|sha256sum|sed 's/\W//g'"?
date -u +%VLinux|sha256sum|sed 's/\W//g'?
greg@greg-inspiron5767 ~ $ "date -u +%V$(uname)|sha256sum|sed 's/\W//g'"?*      
bash: date -u +%VLinux|sha256sum|sed 's/\W//g'?*: No such file or directory
greg@greg-inspiron5767 ~ $

NM i managed to register, but sounds like it wont help :frowning:

The users of the arch linux forum would point to the same change.

What kind of NAS are you running? are there updates available for it?
Did changing the kernel solve the issue?

I said, it just external hdd’s connected to my router USB ports. Im sure if i downgrade back to previous kernel it will be fine again but for how long?

I cant use linux if i cant access my network storage, and i just brought new wd reds for the 2 enclosures as well.

Kernel 5.10 has a projected EOL date of Dec, 2026. I don’t know if ntlm is supported or will remain supported throughout this time. Maybe try switching to this kernel?

https://kernel.org/category/releases.html

Im sure 5.10 will work fine as thats what i just upgraded from and it was working just fine (5.10.96-1) I will downgrade shortly after all options are exhausted.

Ok im back on 5.10.96-1 and i have access again to both drives.

Lets say im going to have to upgrade the kernel sometime, how do i setup backup LAN storage from scratch then? Because im darn well not going around with external drives to each of my computers twice a day to back them up.

Im also wondering, if i have a system failure with my current downgraded setup and i have to install a clean distro of Manjaro, Will i be able to downgrade the kernel on a new installation so i can access my backups of /home from the LAN drives ?

Just in case i missed anything in my router settings can someone please take a quick look for me Guest Network Status; Usb Settings; Usb Mass Storage - TP-Link TD-W9980 User Manual [Page 79] | ManualsLib

Cheers

:+1:

Refer to the documentation/support options of the device you plug the drives into.

Yes this is possible until the older kernels are no longer supported or until the deprecation of ntlm is backported to the older kernels.

The reason this is happening is security related. The NAS uses a old option. The kernel developers deem this option insecure/outdated and not to be used and remove it from newer kernels.

lol, but me losing my entire home folder and all other bit and pieces on a system failure is not a problem at all :stuck_out_tongue:

Are things exactly like this supposed to be up to the end user, especially if there is no alternative, especially on linux? Let us know for sure, but don’t force it like windows would.

Sorry, i dont understand this comment. "The device i have plugged into my router is 2 hdd’s. The device is my router. If you can see what i need to do/change please let me know

What im asking is how do i setup a new LAN storage system, do i need to buy new equipment like a NAS box, maybe new router, switches ? what? what do i need to do/buy/build?

I use a raspberry pi running Debian 11 as a NAS. You could use you existing hard drives as the storage.

Sounds like you know what you are doing :slight_smile: Prob took me several weeks to get enough help and searching every day to figure how to setup my storage in the first place. This was years ago, i wouldn’t be able to remember now without notes i took at the time. Now you suggest i learn how to use SBC’s let alone turn one into a NAS (not laughing at you but ) :rofl: