Samba share on second drive

I setup samba share on Amalinux V 9.2

The primary hard drive was shared OK, but we cannot share the second hard drive.

smb.conf

[global] 
workgroup = WORKGROUP
server string = Samba Server %v
client min protocol = SMB3
netbios name = CAMPC
security = user
map to guest = bad user
dns proxy = no

[private]
Path =/mnt/sda/private-shared
Valid users = @camgroup
Browseable = no
Writeable = yes
Guest ok = no
Read only = no

[public] 
path = /mnt/sda/shared
browsable =yes
writable = yes
guest ok = yes
read only = no

[public-2]
path = /srv/samba/shared
browsable =yes
writable = yes
guest ok = yes
read only = no

======================
“public-2” on primary drive is working good
“public” share on second drive can not access

ls -l /mnt/sda

drwxrwx---. 2 root camgroup 4096 Jul 10 12:23 private-shared
drwxr-xr-x. 2 root root 16384 Jul 8 19:37 lost+found
drwxrwxrwx. 2 nobody nobody 4096 Jul 10 13:10 shared

======================

Please help what I’m doing wrong.
Thank you

Don’t you just mount the second hdd to a “nearby path”? I have never needed to make my samba config that way. is that normal? I mount the first hdd/ssd to say /mnt/xx then the second would be mounted to /mnt/xx/xx. Sometimes I just mount to the root folder if I’m just testing stuff. /mnt/dietpi_data/xx.

1 Like

Why not asking this question on AlmaLinux forum? https://almalinux.discourse.group/

I just want to share the entire second hard drive, that’s why I configured it that way.

The public-2 share point on the first hard drive is working well. ( /srv/samba/shared )

However, the public share point on the second hard drive /mnt/sda/shared is not working. I don’t know what I’m doing wrong. Can you help me fix this?

ls -l /mnt/sda
drwxrwx—. 2 root ipcam 4096 Jul 10 12:23 private-shared
drwxr-xr-x. 2 root root 16384 Jul 8 19:37 lost+found
drwxrwxrwx. 2 nobody nobody 4096 Jul 10 13:10 shared

Thank you. I’ll.