Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: parms on April 19, 2010, 04:02:39 PM

Title: connecting to a samba share
Post by: parms on April 19, 2010, 04: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  :)
Title: Re: connecting to a samba share
Post by: curaga on April 19, 2010, 04: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.
Title: Re: connecting to a samba share
Post by: danielibarnes on April 19, 2010, 06: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
Title: Re: connecting to a samba share
Post by: Juanito on April 19, 2010, 11: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
Title: Re: connecting to a samba share
Post by: gerald_clark on April 20, 2010, 12:52:25 AM
for TC to TC, nfs is a better solution.
Title: Re: connecting to a samba share
Post by: curaga on April 20, 2010, 04:24:30 AM
Or even tftp, in a secure environment.