[sclug] Problem with mounting an smb system: smbclient works; mount doesn't
David Given
dg at cowlark.com
Mon Sep 5 22:02:31 UTC 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James Wyper wrote:
[...]
> He can browse my samba shares OK, but when I try to mount his, it
> doesn't work. The strange thing is, smbclient can connect. His server
> netbios name is giles and the share is called transfer.
Oh, gods. SMB. What a pile of shite.
Herewith is the secret to making SMB work properly, particularly with
smbmount: goat blood, dead chickens (*not* the kind with a pully inside), and
selling your soul to whoever seems handy.
I find that life generally gets easier if you use CIFS instead of smbfs; at
least that way you can avoid that ghastly smbmount program.
[...]
> [root at garage include]# mount -t smbfs -o
> user=james,password=xxxxx,ip=10.8.0.6 \\\\giles\\transfer /mnt/giles
> mount: wrong fs type, bad option, bad superblock on \\giles\transfer,
> or too many mounted file systems
Useful things to frob: try it without the password; without the user name
*and* password; or (if you use CIFS) use credentials=/etc/smbpasswd.txt, and
have smbpasswd.txt contain "user=xxxx\npassword=yyyy".
You may also want to try using forward slashes (//giles/transfer). Also, try
using the IP address for giles instead of the name --- smbmount and smbfs/CIFS
use slightly different ways of looking names up. That solved my most recent
SMB problem.
Incidentally, exactly what wrong is reported to the kernel log; if mount
fails, try:
dmesg | tail -10
You should get more information. Unfortunately, frequently it just turns into
"error number -92" or some other undocumented number.
Good luck. You'll need it.
- --
+- David Given --McQ-+ "If you're up against someone more intelligent
| dg at cowlark.com | than you are, do something insane and let him think
| (dg at tao-group.com) | himself to death." --- Pyanfar Chanur
+- www.cowlark.com --+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDHMBrf9E0noFvlzgRAsb5AJ40O3ZyYlUpNIcEUQROUVZz4iYUrQCfWajQ
HbJFRgfuPcqv+M9zBP0KUzM=
=IFis
-----END PGP SIGNATURE-----
More information about the Sclug
mailing list