SOLVED : Networking and samba

Hello!

I’m trying to mount a samba share, the share is in my network, I had made some homework and I have
the cifs-utils installed, and I have made several tries in dietpi-drive manager, with user password and global password.

Here is my system I try to mount the share

DietPi v8.2.2 : 11:10 - Tue 03/22/22
 ─────────────────────────────────────────────────────
 - Device model : Native PC (x86_64)
 - CPU temp : 38 °C / 100 °F : Cool runnings

System:
  Kernel: 5.10.0-12-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 
  Desktop: LXDE 0.10.1 Distro: Debian GNU/Linux 11 (bullseye) 
Machine:
  Type: Laptop System: Hewlett-Packard product: HP Pavilion 15 Notebook PC 
  v: 0975100000405F00001620180 serial: <filter> 
  Mobo: Hewlett-Packard model: 22CE v: 93.32 serial: <filter> 
  UEFI [Legacy]: Insyde v: F.42 date: 11/04/2015 
Battery:
  ID-1: BAT1 charge: 28.0 Wh condition: 36.2/36.2 Wh (100%) 
  model: 13-14 OA04041 status: Charging 
CPU:
  Info: Quad Core model: AMD A8-6410 APU with AMD Radeon R5 Graphics 
  bits: 64 type: MCP arch: Puma rev: 1 L2 cache: 2 MiB 
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 15969 
  Speed: 1608 MHz min/max: 1000/1800 MHz boost: enabled Core speeds (MHz): 
  1: 1608 2: 1795 3: 1790 4: 1918

my samba share is on another raspi pi 3b+ running dietpi 6.x.x .

Also when I try open PCmanFM and Thunar and press Go and select Network I get a Error sign
that tells me that operation not supported both in root and in dietpi user mode.

I also have minidlna-server install at the samba server and that works as it should.

And I have checked all logs in /var/log but they are empty.

I can come back later and post my errors when I try to mount my samba share in dietpi-drive-manager.

Probably is there something i just forgot to install or some other user error.

Cheers

-----UPDATES-----

I installed the gvfs-backends package, and now I get no prompt when trying to open network in File manager.

more updates in a couple of hours.

Are you trying to login with the valid user for that share and with the password created with smbpasswd ?

Maybe you can share all relevante information of the Server as well on the Client side

Required Information

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

Maybe the samba package running on the DietPi 6.x system is to old and not working together with the client running DietPi 8.x

of course

First server side

cat /boot/dietpi/.version

_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=34
G_DIETPI_VERSION_RC=3
G_GITBRANCH='master'
G_GITOWNER='MichaIng'

echo $G_DISTRO_NAME $G_RASPBIAN

buster 1

uname -a

Linux MopidyNest 5.4.83-v7+ #1379 SMP Mon Dec 14 13:08:57 GMT 2020 armv7l GNU/Linux

echo $G_HW_MODEL_NAME

RPi 3 Model B (armv7l)

Client side where I try to mount the samba share to:

cat /boot/dietpi/.version

G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=2
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'

echo $G_DISTRO_NAME $G_RASPBIAN

bullseye

uname -a

Linux Unicron-II-PC 5.10.0-12-amd64 #1 SMP Debian 5.10.103-1 (2022-03-07) x86_64 GNU/Linux

echo $G_HW_MODEL_NAME

Native PC (x86_64)

additional info I change samba password to a new fresh

I have set the share path as in drive manager first ip number then path dietpi/mnt/externaldrive , set user as dietpi as written in smb.conf at server side, and then password.

Error log from driver manager

[FAILED] Samba mount failed with the following error output:                                                         │ 
         │                                                                                                                      │ 
         │ mount error(2): No such file or directory                                                                            │ 
         │ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)                         │ 
         │ mount error(2): No such file or directory                                                                            │ 
         │ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)                         │ 
         │ mount error(2): No such file or directory                                                                            │ 
         │ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)                         │ 
         │ mount error(2): No such file or directory                                                                            │ 
         │ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)                         │ 
         │ mount error(20): Not a directory                                                                                     │ 
         │ Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

log from driver-manager

[ INFO ] DietPi-Drive_Manager | Detecting drives, please wait...
[ INFO ] DietPi-Drive_Manager |  - Detected mounted physical drive: /dev/sda1 > /
[ INFO ] DietPi-Drive_Manager |  - Detected unformatted drive: /dev/sr0
[  OK  ] DietPi-Drive_Manager | mv .fstab /etc/fstab
[  OK  ] DietPi-Drive_Manager | systemctl daemon-reload
[ INFO ] DietPi-Drive_Manager | Checking for required APT packages: e2fsprogs
[  OK  ] DietPi-Drive_Manager | sync
[ INFO ] DietPi-Drive_Manager | Checking for required APT packages: cifs-utils smbclient
[  OK  ] DietPi-Drive_Manager | Desired setting in /boot/dietpi/.installed was already set: aSOFTWARE_INSTALL_STATE[1]=2
[  OK  ] DietPi-Drive_Manager | mkdir -p /mnt/samba
[ INFO ] DietPi-Drive_Manager | Attempting to mount with CIFS version: 3.1.1
[ INFO ] DietPi-Drive_Manager | Attempting to mount with CIFS version: 3.0
[ INFO ] DietPi-Drive_Manager | Attempting to mount with CIFS version: 2.1
[ INFO ] DietPi-Drive_Manager | Attempting to mount with CIFS version: 2.0
[ INFO ] DietPi-Drive_Manager | Attempting to mount with CIFS version: 1.0

Setting the share name dietpi/mnt/externaldrive is incorrect. The share is called dietpi only on our default configuration. And on a default setup, it will point to directory /mnt/dietpi_userdata on server side.

Yes! that was the problem, thanks ,

Solution

<IP-ADRESS> /DIETPI>

I shall remember that to next time.