WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: connecting to a samba share  (Read 3762 times)

Offline parms

  • Newbie
  • *
  • Posts: 1
connecting to a samba share
« on: April 19, 2010, 01:02:39 PM »
Before i start, i must warn you that Im new to both TC and samba  :-[

I have two tiny core setups runnng in VM on a windows XP machine.  one has samba3 installed and is configured with a basic smb.conf file (copied from an example off the samba website);

[global]
workgroup = MSHOME
netbios name = server
security = share
[data]
comment = Data
path = /tmp/export
read only = Yes
guest ok = Yes


the second TC is a clean setup of 2.10 with no extensions loaded.  from this clean version, i want to mount the directory /tmp/export from the device called 'server' (which has samba running) and run a script.  at the moment there is only a simple script in there that will change the hostname. 

the goal being that if i add any future tiny core devices to my network, i can point them all to this one share and run scripts that will configure their hostnames and load relevent extensions.

when i start the samba service on the server, my windows XP can see the share and access the file.  however, i cant connect from the second TC device.  i try the command:

sudo mount -t smbfs //server/tmp/export /tmp/share


but i get an error stating;

mount: mounting //pkg/tmp/export on /tmp/share failed: No such device


however, i can ping the sever from this machine using both hostname and ip (and vice versa)


the folders /tmp/export and /tmp/share exist on the relvent devices

i have not created any user accounts on either TC build and am just using TinyCores tc account.

My questions are;

1) is this the correct command? 
2)Does Samba need to be installed on the client and what command(s) do i need to connect to my share drive.

Thanks in advance for any help  :)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10970
Re: connecting to a samba share
« Reply #1 on: April 19, 2010, 01:41:39 PM »
1) No, I believe it's cifs instead of smbfs.

2) Either samba or the filesystems extension. Filesystems should be the smaller one.
The only barriers that can stop you are the ones you create yourself.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: connecting to a samba share
« Reply #2 on: April 19, 2010, 03:26:01 PM »
1) I believe you need additional parameters to authenticate with the server:

mount -t smbfs -o username=myuser,password=mypass //server/tmp/export /tmp/share
or
mount -t cifs -o username=myuser,password=mypass //server/tmp/export /tmp/share

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14579
Re: connecting to a samba share
« Reply #3 on: April 19, 2010, 08:34:25 PM »
smbfs is depreciated, so it should be cifs.

Something like:
Code: [Select]
sudo mount -t cifs //192.168.1.110/Public /mnt/public -o user=xxxx,pass=xxxx,nounix
..should also work
« Last Edit: April 19, 2010, 08:36:59 PM by Juanito »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: connecting to a samba share
« Reply #4 on: April 19, 2010, 09:52:25 PM »
for TC to TC, nfs is a better solution.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10970
Re: connecting to a samba share
« Reply #5 on: April 20, 2010, 01:24:30 AM »
Or even tftp, in a secure environment.
The only barriers that can stop you are the ones you create yourself.