18 May 2007, 11:44 | #1 |
Registered User
|
How to use SMBFS
Hi All
can some one guide me using smbfs command . do i need to install any application on pc to connect .? all connections are fine on amiga, i can ping , i can use internet . |
18 May 2007, 16:18 | #3 |
Registered User
Join Date: Jan 2005
Location: UmeƄ
Age: 43
Posts: 922
|
I use the following two lines in a script-file to mount G: from my windows-box:
Code:
stack 65536 smbfs workgroup=megaburken.net user=patrik password=xxxxxxxx service=//192.168.0.2/G$ device=SMBFS0: volume=MyPC: translate=L:FileSystem_Trans/INTL.crossdos quiet The service argument is the only one which is a bit tricky - what you need is the hostname or ip of your pc and the name of the share. In my case I used the ip of my pc - "192.168.0.2". The name of the shared I used - "G$" is just the default share name for my G: drive which windows assigned for it, but you can choose name freely when sharing a drive/folder. When testing the script, remove the quiet argument to smbfs to be able to see what goes wrong if something goes wrong. Btw, the increasing the stack as done in the script is necessary, or smbfs will behave weird or crash. Last edited by patrik; 18 May 2007 at 16:25. |
19 May 2007, 22:13 | #4 |
Registered User
|
thank you
i got it |
16 February 2008, 17:38 | #5 |
Posts: n/a
|
Im gonna bump this thread!
Im trying to get this working, and im using patricks script. This is the script I been using stack 65536 smbfs workgroup=AMD3000 user=amiga password=xxxxxxxx service=//192.168.0.99/c:/amiga device=SMBFS0: volume=MyPC: translate=L:FileSystem_Trans/INTL.crossdos quiet Workgroup=mycomputer name Service=my computer IP and share folder on PC but when i try to run it "unknown host (1 error 0) return code 10. What im i doing wrong here???? Please help |
31 January 2016, 15:36 | #6 |
Registered User
Join Date: Sep 2013
Location: Ireland
Posts: 800
|
You need to edit hosts in Devs:Internet/Hosts and map the hostname to the ip address. smbfs documentation states that it requires the hostname and NOT the IP address.
My service= looks like this: //raspberrypi/public |
31 January 2016, 23:29 | #7 |
Registered User
Join Date: Sep 2013
Location: Ireland
Posts: 800
|
What I can't figure out is that when I run my 'mountpi' script from the shell, it mounts the volume perfectly. But when I include in my startup script:
If EXISTS S:mountpi Execute s:mountpi EndIf I get a black screen. Workbench never fully loads. I've tried adding QUIET as well as >NIL: but neither help. Last edited by TenLeftFingers; 01 February 2016 at 01:08. |
01 February 2016, 02:03 | #8 |
Registered User
Join Date: Dec 2014
Location: France
Posts: 104
|
@TenLeftFingers
Maybe because your bsdsocket.library isn't yet initialized (miami or so...). |
01 February 2016, 04:04 | #9 |
Registered User
Join Date: Sep 2013
Location: Ireland
Posts: 800
|
Interesting thought, flype. When I remove the >NIL: entry, it does mount the Pi perfectly, so I guess that is not the issue. Thanks for helping me narrow it down.
|
01 February 2016, 09:00 | #10 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 6,985
|
No details.
Crystal ball says you have to use Run to detach it from the shell. |
01 February 2016, 14:16 | #11 |
Registered User
Join Date: Sep 2013
Location: Ireland
Posts: 800
|
Thanks thomas
The script I call from user-startup is called 'mountpi' and contains: Code:
stack 65536 smbfs workgroup=WORKGROUP service=//osmc/raspberrypi user=osmc password=osmc device=raspberry: volume=pi: >NIL: Prepending the call with run: Code:
If EXISTS S:mountpi run s:mountpi >NIL: EndIf |
01 February 2016, 14:32 | #12 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
|
Try using
run >NIL: s:mountpi >NIL: as the CLI window might be opened by the Run command before the script output is redirected to NIL: Also, you could mark an entry as "Automount" in SMBMounter and stick it in your WBStartup drawer. Once the TCP stack is running, it should silently connect on startup. Edit: Oh, and try using Execute with the Run command: Run Execute s:mountpi >NIL: Not sure if it will make a difference, but worth a try. Last edited by Daedalus; 01 February 2016 at 14:34. Reason: Added Execute details |
01 February 2016, 14:43 | #13 |
Registered User
Join Date: Sep 2013
Location: Ireland
Posts: 800
|
Thanks Daedalus! That worked a treat I will put >NIL: everywhere from now on
I didn't realise SMBMounter had the silent option. Must re-read the docs - I have tunnel vision and miss some parts completely it seems regardless what app I use. |
01 February 2016, 14:50 | #14 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
|
Yep, select Automount on Startup in the share settings, then set the CX_POPUP tooltype to NO in the icon and it'll run in the background as a commodity, and you'll only see it if there's an error. You can suppress errors when it's hidden too, in which case it'll fail silently (e.g. if you're not online). If you're tight on memory though it might not be worth running it like that just for the one share.
|
01 February 2016, 16:28 | #15 | |
Registered User
Join Date: Dec 2008
Location: Norwich, UK
Posts: 668
|
Quote:
I'm glad you've made it working. |
|
01 February 2016, 18:07 | #16 |
Registered User
Join Date: Sep 2013
Location: Ireland
Posts: 800
|
Good idea - Ill do that
|
08 February 2016, 01:52 | #17 |
Registered User
Join Date: Sep 2013
Location: Ireland
Posts: 800
|
@Daedalus, a suggestion if you ever update smbmounter again. How about an entry to append the <hostname> <ipaddress> line to the hosts file from your app? It could check if the line exists first.
|
08 February 2016, 08:47 | #18 | |
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,006
|
Quote:
Code:
stack 65536 Run >NIL: smbfs workgroup=WORKGROUP service=//osmc/raspberrypi user=osmc password=osmc device=raspberry: volume=pi: Code:
If EXISTS S:mountpi Execute S:mountpi EndIf |
|
08 February 2016, 09:42 | #19 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
|
|
27 October 2021, 11:13 | #20 |
Registered User
Join Date: Aug 2021
Location: Luxembourg
Posts: 3
|
Hi All
The latest smbfs I am able to find is v2.3 on sourgeforge net. But how can it be downloaded? I can not find the binary nor do I know how to compile the source code. https://sourceforge.net/projects/amiga-smbfs/ |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with SMBFS? | madman | support.Apps | 1 | 14 August 2011 19:32 |
SMBFS And Windows VIsta | @UAE | support.Apps | 11 | 12 April 2011 20:41 |
|
|