Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: peliot on September 16, 2009, 04:17:55 PM
-
Hi,
Is it possible with TCL to mount a windows fileshare by name (e.g. "mount -t cifs //xyz-fileserver/foldername..." as opposed to "mount -t cifs //192.168.1.1/foldername...")? I have installed the filesystems extension, but mounting by name does not seem to work. I'm working in an environment where IP addresses change, while names are fixed, so working by name would be preferable.
I had a similar problem once with an Ubuntu installation and installing smbfs package solved the problem, but I couldn't find an equivalent in TCL. If there isn't one, no worries, I just thought I'd ask in case I was missing something that would make my life easier.
Thanks,
Pete
-
fileshare by name
I don't think that it's possible to replace the network IP by name.
But perhaps you can use a script which creates the needed IP dynamically.
First step: looking up the actual IP for example with ifconfig. (I don't use dynamic IPs, so perhaps somebody else could explain details.)
Second step: mounting the windows share with that IP.
-
You could use nbtscan to scan your network for shares, then extract the IP address for the desired server. For example:
IP=`nbtscan 192.168.2.0/24 | grep $SERVER | cut -d " " -f 1`
sudo mount -t cifs //$IP/sharedfolder myfolder -o user=xxx
Nbtscan is simple to compile - just ./configure and make
-
Nbtscan is simple to compile - just ./configure and make
What is wrong with nbtscan already available in the repo?
-
smbfs - we have a Samba extension, it should include that functionality.