Unable to mount cifs shares - NanoPi M3

Having issues with your DietPi installation, or, found a bug? Post it here.
pitekkkk

Re: Unable to mount cifs shares - NanoPi M3

Post by pitekkkk »

fstab

Code: Select all

#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

Code: Select all

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)
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Unable to mount cifs shares - NanoPi M3

Post by Sciamano »

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

Code: Select all

systemctl status smbd
Last edited by Sciamano on Tue May 02, 2017 4:33 pm, edited 1 time in total.
Reason: typo
pitekkkk

Re: Unable to mount cifs shares - NanoPi M3

Post by pitekkkk »

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!
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Unable to mount cifs shares - NanoPi M3

Post by Sciamano »

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.
pitekkkk

Re: Unable to mount cifs shares - NanoPi M3

Post by pitekkkk »

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?
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Unable to mount cifs shares - NanoPi M3

Post by Sciamano »

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?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Unable to mount cifs shares - NanoPi M3

Post by Fourdee »

Hi guys,

I'll need to rebuild the kernel and enable CIFS support. Ticket for v150 patch:
https://github.com/Fourdee/DietPi/issues/920
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: Unable to mount cifs shares - NanoPi M3

Post by Sciamano »

Ok, I withdraw everything I have said so far, then! :D
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Unable to mount cifs shares - NanoPi M3

Post by Fourdee »

Sciamano wrote:Ok, I withdraw everything I have said so far, then! :D
Hehe,

Yep its a missing module in current kernel:

Code: Select all

root@DietPi:~# modprobe cifs
modprobe: FATAL: Module cifs not found.
So rebuild it is :)
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Unable to mount cifs shares - NanoPi M3

Post by Fourdee »

Fixed during v150 patch, or manual fix can be applied now:
https://github.com/Fourdee/DietPi/issue ... -299866822
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply