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

I’ve attached a USB drive to my Vero 4K + formatted it as Ext4 on my iMac via the terminal using very helpful instructions from fzinken on this post

I would now like to mount this drive on my iMac so I can transfer files to it. I have installed Samba on the Vero 4K +, here’s the settings:

When I browse my network via Connect to Server on my iMac I see 2 network locations:

When I open either parent folders - HUB (the name I gave it) or Samba Shares on Hub - it shows that I am connected as Guest, with the option to Connect As, which asks for a name & password. The osmc name & password I setup to connect via ssh doesn’t work.

When I open either osmc folders I get the error:
The operation can’t be completed because the original item for “osmc” can’t be found.

It’s obvious I’m sure that I’m new to this :slight_smile: so any help here would be much appreciated.

Also, why do I have a question mark for an icon on HUB?

Thanks

The samba password is independent from the ssh password. So it is osmc/osmc by default.

Will be fixed on the next update

Great, thanks fzinken. osmc is now mounted as a network share. All I’m seeing though is 4 empty folders: Movies, Music, Pictures & TV Shows. Is there a way I can see the external drive in order to manage its contents from the iMac?

Also,

Thanks!

It should be auto shared.
Are you sure you got the Samba Share and not the UPNP one?

Maybe start with logs from OSMC. Uplaod via ssh grab-logs -A

Your one level too far down. Attached drives are by default mounted as separate shares from the home folder. Your looking in smb://[vero]/osmc/ when you are trying to get to smb://[vero]/[drive name]/

They should be shared automatically, if you let the system automount the drive. If you have made a manual mount, you also have to make a manual share in smb-local.conf.

sudo nano /etc/samba/smb-local.conf

[usb-drive]
    browsable = yes
    read only = no
    valid users = osmc
    path = [enter the path you mounted the drive to]
    comment = This is the USB-drive

CTRL+x. y, ENTER

systemctl restart samba

Hope that helps

Thanks for the replies.

joakim_s, I’m new to all this as is obvious. When I access the 4K+ from my iMac via terminal & enter what you suggested:

I get:

I don’t have any idea how to implement the other entries you suggested.
Would you mind expanding on your response? Thanks

You need to write them into the nano terminal.

When you haven’t touched that file on OSMC then forget it, it was just a thought.
My suggestion still

Of course, like ooZee say, the bit after the command that i posted you have to enter into the new file you created with nano (a texteditor), so copy/paste the text i posted after that command: th “[USB-drive]” is name of the share, how you want it to be shown when you access the vero4k+ fileshaareing service from your mac.

so you could go with [Video-drive] or [JoakimHelpedMe] =)

the second “[” “]” text i wrote in my example is for you to replace. with /mnt/4tbdrive or what ever the path in vero4k+ filesystem to your drive.

The way I wrote my last post was, for a person that has manually mounted a drive on the vero, usually are experienced enough to grab the information i provided and use it as i meant. But I clearly didn’t explain good enough, will try to give better instructions next time.

Thanks for your replies. I’ve run out of time & will get to it tomorrow.

I gained some time.
Thanks ooZee & fzinken, & joakim: I entered this into the smb.local.conf nano terminal as per your suggestion:

[HUBDISK]
browsable = yes
read only = no
valid users = osmc
path = /media/HUBDISK
comment = This is the USB-drive

This worked! I now have the external USB mounted on my iMac.
It all seems to work fine reading/writing.

joakim, I like your suggestion for the HD name :smiley:

Thanks again all, I got there eventually.

1 Like

There is totally no reason why you would need to do this as/if you are using the automount this drive should already had been shared.