[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: weird problems running Samba



Américo Rocha <astartoth@linuxkafe.net> wrote:

> Hi all
> 
> I'm trying to configure a debian box to connect to 
> a samba server and mount some samba shares. The server
> is also running potato 2.2r4, but i'm getting errors
> with mount, when trying to mount the shares on the
> samba server
> 
> Here's the output
> 
> 
> XK8:/etc/init.d# ./smbmount
> mount: wrong fs type, bad option, bad superblock on
> //192.168.0.12/backgrounds, or too many mounted file systems
> mount: wrong fs type, bad option, bad superblock on 
> //192.168.0.12/XKdownloads, or too many mounted file systems
> mount: wrong fs type, bad option, bad superblock on
> //192.168.0.12/Mp3, or too many mounted file systems
> 
> 
> Here's the script i use:_
> #!/bin/sh
> # Mounter for smb shares
> 
> mnt=/bin/mount
> 
> $mnt -t smbfs -o username=xk,password=xpto //192.168.0.12/backgrounds /usr/share/backgrounds
> $mnt -t smbfs -o username=xk,password=xpto //192.168.0.12/XKdownloads /home/xk/downloads
> $mnt -t smbfs -o username=xk,password=xpto //192.168.0.12/Mp3 /home/mp3 
> 
> 
> It must be said that this script, and the the configuration i'm using in
> other boxes in my intranet, all of them running Mandrake, are actually
> mounting the share, without any problem.
> 
> TIA 
> 

Dunno for sure, but here are some things I would check:

1.  If you have SAMBA installed, is it running BEFORE you try to mount
these?
2.  If you are NOT using SAMBA, do you have the "smbfs.o" module
installed and up BEFORE you try to run the script?
3.  Is the network up/working before you run this script?
4.  Can you mount the shares by manually typing in the commands at the
root command prompt?
5.  Does the script work when called manually at the root command
prompt?

As you can see, I suspect the timing of when you call this script with
regard to other necessary components "might" be your problem.  The smbfs
support in the "stock" kernel is compiled as a module.  You will have to
insert this module before trying to mount these SMB shares.  A good way
to do this might be to insert it into the /etc/modules file.  Also,
could you describe exactly how and where are you running this script??

Cheers,
-Don Spoon-



Reply to: