System crash when trying to mount encrypted samba share

Hi

Running latest OpenWrt (24.10.1) and trying to mount a remote cifs/samba share using the command

mount -t cifs //10.0.0.10/backups /mnt/backups -o rw,noserverino,username=<username>,password=<password>,vers=3.0

The device hangs and a manual restart is required.

The Samba server is set to

server min protocol = SMB3_00
server max protocol = SMB3_11
smb encrypt = mandatory

When i remove smb encrypt mandatory , the device can connect (also in lower version of samba , like 2.1)

I guess OpenWrt is missing package/support for smb3 encryption ?

How can i fix it ? any pointers would be appreciated.

Firstly, add bg to your mount options and then use logread -f to follow the log buffer.

This will put the mount command in the background and free up the terminal for other things - and you could then use kill -KILL <PID of mount that's hung> to kill it off.

Once you've got log info, it might be clearer where the problem lies.

1 Like

Thanks for your reply

Unfortunately, as mentioned , the devices crash after i execute the command , so no log is available.

I Wonder if anyone else managed to get smb3 mount on remote server with encryption on OpenWrt.