I'm trying to set up an old Raspberry Pi to be a simple file server on a home network. I've mounted a couple of USB sticks to use as storage; The first will appear as storage that's visible on Samba and the second will be a backup of the first; every night it runs
rsync to back everything up.
It Pi it's self have an IP address that is dynamically allocated, so it will look something like 192.168.1.xx
I've almost got everything working the way I want it, except Windows 10 explorer won't connect to the samba share as
\\my-pi\share. If I use the Windows command prompt to
ping my-pi it sees the device and tells me the IP address. Knowing the address I can then connect to samba as
As the Pi's IP address is dynamic this could change every time the system is rebooted, so I really do want to use the hostname.
My best guess is that I've got a setting wrong in
/etc/samba/smb.conf. I've gone through the documentation, but can't see the problem (not that I understand all of it).