November 9, 20232 yr I've recently had problems automounting my unraid SMB shares on my NixOS laptop. The problems seems to have begun after my laptop upgraded from kernel 6.5.9 to 6.6.0. Here is my nixos config: fileSystems."/mnt/media" = { device = "//undrobo/media"; fsType = "cifs"; options = let automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s"; in ["${automount_opts},credentials=/home/user/smb-secrets,uid=1000"]; }; and this is the error I get: Nov 09 10:53:42 framework systemd[1]: Mounting /mnt/media... Nov 09 10:53:42 framework mount[23125]: mount error(2): No such file or directory Nov 09 10:53:42 framework mount[23125]: Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg) Nov 09 10:53:42 framework systemd[1]: mnt-media.mount: Mount process exited, code=exited, status=32/n/a Nov 09 10:53:42 framework systemd[1]: mnt-media.mount: Failed with result 'exit-code'. Nov 09 10:53:42 framework systemd[1]: Failed to mount /mnt/media. and this is what dmesg is reporting: [ 2481.296367] CIFS: Attempting to mount //undrobo/media [ 2481.296465] CIFS: VFS: cifs_mount failed w/return code = -2 and finally, this is what the mount point looks like: ❯ sudo ls -al /mnt total 0 drwxr-xr-x 1 root root 20 Jun 9 10:26 . drwxr-xr-x 1 root root 98 Dec 16 2021 .. drwxr-xr-x 2 root root 0 Nov 9 10:12 media
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.