Hi, I have OSMC and installed SMB server from app store. I have a hard drive with 3 partitions connected via USB on my rPi3, and I use fstab on 1 partition on /mnt/hdd.
All other partitions on my hard drive is viewable on SMB client (OSX) but partition that mounted on /mnt/hdd is not viewable.
Many topics that I found here is about mounting SMB shares
Can somebody point me what did I do wrong? Thanks in advance
Posting your fstab entry may help and logs:
Also have you seen this guide by bmillham
This tutorial is to help those who are using Samba (also known as CIFS, SMB or Windows Networking). It assumes that you already are sharing media files on a Windows Server or Desktop.
Why use /etc/fstab instead of Kodi’s built in SMB client? The Kodi client in current versions (17.x and older) is slow. Using /etc/fstab is faster, and not really that hard to setup.
While improvements were made in Kodi 18.x, using fstab will still be faster.
You will need to know …
I am sharing from USB HDD attached on rPi to OSX, so bmillham’s guide does not seem to be applicable to me.
here is my fstab entry
/dev/mmcblk0p1 /boot vfat defaults,noatime,noauto,x-systemd.automount $
#(there is a space here that change the formatting)rootfs is not mounted in fstab as we do it via initramfs. Uncomment for remou$
#/dev/mmcblk0p2 / ext4 defaults,noatime 0 0
UUID=6AFA7199FA7161ED /mnt/hdd ntfs rw,nosuid,nodef,default_permissions 0 0
AFAIK only auto mounted partitions are shared with the default config. If you also have manual mounted folders you need to create additional entries in smb.conf for them
Better to use smb-local.conf or smb-shares.conf as described in the comments in smb.conf.
this answers my question. Thank you
@grahamh What should I write on smb-shares.conf? is it a copy of smb.conf with additional entry, or just write the additional entry?
is this the additional entry that I have to write? Thank you in advance
browseable = yes
-valid = no
valid users = osmc
path = /mnt/hdd
hide files = /$RECYCLE.BIN/System Volume Information/desktop.ini/thumbs.db/
Nope that would not work.
First between the you would put your own name like
Secondly suggest you copy the example under [osmc]
All now worked as expected. Thank you for your assistance. Somebody can close this thread.