Author Topic: Mounting Zaurus On Linux Using Smbmount  (Read 12333 times)

jeffbarish

  • Newbie
  • *
  • Posts: 25
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« on: March 19, 2005, 11:30:10 am »
I would like to mount my Zaurus on my linux desktop.  I use the command

mount -t smbfs //192.168.129.201/home/zaurus /mnt/zaurus

and get the message

Error connecting to 192.168.129.201 (Connection refused)
6225: Connection to 192.168.129.201 failed
SMB connection failed

I suspect that I have to modify a file on the Zaurus identifying my linux desktop so that the smb server knows to permit the mount, but I can't find such a file.  I found /home/root/usr/lib/samba/smb.conf, but I don't see anything relevant in there.

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #1 on: March 19, 2005, 01:09:45 pm »
I get this same when doing this not logged in as root.

Use SU first and see what happens

Also what ROM and interface are you using?
« Last Edit: March 19, 2005, 01:11:21 pm by craigtyson »
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

jeffbarish

  • Newbie
  • *
  • Posts: 25
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #2 on: March 19, 2005, 01:25:29 pm »
I was logged in as root.

I am using the standard Sharp ROM.  I am connecting over usbnet.

I just tried

mount -t smbfs //192.168.129.201/home/zaurus /mnt/zaurus -o username=root

That command produces

Anonymous login successful
6780: tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree connect.)
SMB connection failed
« Last Edit: March 19, 2005, 01:26:17 pm by jeffbarish »

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #3 on: March 19, 2005, 01:32:21 pm »
Can you dump your Zs SMB.CONF in the post.  also your Zs /etc/inetd.conf

Might just be a line in either needs un-reming.
« Last Edit: March 19, 2005, 01:32:38 pm by craigtyson »
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

jeffbarish

  • Newbie
  • *
  • Posts: 25
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #4 on: March 19, 2005, 02:42:47 pm »
Both files are in their default state.  Here is smb.conf:

[global]
# workgroup is either a domain name or a workgroup name
        workgroup = WORKGROUP
        log file = /dev/null
#
# encrypt passwords is required for Win98, NT and Windows 2000
#
        encrypt passwords = yes

        coding system = utf8
        client code page = 932
        force create mode = 0755
        strict sync = yes
        sync always = yes

        interfaces = usbd0
#       wins support = yes
        bind interfaces only = yes
[system]
        comment = System Folder
        path = /root/samba
        read only = no
        browseable = no
        guest ok = yes
        force user = root
[home]
        comment = for User Data
        path = /home/samba
        short preserve case = no
        read only = no
        guest ok = yes
        force user = zaurus

And here is inetd.conf:

#
# inetd.conf    This file describes the services that will be available
#               through the INETD TCP/IP super server.  To re-configure
#               the running INETD process, edit this file, then send the
#               INETD process a SIGHUP signal.
#
# Version:      @(#)/etc/inetd.conf     3.10    05/27/93
#
# Authors:      Original taken from BSD UNIX 4.3/TAHOE.
#               Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
#
# Modified for Debian Linux by Ian A. Murdock <imurdock@shell.portal.com>
#
# Modified for RHS Linux by Marc Ewing <marc@redhat.com>
#
# Further modified by Olaf Kirch <okir@caldera.com> for Caldera Open Linux
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
# Echo, discard, daytime, and chargen are used primarily for testing.
#
# To re-read this file after changes, just do a 'killall -HUP inetd'
#
# Note: builtin UDP services now silently drop packets from ports < 512.
#echo   stream  tcp     nowait  root    internal
#echo   dgram   udp     wait    root    internal
#discard        stream  tcp     nowait  root    internal
#discard dgram  udp     wait    root    internal
#daytime        stream  tcp     nowait  root    internal
#daytime dgram  udp     wait    root    internal
#chargen stream tcp     nowait  root    internal
#chargen dgram  udp     wait    root    internal
#time   stream  tcp     nowait  root    internal
#time   dgram   udp     wait    root    internal
#
# These are standard services.
#
### With tcpd (TCP Wrapper) ###
#ftp    stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd -l -a
#telnet stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetd
### Without tcpd (TCP Wrapper) ###
#ftp    stream  tcp     nowait  root    /usr/sbin/in.ftpd -l -a
#telnet stream  tcp     nowait  root    /usr/sbin/in.telnetd

#
# Mail and news
#
# Do not uncomment either unless you *really* know what you are doing.
# Both are started as standalone daemons from the /etc/rc.d scripts.
#smtp   stream  tcp     nowait  root    /usr/bin/smtpd  smtpd
#nntp   stream  tcp     nowait  root    /usr/sbin/tcpd  in.nntpd

#
# Shell, login, exec and talk are BSD protocols.
#
#shell  stream  tcp     nowait  root    /usr/sbin/tcpd  in.rshd
#login  stream  tcp     nowait  root    /usr/sbin/tcpd  in.rlogind
#exec   stream  tcp     nowait  root    /usr/sbin/tcpd  in.rexecd
#talk   dgram   udp     wait    nobody.tty      /usr/sbin/tcpd  in.talkd
#ntalk  dgram   udp     wait    nobody.tty      /usr/sbin/tcpd  in.ntalkd
#dtalk  stream  tcp     wait    nobody.tty      /usr/sbin/tcpd  in.dtalkd

#
# Pop and imap mail services et al
#
#pop2   stream  tcp     nowait  root    /usr/sbin/tcpd  ipop2d
#pop3   stream  tcp     nowait  root    /usr/sbin/tcpd  ipop3d
#imap   stream  tcp     nowait  root    /usr/sbin/tcpd  imapd
#
# The Internet UUCP service.
#
#uucp   stream  tcp     nowait  uucp    /usr/sbin/tcpd  /usr/sbin/uucico -l
#
# Tftp service is provided primarily for booting.  Most sites
# run this only on machines acting as "boot servers." Do not uncomment
# this unless you *need* it.
#
#tftp   dgram   udp     wait    root    /usr/sbin/tcpd  in.tftpd
#bootps dgram   udp     wait    root    /usr/sbin/tcpd  bootpd
#
#  This is for the finger service
#
#finger stream  tcp     nowait  root    /usr/sbin/tcpd  in.fingerd
#
# Finger, systat and netstat give out user information which may be
# valuable to potential "system crackers."  Many sites choose to disable
# some or all of these services to improve security.
#
#systat stream  tcp     nowait  nobody  /usr/sbin/tcpd  /bin/ps -auwwx
#netstat stream tcp     nowait  nobody  /usr/sbin/tcpd  /bin/netstat --inet
#
# Authentication
#
#auth   stream  tcp     nowait  root    /usr/sbin/tcpd  in.identd
#
# End of inetd.conf
ftp stream tcp nowait root /usr/sbin/ftpd -a
« Last Edit: March 19, 2005, 02:46:59 pm by jeffbarish »

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #5 on: March 19, 2005, 03:26:25 pm »
smb.conf looks more or less the same as mine although my inetd.conf has

# samba
netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd
netbios-ns dgram udp wait root /usr/sbin/tcpd /usr/sbin/nmbd

in it which I thought was to allow windoze to connect but might also effect smb.  Can you mount from the Z to you PC ?
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

jeffbarish

  • Newbie
  • *
  • Posts: 25
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #6 on: March 19, 2005, 03:44:11 pm »
Sticking those lines into my inetd.conf had no effect.  I am not able to mount my desktop system on the Zaurus.  In fact, I am not able even to ping the desktop system (network unreachable).

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #7 on: March 19, 2005, 03:50:59 pm »
Do you have any firewall services running on your PC ?
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

jeffbarish

  • Newbie
  • *
  • Posts: 25
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #8 on: March 19, 2005, 04:34:30 pm »
No.

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #9 on: March 19, 2005, 04:59:47 pm »
Can you ping your Z from the PC?
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

jeffbarish

  • Newbie
  • *
  • Posts: 25
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #10 on: March 19, 2005, 07:08:48 pm »
Yes.  Also ftp and VNC.

Tehas

  • Full Member
  • ***
  • Posts: 157
    • View Profile
    • http://users.adelphia.net/~stonerrl/rick/
Mounting Zaurus On Linux Using Smbmount
« Reply #11 on: March 20, 2005, 10:25:49 am »
Check your log files in /var/smb to see if the messages help you.  

I had a problem mounting my SL6000 to my XP box at work.  The error that I was getting was that the name for my Zaurus' name in my /etc/hosts file.  When browsing over USB, the XP box is 192.168.129.1 and the Zaurus is 92.168.129.201 so I had to add an entry in /etc/hosts to mapped the 201 IP to my Zaurus's name.
+SL-5600 v1.32 ROM (Special pre-emptive kernel with overclock)  +Viking 256CF  +SimpleTech 256CF  +Viking 128SD (as ext2)  +AmbiCom WL1100C +Micro Innovations KB  +Hawking Ethernet CF  
+SL6000L +Lexar 1GB SD (as ext2)  +Windows 98/Me/Nt/XP  +Mandrake 8.1 My Zaurus Page[img]http://users.adelphia.net/~stonerrl/rick/rls_userbar.gif\" border=\"0\" class=\"linked-sig-image\" /]

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #12 on: March 20, 2005, 11:01:00 am »
Quote
smb.conf looks more or less the same as mine although my inetd.conf has

# samba
netbios-ssn stream tcp nowait root /usr/sbin/tcpd /usr/sbin/smbd
netbios-ns dgram udp wait root /usr/sbin/tcpd /usr/sbin/nmbd

in it which I thought was to allow windoze to connect but might also effect smb.  Can you mount from the Z to you PC ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=71436\"][{POST_SNAPBACK}][/a][/div]

The seperation between the parameters on these lines MUST be via TAB and not whitespace.

You must then either reboot your Z or from su..

killall -HUP inetd

this causes the inetd superserver to reload the file.

If you find that inetd has completely stopped then it's probably due to a misformatting in the file. Check for TABS and not whitespace between the parameters.

PS I'm assuming that this is over a USB network. If not then you need to make sure the interface (on the Z) is listed on the interfaces line in /usr/lib/samba/smb.conf otherwise Samba will refuse the connection.

Oh yes and you can see the shares on the server prior to mounting with...

smbclient -L servername

- Andy
« Last Edit: March 20, 2005, 03:34:24 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

jeffbarish

  • Newbie
  • *
  • Posts: 25
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #13 on: March 20, 2005, 10:56:45 pm »
I may be confused in some cases about which platform your suggestions apply to.  I checked /var/log/samba/log.smbd on the desktop system (the client) and /var/smb/log.smb on the Zaurus (the server).  They are both empty.  I already have an entry in /etc/hosts on the client for the Zaurus.  It permits me to ping the Zaurus.  I tried making an entry in /etc/hosts on the Zaurus for the client, but that change had no effect.

I tried entering the two lines about netbios-ssn and netbios-ns using tabs instead of whitespace.  I then issued the killall command.  I was still unable to mount the Zaurus.  I tried running the smbclient command on the Zaurus (the server), but there is no smbclient command on the Zaurus.  And yes, I am connecting over usbnet.  I tried changing the line in smb.conf to "interfaces = usb0" (rather than usbd0), but that change had no effect.  Yes, inetd is running.

The error message is back to connection refused even though I am still specifying root as the user.

I appreciate all the suggestions.  I hope that there will be others as I am stymied.

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Mounting Zaurus On Linux Using Smbmount
« Reply #14 on: March 21, 2005, 03:20:00 am »
Quote
....
I tried entering the two lines about netbios-ssn and netbios-ns using tabs instead of whitespace.  I then issued the killall command.  I was still unable to mount the Zaurus.  I tried running the smbclient command on the Zaurus (the server), but there is no smbclient command on the Zaurus.  And yes, I am connecting over usbnet.  I tried changing the line in smb.conf to "interfaces = usb0" (rather than usbd0), but that change had no effect.  Yes, inetd is running.
....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=71564\"][{POST_SNAPBACK}][/a][/div]

OK firstly change the usb0 back to usbd0 that wasn't a typo as is important.

ps -ef | grep inetd

Does that acually return that inetd is running or just show the ps command?

If inetd is not running then there is still a formatting problem on the inetd.conf

smbclient -L is a Linux desktop command... try using that to list the shares on the Z.
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card