[Samba] Time capsule and "bad smb"

Pietro Battiston toobaz at email.it
Mon Feb 16 16:01:53 GMT 2009


Some update to the mail below: if I understand correctly, there are two
different problems showing up:
1) mount.cifs and the Time Capsule (I have no idea on which front the
problem is) don't seem to be able to handshake correctly if the share
name contains whitespaces. I didn't notice at first glance, but then found
some "no such share" errors in dmesg - not reported as output of the
command. Then I tried to change the share name (on the Time Capsule,
obviously) to a single word and reconnect, and it worked (almost, keep
reading).
2) on some particular smb commands - please bear with me if what I say
is somewhat imprecise - the Time Capsule sends back packets badly
formatted (or that mount.cifs thinks are badly formatted). This happens,
in particular:
- for some packets that report an error, such as the "no such share"
- for some packets during the unmount

This is the reason why - as far as I can conjecture - though the
handshaking failed because the name of the share could not be resolved,
I didn't get a message about that: in the communication where the Time
Capsule said "hey, I don't have that share!", some packet was reported
as incorrect and dropped.

Notice that now it does mount immediately, but when I unmount it takes
almost a minute, and in dmesg I get:

[341279.777815] Bad SMB: : dump of 48 bytes of data at 0xcc482e00
[341279.777836]  00000027 424d53ff 00000074 00018800 ' . . . � S M B
t . . . . . . .
[341279.777855]  00000000 00000000 00000000
21180000 . . . . . . . . . . . . . . . !
[341279.777873]  00960000 0000ff03 0f000000 6401a8c0 . . . . .
� . . . . . . � � . d

Googling, I found a very similar problem:
https://bugzilla.redhat.com/show_bug.cgi?id=191112
, in which case it was said to the reporter "the server is buggy, go
tell to the producer". Now, before trying, probably in vain, to talk
with some Apple guy, I'd like to know the opinion of someone slightly
more expert than me (I have used smb/cifs 5-6 times in all my life),
also because my "conjecture" doesn't explain everything... in
particular it's a mistery for me the fact that one of the two sites I
linked in the former email claimed to have mounted successfully a Time
Capsule with a share name containing whitespaces. I'll try to contact
the writer of that page (notice that before trying changing the share name, I had
tried changing the Time Capsule firmware, installing all the 3 available
versions with no luck, so the difference isn't there).

In the meanwhile, any hint? I anyone connecting to a Time Capsule without
problems?

thanks

Pietro

Il giorno ven, 13/02/2009 alle 18.28 +0100, Pietro Battiston ha scritto:
> Hello,
> 
> I'm having trouble connecting to an Apple Time Capsule's smb shares.
> 
> The connection doesn't work, and with "dmesg" I see the following
> message, repeated every time I try:
> 
> [26937.531511]  CIFS VFS: RFC1001 size 39 bigger than SMB for Mid=4
> [26937.531580] Bad SMB: : dump of 48 bytes of data at 0xffff880052832380
> [26937.531615]  00000027 424d53ff 00000074 00018800 ' . . . � S M B
> t . . . . . . .
> [26937.531647]  00000000 00000000 00000000
> 56e00000 . . . . . . . . . . . . . . � V
> [26937.531677]  00040000 0000ff03 00000000 00000000 . . . . .
> � . . . . . . . . . .
> [26965.379794]  CIFS VFS: server not responding
> [26965.379868]  CIFS VFS: No response to cmd 116 mid 4
> [26965.516535]  CIFS VFS: cifs_mount failed w/return code = -6
> 
> 
> Here is the command I use (I changed only the password) and the
> response:
> 
> pietro at vousci:~$ sudo mount.cifs //192.168.1.100/"Time Capsule Famiglia
> Battiston"/battiston /media/timecapsule/ -o pass=passw0rd
> retrying with upper case share name
> mount error 6 = No such device or address
> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
> 
> 
> This has been reported as working from other Time Capsule users (see [1]
> and [2]).
> 
> [1]: http://ubuntuforums.org/showthread.php?t=670535
> [2]: http://www.javaservercode.com/?p=43
> 
> My configuration: I tried the command, and got the same result, in:
> - a 64 bit Ubuntu Intrepid 8.10 (kernel 2.6.27-7-generic, smbfs package
> version is 2:3.2.3-1ubuntu3*) connected directly to the Time Capsule
> - a 64 bit Ubuntu Jaunty 9.04 (kernel 2.6.28-7-generic, smbfs package
> 2:3.2.5-4ubuntu1*) connected directly (wired) to the Time Capsule
> - a 32 bit Ubuntu (kernel 2.6.24-23-generic, mount.cifs version
> 1.10-3.0.28a) connected to it through another router.
> 
> I googled for similar errors, but found nothing useful. I mean, I found
> posts about configuring issues for a smb server, but in my case the
> server appears to work fine, since I access it OK from an OS X computer,
> if I say "connect to server smb://192.168.1.100". So apparently the
> device itself is OK.
> 
> Is Apple known to use a non standard protocol?
> 
> * I report the version of the Ubuntu package, because in those two
> recent versions, "mount.cifs -V" doesn't print the version number, but
> only some help, in which is included:
> 	"To display the version number of the mount helper:
> 	mount.cifs -V"
> 
> thank you for any info
> 
> Pietro Battiston
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba



More information about the samba mailing list