Samba Share Problem

Kernels & Hardware, configuring network, installing services

Samba Share Problem

Postby burnsmicro » 2012-04-30 23:42

After successfully apt-gett’ing samba and smbfs, I am still unable to mount a file from a WindowsXP PC on to a (Debian Lenny) Linux Arm based SBC (Single Board Computer), following the instructions at http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.html:

Code: Select all
mount -t smb //server/share /mount/point -o username=xxxxxx,password=xxxxxx

  • //server/share is the address of the directory on the WindowsPC: //192.168.2.103/workspace ..with sharing enabled
  • /mount/point is the location on the Linux SBC where we want to see the shared directory: /home/eclipse
  • username: Sign-on username for WindowsPC
  • password: Sign-on password for WindowsPC

This translates to:
Code: Select all
mount -t smb //192.168.2.106/workspace /home/eclipse -o username=Bob,password= BobsWinPassword


But, this and the following variations do not work:

Code: Select all
ts7500:~# mount -t smb //192.168.2.106/workspace /home/eclipse username=Bob,password= BobsWinPassword
Usage: mount -V                 : print version
    :


Code: Select all
ts7500:~# mount -t smbfs //192.168.2.106/workspace /home/eclipse username=Bob,password= BobsWinPassword
Usage: mount -V                 : print version
   :


Code: Select all
ts7500:~# smbmount //192.168.2.106/workspace /home/eclipse username=Bob,password= BobsWinPassword
Password: BobsLinuxPassword
mount error: cifs filesystem not supported by the system
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)


Can someone please point me in the right direction?
burnsmicro
 
Posts: 9
Joined: 2012-04-23 18:27

Re: Samba Share Problem

Postby pendrachken » 2012-05-01 01:53

Get an ARM kernel for your board that has the CIFS module.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1049
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Samba Share Problem

Postby burnsmicro » 2012-05-02 22:34

Not so easy:

Code: Select all
ts7500:~# apt-get install cifs
   :
E: Couldn't find package cifs

I Googled "apt get cifs" to see if I had the wrong name. in http://petio.org/tools/cifs.html I was instructed to "apt-get install smbfs" which I have already apt-got. The implication being that CIFS is included in smbfs. Then it instructed me to mount the WinPC file per:
Code: Select all
# mount -t cifs //SERVER/SHARE /media/share -o user=jay,pass=password

..which was not acceptable, resulting in a dump od Usage instructions.

Any other suggestions?
burnsmicro
 
Posts: 9
Joined: 2012-04-23 18:27

Re: Samba Share Problem

Postby dilberts_left_nut » 2012-05-02 22:38

Yes.
pendrachken wrote:Get an ARM kernel for your board that has the CIFS module.


You have the userspace tools, but it seems your kernel does not include cifs support.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 3075
Joined: 2009-10-05 07:54
Location: enzed

Re: Samba Share Problem

Postby BowCatShot » 2012-05-03 02:43

Here's one that works for me:

sudo mount -t smbfs -o username=meandwife,password=ourdrive1,uid=myid,rw,gid=myid //192.168.5.98/"goflex home public" /home/myid/MyGoflex

Although this drive is a standalone network addressable drive having a fixed ip address. I access it from both windows and linux.
BowCatShot
 
Posts: 898
Joined: 2006-07-15 12:08

Re: Samba Share Problem

Postby burnsmicro » 2012-05-03 17:37

In follow up to
pendrachken wrote:Get an ARM kernel for your board that has the CIFS module.

..does this mean one must build (or find someone who knows how to build) an ARM kernel for our Technologic board that has the CIFS? Or, put another way, one cannot add this capability by apt-get'ting it?

As for the advice to "RTFM", may I ask which manual(s)? Do you mean the samba(7), smbpasswd(8), swat(8), smbd(8), smb.conf(5), nmbd(8), smbclient(1), nmblookup(1), testparm(1), testprns(1) Man's? While "cursory reading of the FM" may be the answer for someone with a fair amount of Linux expertise, it has been unhelpful in my case.

I suppose my problem is I would like to mount a file from my development PC on ny linux SBC. But, I know so little about file sharing that I do not know what questions to ask or how to ask them.

I feel as if I am caught in a catch 22: I lack the critical mass of Linux knowledge and experience to ask questions and fully understand the answers given by people with more Linux experience than I will ever have, with the result that my lack of knowledge is irritating some individuals on this forum. All I can say is I am finding it quite diffcult to acquire this critical mass of Linux knowledge. Please bear with me.
burnsmicro
 
Posts: 9
Joined: 2012-04-23 18:27

Re: Samba Share Problem

Postby pendrachken » 2012-05-03 18:43

Yes, you need to compile an arm kernel that supports cifs and has the drivers needed for your board. Right now your kernel can't understand the cifs FS even though you have the userland smbmount.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1049
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: Samba Share Problem

Postby dilberts_left_nut » 2012-05-03 20:34

burnsmicro wrote:As for the advice to "RTFM", may I ask which manual(s)? Do you mean the samba(7), smbpasswd(8), swat(8), smbd(8), smb.conf(5), nmbd(8), smbclient(1), nmblookup(1), testparm(1), testprns(1) Man's? While "cursory reading of the FM" may be the answer for someone with a fair amount of Linux expertise, it has been unhelpful in my case.
Don't worry about that, it's just a sig :lol:
Did you also resolve to have an interesting life and use the metric system? :D
I suppose my problem is I would like to mount a file from my development PC on ny linux SBC. But, I know so little about file sharing that I do not know what questions to ask or how to ask them.
OK. In that case you don't need cifs, there are other options, notably ssh.
Doint it from your 'dev box' (windows?) use scp (included with PuTTy) or an SFTP client like filezilla.
Alternatively you can install openssh server on windows too if you want to pull it from the server end.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 3075
Joined: 2009-10-05 07:54
Location: enzed

Re: Samba Share Problem

Postby burnsmicro » 2012-05-04 00:17

pendrachken wrote:OK. In that case you don't need cifs, there are other options, notably ssh.
Doint it from your 'dev box' (windows?) use scp (included with PuTTy) or an SFTP client like filezilla.
Alternatively you can install openssh server on windows too if you want to pull it from the server end.

This sounds promising. I will have to read up on openssh for Windows, to allow the SBC to pull the exec file.

Dreaming in Techicolor, I would like to have a script on the Linux SBC that I could run from a telnet or SSH terminal on my Win Development PC. This [SBC] script would:
  • Copy the executable binary from the WinPC/workspace/myproject/Debug
  • Launch gdbserver on the SBC
This would allow me to effortlessly run the program in the TCEclipse debugger.

This would involve an additional copy compared to a shared file: From the WinPC's folder to the SBC's flash memory, then, from there to its SRAM for execution. It would be a little slower than copying the exec from the WinPC's shared folder directly into the SBC's RAM for execution. But it would be faster than what I do now: switch from TSEclipse to FTP, copy the file to the SBC, wait for the copy to complete and then switch to a telnet terminal to launch gdbserver, and then go back to TSEclipe and launch the Eclipse debugger.

The advantage of this approach is I need not launch a career in CIFS and another in kernel building. I just need to launch a career in openssh for Windows ;o)
burnsmicro
 
Posts: 9
Joined: 2012-04-23 18:27

Re: Samba Share Problem

Postby dilberts_left_nut » 2012-05-04 00:35

Another option, if you have IIS on the Win box (or any other small installable httpd would do), would be to have your dev folder available via http and use wget as part of the script on your SBC.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 3075
Joined: 2009-10-05 07:54
Location: enzed

Re: Samba Share Problem

Postby brian.va » 2012-05-04 17:25

try installing cifs-utils and replace smbfs with cifs in your mount command
brian.va
 
Posts: 137
Joined: 2010-12-11 17:44

Re: Samba Share Problem

Postby burnsmicro » 2012-05-06 00:06

brian.va wrote:try installing cifs-utils and replace smbfs with cifs in your mount command

Thanks, but no joy:
Code: Select all
ts7500:~# apt-get install cifs-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package cifs-utils

Could it be because Debian Lenny is a pretty old distribution?
burnsmicro
 
Posts: 9
Joined: 2012-04-23 18:27

Re: Samba Share Problem

Postby dilberts_left_nut » 2012-05-06 00:18

It's in lenny-backports according to http://packages.debian.org/search?keywords=cifs-utils

However it's still never going to work without kernel support for the filesystem ...
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 3075
Joined: 2009-10-05 07:54
Location: enzed

Re: Samba Share Problem

Postby burnsmicro » 2012-05-06 03:36

dilberts_left_nut wrote:It's in lenny-backports according to http://packages.debian.org/search?keywords=cifs-utils

However it's still never going to work without kernel support for the filesystem ...

Thanks for saving me from chasing up yet another dead end.
burnsmicro
 
Posts: 9
Joined: 2012-04-23 18:27


Return to System configuration

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable
cron