Accessing my external HDD via Samba in Win7

Hey,

just got the Vero 2. Installed Samba. Listed under Services as “(running)”.
Can access Vero via Putty SSH.
Can access the Vero via its internal IP:8080 and see the classic Kodi controls -->remote, accessing movies,tv, etc. (nothing there yet, cause the exHDD is empty)

Cannot access the exHDD (NTFS) via Windows Exporer or any other way. Windows recognizes the Vero in “Network” as “osmc” under “multimedia”, same as my Onkyo Receiver. Double Clicking opens Win Media Player. Right Click, open opens the Kodi interface in the browser.

Sam Nazarko confirmed my exHDD is properly mounted --> /dev/sda1
It’s under listed as /media/“Name of the Drive”
OSMC states the correct amount of space.

What to do? How can I access the exHDD in my Windows network?

If it helps: This is my /etc/samba/smb-local.conf

workgroup = WORKGROUP
security=user
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
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072

[osmc]
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/

Add custom shares in smb-shares.conf instead of editing smb.conf so they will not be

overwritten by samba updates. You can only add new shares to smb-shares.conf, not change

the default shares or global options. If you need full control see smb-local.conf above.

include = /etc/samba/smb-shares.conf

Hi

Samba changed a bit recently, the good news is the Samba maintainers acknowledged these issues today and said there will be some resolution in the near future.

Which version of Windows are you running (this may give us a better idea of the issue), whether it’s authentication that’s needed or a stronger connection protocol

Sam

Do sudo apt-get install smbclient
then execute smbclient -L <IP OF YOUR OSMC> and post the output

Win7 x64

Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.2.10-Debian]

    Sharename       Type      Comment
    ---------       ----      -------
    osmc            Disk      OSMC Home Directory
    IPC$            IPC       IPC Service (Samba 4.2.10-Debian)

Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.2.10-Debian]

    Server               Comment
    ---------            -------
    OSMC                 Samba 4.2.10-Debian

    Workgroup            Master
    ---------            -------
    WORKGROUP            OSMC

And with the device mounted:

Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.2.10-Debian]

    Sharename       Type      Comment
    ---------       ----      -------
    osmc            Disk      OSMC Home Directory
    IPC$            IPC       IPC Service (Samba 4.2.10-Debian)
    Elements        Disk      Auto-mount Volume

Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.2.10-Debian]

    Server               Comment
    ---------            -------
    OSMC                 Samba 4.2.10-Debian

    Workgroup            Master
    ---------            -------
    WORKGROUP            OSMC

So when you now enter on your windows machine in the file explorer \\<IP or Name of your OSMC>\ what do you see? Only osmc or osmc and Elements?

Ok, under network you normally have two sections “Computer” and “Multimedia”. Under Computer the Samba part of OSMC is shown under Multimedia it shows the Webremote and UPNP part of OSMC (depending on what you have installed). But UPNP would only show files that are in your library and not just everything you share via Samba

In addition to that which fzinken has remarked,
if you now go to Windows explorer (NOT Internet Explorer) and, in the address bar, use

\\IP_of_the_OSMC_system

and hit return, you will see the SMB stuff as Windows sees it (at least this works for me under XP, Win7, and Win8)
Derek

Problem is: If I put the OSMCs IP in the file explorer it loads for a short time, then opens firefox (my standard browser) and firefox says no connection possible (not like it is not allowed or anything, kinda like the error if you do not have internet or the website does not exist).

Yes I have 2 sections under “Network”. Under “Computer” I only see my own desktop computer, nothing more.
“OSMC” is only available under “Multimedia”. Funnily enough, this connection seems to be working one way, because when I double click it and go to OSMC in Windows Media Player, choose “Videos”, “All Videos” I can stream video files located on the the exHDD that is hooked to my OSMC to Windows w/o a problem, given that WinMPlayer knows the format/contatiner/codec.

Ok means we have to do more troubleshooting.

  1. Have you defined your LAN as private and enabled filesharing on it?
  2. Open command prompt (CMD) and post output of ipconfig /all
  3. Open command prompt (CMD) and post output of net view and net view <IP of OSMC>
  4. On the OSMC go to the console and execute grab-logs -A and post the URL that is shown.

This happens if you omit the double backslash at the start

Derek

Yep, you need to enter this in Explorer or My Computer or whatever MS call it now :wink:

ahh, right!

Could not open. Unknown error. Error Code 0x80004005. So permission denied???

ipconfig all
Windows-IP-Konfiguration

Hostname . . . . . . . . . . . . : Whatever
Primäres DNS-Suffix . . . . . . . :
Knotentyp . . . . . . . . . . . . : Hybrid
IP-Routing aktiviert . . . . . . : Nein
WINS-Proxy aktiviert . . . . . . : Nein
DNS-Suffixsuchliste . . . . . . . : Speedport_W_724V_Typ_A_05011603_00_009

Ethernet-Adapter LAN-Verbindung 2:

Medienstatus. . . . . . . . . . . : Medium getrennt (medium disconnected)
Verbindungsspezifisches DNS-Suffix:
Beschreibung. . . . . . . . . . . : TAP-Windows Adapter V9
Physikalische Adresse . . . . . . : 00-FF-A9-79-B5-FB
DHCP aktiviert. . . . . . . . . . : Ja
Autokonfiguration aktiviert . . . : Ja

Ethernet-Adapter LAN-Verbindung:

Verbindungsspezifisches DNS-Suffix: Speedport_W_724V_Typ_A_05011603_00_009
Beschreibung. . . . . . . . . . . : Realtek RTL8168D/8111D-Familie-PCI-E-Giga
bit-Ethernet-NIC (NDIS 6.20)
Physikalische Adresse . . . . . . : 40-61-86-2E-94-19
DHCP aktiviert. . . . . . . . . . : Ja
Autokonfiguration aktiviert . . . : Ja
IPv4-Adresse . . . . . . . . . . : 192.168.2.111(Bevorzugt)
Subnetzmaske . . . . . . . . . . : 255.255.255.0
Lease erhalten. . . . . . . . . . : Freitag, 29. April 2016 23:41:16
Lease läuft ab. . . . . . . . . . : Freitag, 20. Mai 2016 23:41:16
Standardgateway . . . . . . . . . : 192.168.2.1
DHCP-Server . . . . . . . . . . . : 192.168.2.1
DNS-Server . . . . . . . . . . . : 192.169.69.169
192.169.69.168 (Netflix region related)
NetBIOS über TCP/IP . . . . . . . : Aktiviert

net view
No entries in the list.
net view IP
System error 53
Network path not found


log from OSMC

Looks all ok, did you check

Sorry I really do not understand what you mean. Are you talking about a specific setting in Windows? Or in my router? Or in the OSMC device?

Windows network is a “Home connection”
Everything is either allowed or activated in the advanced sharing settings.

Thing is like I said I can even Play files on my Windows PC via “osmc” in “Multimedia” using the Windows Media Player so they are connected, osmc is just not recognized as a computer

I am talking about your windows, when you connect your PC to a network the first time you are asked if it is a public or a private network and if you want to activate file sharing.
Ok actually just remember that this might only have been introduced with Windows 8.
Then I am actually out of any thoughts.
Only other idea that comes up, as your windows machine doesn’t see any samba shares try to create a second samba server to check if OSMC is at fault. I believe you can make your router as a samba share by plugging in a USB Stick and enable sharing.

No, this option was introduced in Vista and is there in Windows 7 as well.

To change it later (on Windows 7) go to Start->Control Panel->Network and Sharing Centre. Then under “View your Active Networks” you will see the name of your network, and it will say either “Home Network”, “Work Network”, or “Public Network”. If it is not set to Home network, change it to this. If it is set to Public Network file sharing will be disabled.

That’s what I meant by “Home Connection”. It is set as a private network and everything in the advanced settings is on “activated” or “enabled” → printers, other computers etc. so I thought it should appear :frowning:

Good news and bad news! OSMC is not at fault and neither is the Vero I presume.

Typing '\OSMC IP in a Laptop connected to our home network running Win 10 (x86 I believe) and having the exact same settings in terms of private network, advanced settings all activated / enabled was able to login :disappointed_relieved:

When typing the IP into the file explorer I can use username and password I set for the OSMC and see an “osmc” folder and an “Elements” folder, where I can access everything that is on my External. (OSMC does not appear in the “Network” category on the left though)

And with my desktop PC it is Error Code 0x80004005 still…
I don’t get it.

EDIT: Sooo big news again! Tried it with another Laptop connected to my private home connection running Win 7 x86 with the exact same connection and sharing settings.
And here I can even see the OSMC as a “Computer” in the “Network” department and access OSMC and exHDD!

Guess it just comes down to luck. WTF :rage: