Connect to USB drive on VERO 4K+ from Mac via Samba

Is not found in the logs can you please share the exact format command you used

Replacing the 4Tb with the 6 so won’t be using at the same time.
Command I used to format:
mkfs.ext4 -L HUBDISK /dev/sda1

I notice HUBDISK doesn’t come up in a search of the log. Could this be because it may have been unmounted when I created the log?

I rebooted & recreated the log:
https://paste.osmc.tv/uyamufuxas
HUBDISK appears now…

Looks good it is mounted as /media/HUBDISK
So unless you changed something on the Samba config should be visible as before

Samba config same as before. I haven’t done anything in the OSMC os to the drive yet, does it need to be added as a source first before it appears on the network?

No for the Samba share it doesn’t need to be added as source.

So you don’t see it when you access the OSMC samba on your Mac?

On the Vero what is the output of smbclient -L localhost?

If it says command not found run sudo apt-get install smbclient

No, problem connecting error.

Did this, here’s the terminal output:

**osmc@Hub**:**~**$ smbclient -L localhost

-bash: smbclient: command not found

**osmc@Hub**:**~**$ sudo apt-get install smbclient

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer required:

armv7-libass-osmc armv7-libnfs-osmc dh-python gnupg-agent libbind9-140

libcdio13 libcryptsetup4 libdevmapper-event1.02.1 libdns162 libenca0

libevent-2.0-5 libicu57 libisc160 libisccc140 libisccfg140 libiso9660-8

liblvm2app2.2 liblwres141 libncurses5 libntfs-3g871 libprocps6

libpython3.5-minimal libpython3.5-stdlib libssl1.0.2 libunistring0

libwebpmux2 python-imaging python3-dbus python3-distutils python3-gi

python3-lib2to3 python3.5 python3.5-minimal

Use 'sudo apt autoremove' to remove them.

The following additional packages will be installed:

libarchive13

Suggested packages:

lrzip heimdal-clients

The following NEW packages will be installed:

libarchive13 smbclient

0 upgraded, 2 newly installed, 0 to remove and 16 not upgraded.

Need to get 704 kB of archives.

After this operation, 1,900 kB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://ftp.debian.org/debian buster/main armhf libarchive13 armhf 3.3.3-4+deb10u1 [277 kB]

Get:2 http://security.debian.org buster/updates/main armhf smbclient armhf 2:4.9.5+dfsg-5+deb10u1 [428 kB]

Fetched 704 kB in 2s (468 kB/s)

Selecting previously unselected package libarchive13:armhf.

(Reading database ... 27821 files and directories currently installed.)

Preparing to unpack .../libarchive13_3.3.3-4+deb10u1_armhf.deb ...

Unpacking libarchive13:armhf (3.3.3-4+deb10u1) ...

Selecting previously unselected package smbclient.

Preparing to unpack .../smbclient_2%3a4.9.5+dfsg-5+deb10u1_armhf.deb ...

Unpacking smbclient (2:4.9.5+dfsg-5+deb10u1) ...

Setting up libarchive13:armhf (3.3.3-4+deb10u1) ...

Setting up smbclient (2:4.9.5+dfsg-5+deb10u1) ...

Processing triggers for libc-bin (2.28-10) ...

A dependency job for samba.service failed. See 'journalctl -xe' for details.

**osmc@Hub**:**~**$

Hope this all looks as it should…

Yes now run smbclient -L localhost

osmc@Hub:~$ smbclient -L localhost

Unable to initialize messaging context

do_connect: Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)

Out of curiosity I ran this command…
Here’s a portion:

**osmc@Hub**:**~**$ journalctl -xe

Feb 12 01:09:52 Hub sudo[1275]: pam_unix(sudo:session): session opened for user root by (uid=0)

Feb 12 01:09:53 Hub udisks-glue[463]: net usershare add: cannot convert name "Hub\osmc" to a SID. The transport-connection attempt was refused

Feb 12 01:09:53 Hub ntpd[1163]: Soliciting pool server 162.159.200.123

Feb 12 01:09:53 Hub sudo[1275]: pam_unix(sudo:session): session closed for user root

Feb 12 01:09:53 Hub connmand[336]: eth0 {del} route 212.227.81.55 gw 192.168.1.1 scope 0 <UNIVERSE>

Feb 12 01:09:54 Hub ntpd[1163]: Soliciting pool server 103.126.53.123

Feb 12 01:09:57 Hub ntpd[1163]: receive: Unexpected origin timestamp 0xe3cfc744.113e4c07 does not match aorg 0000000000.00000000 from server@1

Feb 12 01:09:57 Hub ntpd[1163]: receive: Unexpected origin timestamp 0xe3cfc744.115118a4 does not match aorg 0000000000.00000000 from server@1

Feb 12 01:09:57 Hub ntpd[1163]: receive: Unexpected origin timestamp 0xe3cfc744.11470756 does not match aorg 0000000000.00000000 from server@1

Feb 12 01:09:59 Hub sudo[1295]: **osmc : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/net usershare add HUBDISK /media/HUBDISK Auto-mo**

Feb 12 01:09:59 Hub sudo[1295]: pam_unix(sudo:session): session opened for user root by (uid=0)

Feb 12 01:09:59 Hub udisks-glue[463]: net usershare add: cannot convert name "Hub\osmc" to a SID. The transport-connection attempt was refused

Hope this is useful

There is definitely something wrong on your setup.
I actually would like to start with a fresh Samba installation to avoid that we have somewhere a configuration issue.

If you agree run:
sudo apt-get purge smb-app-osmc samba
sudo apt-get autoremove
sudo rm -r /etc/samba
sudo apt-get install smb-app-osmc
reboot

Also can you post ls -lah /media/

osmc@Hub:~$ ls -lah /media/

total 16K

drwxr-xr-x 3 root root 4.0K Feb 12 01:08 .

drwxr-xr-x 23 root root 4.0K Nov 29 12:10

drwxrwxrwx 3 root root 4.0K Feb 11 22:35 HUBDISK

-rw-r–r-- 1 root root 232 Jul 3 2020 README

Will do the fresh samba now

Did the reinstall worked?

If not let’s start with smbclient -L localhost again

Thanks for persevering fzinken.
I ran
sudo apt-get purge smb-app-osmc samba
sudo apt-get autoremove
These both fine.
Then

**osmc@Hub**:**~**$ rm -r /etc/samba
rm: descend into write-protected directory '/etc/samba'? Y
rm: remove write-protected regular file '/etc/samba/gdbcommands'? Y
rm: cannot remove '/etc/samba/gdbcommands': Permission denied
rm: remove write-protected regular file '/etc/samba/smb.conf'? Y
rm: cannot remove '/etc/samba/smb.conf': Permission denied
rm: remove write-protected directory '/etc/samba/tls'? Y
rm: cannot remove '/etc/samba/tls': Permission denied
rm: remove write-protected regular file '/etc/samba/smb-local.conf.save'? Y
rm: cannot remove '/etc/samba/smb-local.conf.save': Permission denied

Then:

**osmc@Hub**:**~**$ sudo apt-get install smb-app-osmc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
python-dnspython samba tdb-tools
Suggested packages:
bind9 bind9utils ctdb ldb-tools smbldap-tools ufw winbind
Recommended packages:
attr logrotate samba-dsdb-modules samba-vfs-modules
The following NEW packages will be installed:
python-dnspython samba smb-app-osmc tdb-tools
0 upgraded, 4 newly installed, 0 to remove and 16 not upgraded.
Need to get 0 B/1,144 kB of archives.
After this operation, 16.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package python-dnspython.
(Reading database ... 26183 files and directories currently installed.)
Preparing to unpack .../python-dnspython_1.16.0-1_all.deb ...
Unpacking python-dnspython (1.16.0-1) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../tdb-tools_1.3.16-2+b1_armhf.deb ...
Unpacking tdb-tools (1.3.16-2+b1) ...
Selecting previously unselected package samba.
Preparing to unpack .../samba_2%3a4.9.5+dfsg-5+deb10u1_armhf.deb ...
Unpacking samba (2:4.9.5+dfsg-5+deb10u1) ...
Setting up python-dnspython (1.16.0-1) ...
Setting up tdb-tools (1.3.16-2+b1) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Setting up samba (2:4.9.5+dfsg-5+deb10u1) ...
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those services.
(samba-ad-dc.service masked)
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
**●** smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; disabled; vendor preset: enabled)
Active: **failed** (Result: exit-code) since Fri 2021-02-12 07:27:45 AEST; 28ms ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 2607 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Process: 2609 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS **(code=exited, status=1/FAILURE)**
Main PID: 2609 (code=exited, status=1/FAILURE)
Feb 12 07:27:44 Hub systemd[1]: Starting Samba SMB Daemon...
Feb 12 07:27:45 Hub systemd[1]: **smbd.service: Main process exited, code=exited, status=1/FAILURE**
Feb 12 07:27:45 Hub systemd[1]: **smbd.service: Failed with result 'exit-code'.**
Feb 12 07:27:45 Hub systemd[1]: **Failed to start Samba SMB Daemon.**
dpkg: error processing package samba (--configure):
installed samba package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

Apologies for all the text, I’m hoping it’s useful.
so just now ran

**osmc@Hub**:**~**$ smbclient -L localhost
Unable to initialize messaging context
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it

Thanks :slight_smile:

Ok that one should have been sudo rm -r /etc/samba (will correct in my post)

Maybe try again with that (executing all commands once more

First 2 commands ran ok.
then

**osmc@Hub**:**~**$ sudo rm -r /etc/samba
rm: cannot remove '/etc/samba': No such file or directory

then
sudo apt-get install smb-app-osmc
brings up similar errors as above…

FYI I didn’t reboot after the above.
Should I be considering a complete reinstall of OSMC?

To be honest I am a bit lost about the current issues.
If you don’t mind I guess a clean reinstall of OSMC and then just installing Samba Server via App Store would be good.