Samba shares

I just reinstalled osmc on my pi3 because the samba service got broken due to my tinkering with it. However, I notice that there is only one default share now, a folder called “osmc”.

On the previous installation, my two USB disks got shared automatically. I know this because I recently addede another disk, and I did no configuration at all, but it popped up as a windows share still.

So, how can I either make the server share all USB disks automatically, or share them manually once and for all? Do I have to do it manually in the smb.conf file? If so, how come it happened automatically in the previous installation?

Did you install the samba server from OSMC store?
Are your harddisk connected before you boot the Pi?
Are the harddisks automounted at /media?

I installed it from the store, yes.

The harddisk was connected before the boot, and before the smb server installation.

They are both automounted under /media.

Than it should work. Post your /etc/smb.conf

config file = /etc/samba/smb-local.conf

workgroup = WORKGROUP
follow symlinks = yes
wide links = no
unix extensions = no
lock directory = /var/cache/samba
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log level = 1
map to guest = bad user
usershare template share = automount template

read raw = Yes
write raw = Yes
strict locking = no
min receivefile size = 16384
use sendfile = true
aio read size = 2048
aio write size = 2048

browsable = yes
read only = no
valid users = osmc
path = /home/osmc
comment = OSMC Home Directory

[automount template]
browseable = yes
-valid = no
valid users = osmc
path = %P
hide files = /$RECYCLE.BIN/System Volume Information/desktop.ini/thumbs.db/

Have you rebooted the pi since you installed the smb server? The automounter (which I believe is also responsible for interfacing with the OSMC SMB app only runs once per boot or once each time a drive is attached. It will only pick up drives added before the app was installed after they are either plugged in again or the pi is restarted.