Page 1 of 1

Mounting specific/known CIFS shares on C Series

Posted: Sat Aug 06, 2011 3:27 pm
by zdzi
Hi everyone,

I hope there is someone here who can help.

I have just used the Internet@TV hack on my C Series LE40650 Samsung TV.
I have enabled Samba share searching by editing the samba init file.
When I go to media player I get both upnp and smb folders in the SamGo Virt. USB.
The time to get the Samba folder and then the shares is another thing!

However I have 2 devices on my network that do not broadcast their shares, or at least the Samsung TV doesn't find them - although it can find my laptop share fine.
The devices are a PlayON HD ( //IPAddress/hdd1) and a normal NAS (//IPAddress/volume_1)

How and where (because I guess the samba stuff needs initialising first?) can I get these shares to be added so that the Samsung can see them.
Preferably also keeping the laptop share.

I'm no unix guy but if the instructions are clear then I can usually follow.

In case more info is needed then happy to provide it.

Thanks in advance

Re: Mounting specific/known CIFS shares on C Series

Posted: Sat Aug 06, 2011 6:30 pm
by zdzi
ok so I have SSHed and I can manual mount all the shares to directories on the attached USB drive (dtv/usb/sda).
I saw another post and added the mount commands to the run.sh including sleep 120.
But this did not work.
I guess I will need to add more time -> trial and error.
This solution will be better since the attached USB is first in the mediaplayer devices and is the default device.

Still, this doesn't solve the original problem of having the shares in the smb directory of the SamyGo virtual USB.
And if possible I'd like to know if and how to do that.

PS. instead of some sleep statement is there no way to check for something that would allow the mount commands to succeed?

Re: Mounting specific/known CIFS shares on C Series

Posted: Sat Aug 06, 2011 6:54 pm
by zdzi
ok so sleep 300 was perfect.

All that remains is the original problem though the end result has been got.

Still, this doesn't solve the original problem of having the shares in the smb directory of the SamyGo virtual USB.
And if possible I'd like to know if and how to do that.

Re: Mounting specific/known CIFS shares on C Series

Posted: Thu Aug 11, 2011 6:04 pm
by zdzi
66 views and no answer/help?

Re: Mounting specific/known CIFS shares on C Series

Posted: Thu Aug 11, 2011 6:06 pm
by juusso
Yah, i sad about that too :x

Re: Mounting specific/known CIFS shares on C Series

Posted: Mon May 06, 2013 8:27 pm
by fluffi444
I know this is an very old topic but it helped me to find a solution to mount the PLAYON HD shares to Virual USB:

Solution is here:
viewtopic.php?f=53&t=5817&start=40#p42393

Re: Mounting specific/known CIFS shares on C Series

Posted: Mon May 06, 2013 10:48 pm
by zdzi
hah! Problems with my E series and working through solutions made me revisit this one.

First, manually mounting via ssh worked also for Playon without any smb.conf changes (maybe it's there but I didn't put it if it is).
2nd, the playon is not being used but is attached to a guest series A Samsung TV in case it ever needs to be used as a samba client serving to the TV.

So I figured out how to get specific shares mounting - put specific mount commands in the 'case start' section of samba.init does the trick well enough.
Don't even need get shares, get server. Just insmod cifs.ko, mkdir, and mount. This also allows any combination of usernames and password for a variety of shares, not that every share must have the same username/pass combination.
This is so easy and must be obvious to experienced people but there were no answers posted. Not sure why this is not mentioned in any posts as suggestions. Must be a reason I guess, just not apparent to me. Oh well...

Now the C series original problem is solved time to look back at the E series :)

Re: Mounting specific/known CIFS shares on C Series

Posted: Thu May 23, 2013 7:59 pm
by beatfreak
in ...samba....init script you only have to set the
USER
PASSWD
SERVER
SHARES
variables before do_mount() section begins, better do it this was as there is more error and timing handling...
otherwise its like as if you bring your car to a car painter and then you take a brush and paint you car by self...

Re: Mounting specific/known CIFS shares on C Series

Posted: Thu May 23, 2013 8:32 pm
by zdzi
Well if I have only 1 or 2 shares then it's actually like doing a minor repair paint job and not needing the full garage service. And this way I can control that it does exactly what I want.

But sure, if people have many servers, shares, that change regularly let them use the script to find them automatically.