DietPi drive manager blank password issue!

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi drive manager blank password issue!

Post by Joulinar »

you can stay with your setup, no issues :)

You can try to add following to your /etc/fstab and leave password empty

Code: Select all

//<IP>/<Share> /mnt/samba cifs username=<user>,password=<password>,iocharset=utf8,uid=dietpi,gid=dietpi,file_mode=0770,dir_mode=0770,vers=3.1.1,_netdev,nofail,noauto,x-systemd.automount
Unusual place is within the NETWORK section

Btw. My RPi stays cool all the time. Even in installation of Bitwarden (compiling on all cores), it stays around 45°C. I'm using a case with fan

Code: Select all

 ─────────────────────────────────────────────────────
 DietPi v6.34.3 : 01:02 - Fri 12/25/20
 ─────────────────────────────────────────────────────
 - Device model : RPi 4 Model B (armv7l)
 - Uptime : up 51 minutes
 - CPU temp : 37'C : 98'F (Cool runnings)
 - LAN IP : 192.168.0.11 (eth0)
 - Info Text : !!! PRODUCTION SYSTEM !!!
 ─────────────────────────────────────────────────────
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
stephane77
Posts: 33
Joined: Sun Nov 22, 2020 2:29 am

Re: DietPi drive manager blank password issue!

Post by stephane77 »

Hi,
I add this line in /etc/fstab under Network but it doesn't work!

# NETWORK
#----------------------------------------------------------------
//192.168.1.109/Media/Downloads /mnt/samba/aria2ng/downloads cifs username="Htpc",password="",iocharset=utf8,uid=dietpi,gid=dietpi,file_mode=0770,dir_mode=0770,vers=3.1.1,_netdev,nofail,noauto,x-systemd.automount

If from SSH session, I do this cmd, it works right away! What am I doing wrong?
mount -t cifs -o username="Htpc",password="" //192.168.1.109/Media/Downloads /mnt/samba/aria2ng/downloads

Regards,
Stephane
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi drive manager blank password issue!

Post by Joulinar »

did you tried to access the folder? like

Code: Select all

cd /mnt/samba/aria2ng/downloads
Usually the folder will be mounted the moment you try to access it. It's not mounted right on system start. That's what the x-systemd.automount flag will do. As well you can have a look to journalctl to check if a mount was done. You should see something like this if the mount is working

Code: Select all

Dec 29 17:16:57 DietPi3 kernel: FS-Cache: Netfs 'cifs' registered for caching
Dec 29 17:16:57 DietPi3 kernel: Key type cifs.spnego registered
Dec 29 17:16:57 DietPi3 kernel: Key type cifs.idmap registered
Dec 29 17:16:57 DietPi3 kernel: CIFS: Attempting to mount //192.168.0.10/Share
Dec 29 17:16:57 DietPi3 kernel: No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.
g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
similar should be visible on dmesg

Code: Select all

[ 1863.974658] FS-Cache: Netfs 'cifs' registered for caching
[ 1863.987479] Key type cifs.spnego registered
[ 1863.987494] Key type cifs.idmap registered
[ 1863.988280] CIFS: Attempting to mount //192.168.0.10/Share
[ 1863.988314] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
stephane77
Posts: 33
Joined: Sun Nov 22, 2020 2:29 am

Re: DietPi drive manager blank password issue!

Post by stephane77 »

Hi Joulinar,

When I access the folder from SSH with cd /mnt/samba/aria2ng/downloads it's empty!
When I go in my Windows 10 partition, files are there!?! I don't understand that part!

I had a look at the log of journalctl
Don't find anywhere cifs or Attempting to mount //192.168
dmesg gives me no cifs or Attempting to mount //192.168

Regards,
Stephane
User avatar
Joulinar
Posts: 4836
Joined: Sat Nov 16, 2019 12:49 am

Re: DietPi drive manager blank password issue!

Post by Joulinar »

did you reboot your system since you changed /etc/fstab?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply