I am using Windows 10 on my PC. I have no problem accessing the RPi2 and external hard drive using Filezilla. I have installed Samba (both from the command line) and followed those web page instructions but no luck accessing the external hard drive from Windows.
The error I get is "Windows cannot access \OSMC. OSMC is the name of my RPi2 and my external hard drive is named HDD. I can ping 192.168.1.100 from the PC OK. However, if I enter //192.168.1.100 in Windows Explorer my browser opens with a message “This page can’t be displayed.”
Here is my smb.conf configuration file:
osmc@osmc:~$ sudo nano /etc/samba/smb.conf
GNU nano 2.2.6 File: /etc/samba/smb.conf Modified
read only = no
browsable = yes
read only = no #guest ok = yes
valid users = osmc
path = /media
force user = root
comment = HDD
path = /media/HDD/shares
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
Geez, how embarrassing. \ \192.168.1.100 it is. That works.
I’ve been in computer IT since 1981. Guess I never learned to look at the obvious.
Let me throw this out there. When I accessed it from Windows it asked my user name and password - both osmc. Got in OK and shows devices, hdd and osmc. I can click on devices and osmc OK and see what’s in those folders. However, clicking on hdd asks for user name and password again and osmc does not work - Access is denied.
The trouble is you’ve now potentially got all sorts of issues, some of which will surface now (some of which probably won’t immediately …).
In this case, I’d personally suspect you’ve manually mounted the external drive by editing “/etc/fstab” and creating a mount point for the drive? OSMC (if using the Samba Server from the App Store) takes care of all that automagically for you; the drive will be mounted under “/media/...” and will be visible via Samba - I see you’ve got the drive mounted under “/media/...”, but if you manually set up that mount point then you could get into all sorts of unintended arguments with the automounter. You could also have incorrect ownership/permissions on the mounted filesystem, … all sorts of potential issues - all introduced by trying manually to set things up from a general purpose (not OSMC specific) Internet guide.
It will, almost without a doubt, be much quicker and simpler for you to go back to the beginning and use the App Store version - should then all just work for you.