Adding Repos

Ok

Are you still ok, helping?

Sorry it’s been a marathon already

Let’s start with checking your shares
Install smbclient sudo apt-get install smbclient
Execute smbclient -L 192.167.1.180 -U Username and report the output

Good to learn always

Ok

Thanks you so much

Smbclient username and password is that the SMB credentials details I set before?

Or is it a generic (OSMC) ones.?

Should I remove the SMB credentials I set earlier for ease?

I’ve removed the old credentials and have tried all the ones I know

No luck with the last command line text…

What do you get?

SMB client usernames?

What username and password would this be?

I have tried all that I know…

The same results

The ones from your NAS.
You also use when connected via Kodi to your NAS.

Oh I figured out…

I copied the address but I didn’t see the …167… instead of … 168

Here you go mate.

Smart, sorry typos happen
Will give you all configs from here in a few minutes

Yes you are mate…

If it wasn’t for you, I’d be stuck continuously being stuck just with typos just for my name…

Thank you for your help and patience

First stop the autofs that you manually started in that one session!

Ok, let’s hope now everything without typos:

sudo nano /etc/auto.master and then change the last line to

 /- /etc/auto.smb.shares --timeout 15 browse

(Exit with Ctrl-X and confirm save with Y and ENTER)

Then do
sudo nano /etc/auto.smb.shares and add these lines

/mnt/qnap/Multimedia -fstype=cifs,rw,credentials=/home/osmc/.smbcredentials,iocharset=utf8,uid=osmc,gid=osmc ://192.168.1.180/Multimedia/
/mnt/qnap/homes -fstype=cifs,rw,credentials=/home/osmc/.smbcredentials,iocharset=utf8,uid=osmc,gid=osmc ://192.168.1.180/homes/

(Exit with Ctrl-X and confirm save with Y and ENTER)

Create the credentials file in the osmc home, so using nano:

nano ~/.smbcredentials

And add:

username=<username> 
password=<password>

(Exit with Ctrl-X and confirm save with Y and ENTER)
Remeber the < and > just indicate that you replace that part with your own information don’t leave < or > in there.

So after you done that do
sudo systemctl restart autofs
ls -lah /mnt/qnap/Multimedia
and hope for the best

1 Like

Mate can I change the name of Multimedia to Home Media in the command…

That’s where my media is…

What needs to be done if like Home Media it has a space between the words?

Can it be written like:

“ /mnt/qnap/Home Media -fstype=cifs,rw,credentials=/home/osmc/.smbcredentials,iocharset=utf8,uid=osmc,gid=osmc ://192.168.1.180/Home Media/

/mnt/qnap/homes -fstype=cifs,rw,credentials=/home/osmc/.smbcredentials,iocharset=utf8,uid=osmc,gid=osmc ://192.168.1.180/homes/

Ok, I wanted to start with the ones that are easiest to first see that it is working. As any names with spaces gives additional headaches.

Try this:

/mnt/qnap/Home_Media -fstype=cifs,rw,credentials=/home/osmc/.smbcredentials,iocharset=utf8,uid=osmc,gid=osmc ://192.168.1.180/Home\ Media/

Ok I will just use your text…

But just underscore for later when I do it again…
To add the real sources…

No problem…

Thanks

No the underscore I just used for the target to make our lives easier.
For the space in the share name on QNAP you need to maks with \ like I wrote ://192.168.1.180/Home\ Media/

An issue…

Well it would have been too nice if it directly worked.
Let’s do checks 1 by 1
cat /etc/auto.master
cat /etc/auto.smb.shares

Yes that would have been too easy… lol