[Samba] [SOLVED] mount.smbfs problem
Gémes Géza
geza at kzsdabas.sulinet.hu
Wed Jul 23 18:03:55 GMT 2003
Hi,
Lots of thanks, my system Mandrake 9.1, with kernel downgraded to 2.4.19
(from Mandrake 9.0 for acl support), and recompiled to include acpi
support. works out of the box with mount.smbfs3 from samba beta3
recompiled from mandrake cooker contribs.
I checked my
/usr/src/linux/include/linux/smb.h
and it has
#define SMB_MAX_PACKET_SIZE 32768
strange enough isn't it?
Best Regards
Geza Gemes
Beau E. Cox írta:
>Hi -
>
>My messages may not be reaching this list. Would someone at least
>confirm receipt of this message even if you have no suggestions/
>comments re its content?
>
>I have sent several messages concerning mount.smbfs and I guess
>no one is using smbfs to mount a Windows machine -or- no one
>has encountered my problem. To recap the problem and give a
>solution:
>
>[problem]
>mount.smbfs is not working on 3.0.0beta3; it has been working thru
>3.0.0beta2. When I re-install 3.0.0beta2, it works again.
>
>[configuration]
>*Linux host <hanako>
> Linux version 2.4.20-4GB-athlon (root at Athlon.suse.de)
> (SuSE Linux 8.2)) #1 Fri Jul 11 20:16:51 UTC 2003
>*samba-3.0.0beta3 complied from source, with configuration
> option '--with-smbmount'. (same configuration used for beta2).
>*Windows 2000 Professional <rocky> - current with windows update.
>
>[command]
>mount -t smbfs //rocky/c$ /mnt/rocky -o rw,credentials=/my/credentials/file
>--or--
>mount.smbfs //rocky/c$ /mnt/rocky -o rw,credentials=/my/credentials/file
>
>[log]
>Jul 22 14:42:44 hanako kernel: smb_receive_trans2: data/param too long,
>data=1024, parm=57231
>Jul 22 14:42:44 hanako kernel: smb_trans2_request: result=-5, setting
>invalid
>Jul 22 14:42:45 hanako kernel: smb_retry: caught signal
>
>[solution]
>Recompile the kernel with 'MAX_SMB_PACKET_SIZE' set to 65536. My kernel
>had it at 32763. This can be done easily by hand or with this patch
>(remember - this is for the SuSE linux 8.2 kernel 2.4.20 - your
>mileage may vary):
>
>--- /usr/src/linux/include/linux/smb.h.old 2003-07-22
>22:03:01.000000000 -1000
>+++ /usr/src/linux/include/linux/smb.h 2003-07-22 22:03:17.000000000 -1000
>@@ -107,7 +107,7 @@
> * including smb_bcc */
>
> #define SMB_INITIAL_PACKET_SIZE 4000
>-#define SMB_MAX_PACKET_SIZE 32768
>+#define SMB_MAX_PACKET_SIZE 65536
>
> /* reserve this much space for trans2 parameters. Shouldn't have to be more
> than 10 or so, but OS/2 seems happier like this. */
>
>[questions]
>Why does 3.0.0beta3 need 57,231 parm bytes? Is it me or some change
>introduced with beta3 (remember beta2 works fine on my machines).
>I hope this is the correct forum to discuss this so that it
>can be considered by the developers before the first 'real' 3 is
>rolled out. Could someone please advise.
>
>Aloha => Beau;
>== please visit ==
><http://beaucox.com> => main site
><http://howtos.beaucox.com> => howtos
><http://PPM.beaucox.com> => perl PPMs
><http://CPAN.beaucox.com> => CPAN
>== thank you ==
>
>
>
>
More information about the samba
mailing list