Unable to mount cifs shares - NanoPi M3

fstab

#Internal Drives---------------------------------------------------
proc            /proc           proc    defaults                               0 0
/dev/mmcblk0p1  /boot           auto    defaults,noatime,discard               0 2
/dev/mmcblk0p2  /               auto    defaults,noatime,discard               0 1
tmpfs                   /tmp                    tmpfs   defaults,noatime,nodev,nosuid,mode=1777                         0 0
#/var/log DietPi Ramlog Disabled
tmpfs                   /DietPi                 tmpfs   defaults,size=10m,noatime,nodev,nosuid,mode=1777        0 0

#External Drives---------------------------------------------------
#NB: Please use dietpi-drive_manager to setup and control your external drives.
#/dev/sdb1       /mnt/usb_2      auto     defaults,noatime,nofail,x-systemd.automount  0 0
#/dev/sdc1       /mnt/usb_3      auto     defaults,noatime,nofail,x-systemd.automount  0 0
#/dev/sdd1       /mnt/usb_4      auto     defaults,noatime,nofail,x-systemd.automount  0 0
#/dev/sde1       /mnt/usb_5      auto     defaults,noatime,nofail,x-systemd.automount  0 0

#Samba Client------------------------------------------------------
//192.168.0.33/public /mnt/samba cifs username=rpi,password=xxxxxx,iocharset=utf8,sec=ntlm,nofail  0  0

#FTP Client Mount--------------------------------------------------
#/mnt/ftp_client . Please use dietpi-config and the Networking Options: NAS menu to setup this mount

#NFS Client Mount--------------------------------------------------
#/mnt/nfs_client . Please use dietpi-config and the Networking Options: NAS menu to setup this mount
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that

mount -a

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)

Ok, it looks like the same problem.
Just to double check: is samba server installed and running?

systemctl status smbd

Samba is working correctly

systemctl status smbd
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd)
Active: active (running) since pon 2017-05-01 10:19:37 CEST; 1 day 19h ago
Process: 20950 ExecReload=/etc/init.d/smbd reload (code=exited, status=0/SUCCESS)
Process: 975 ExecStart=/etc/init.d/smbd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/smbd.service
├─ 987 /usr/sbin/smbd -D
├─ 996 /usr/sbin/smbd -D
└─26156 /usr/sbin/smbd -D

maj 03 06:13:30 RPi smbd[26156]: pam_unix(samba:session): session opened fo…0)
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Hint: Some lines were ellipsized, use -l to show in full.

If next update will be soon and it will solve my problem - I can wait
If I have to fix this, could you make some point list with steps what I have to do to fix it.

Thanks in advance!

Unfortunately I am not able to provide any easy solutions.
If it’s a kernel problem, it should not be a DietPi exclusive since AFAIK the kernel is directly provided by other sources.
The only “easy” solution I can think of is to install DietPi on a different card (without updating it) and then copy the kernel to your actual installation, but I can’t provide a step-by-step tutorial for this as it is beyond my knowledge.
The best thing would be to wait for **Fourdee’**s insights on this.

Any ideas?
Maybe there is possibility to make update to v149 once again and everything will be installed correctly.
Eventually when can I suppose v150?

Unfortunately I don’t know when v150 will be available.
The fact that you are the only one experiencing this problem leads me to believe that it most probably is an issue with your installation rather than a bug in DietPi itself, but as I said before I am not qualified to dig any deeper.
Let’s wait for help from the other moderators.

EDIT: I have just read this.
Have you by any chance forced the update of the kernel?

Hi guys,

I’ll need to rebuild the kernel and enable CIFS support. Ticket for v150 patch:
https://github.com/Fourdee/DietPi/issues/920

Ok, I withdraw everything I have said so far, then! :smiley:

Hehe,

Yep its a missing module in current kernel:

root@DietPi:~# modprobe cifs
modprobe: FATAL: Module cifs not found.

So rebuild it is :slight_smile:

Fixed during v150 patch, or manual fix can be applied now:
https://github.com/Fourdee/DietPi/issues/920#issuecomment-299866822