[Samba] mounting a Samba volume on startup

Joel Hammer Joel at HammersHome.com
Thu Jul 18 18:25:02 GMT 2002

which mount
And then put the whole path for the command in rc.local.
Or, consider using smbmount, but, again, with the entire path command.
This must be a path error problem.(IMHO) 

On Thu, Jul 18, 2002 at 08:40:58PM -0400, Mladen Gavrilovic wrote:
> Joel Hammer wrote:
> > A common problem during bootup is that the path commands you have after
> > you log in have not taken effect, and so various files might not be
> > accessible.
> > Where is the mount command actually placed?
> > How are you authenticating onto the XP machine?
> > What is the actual command you are using?
> > Joel
> OK, the mount command is in rc.local.  It is the last command executed 
> before the login screen.  This is the command I put in myself... the Red 
> Hat Samba mounting script is where they put it themselves by default... 
> but either way, even if they put it somewhere before the SMB and NMB 
> initialization, my command should work because it is the VERY LAST thing 
> the initscripts execute.
> The command I'm using is
> mount '//AQUA/ddrive' -t smbfs -o \
> ip=,workgroup=MYGROUP,guest,rw /usr/media/sound/mp3s
> Needless to say, AQUA is the name of the WinXP computer, MYGROUP is the 
> workgroup.  Authentication onto the XP machine is not a problem, 
> because, as I said, this is the very LAST thing that the system runs 
> before the login screen.  At the login screen I can login as root and 
> cut and paste the same exact command from rc.local into a terminal, and 
> the volume mounts fine.
> Thanks for the reply,
> Mladen
> >  On Thu, Jul 18, 2002 at 03:58:55PM -0400, Mladen Gavrilovic wrote:
> > 
> >>Hi all, I've been trying to get an answer to this question for a long 
> >>time and in a lot of different places, but no luck.
> >>
> >>Basically I want to mount an XP volume on my Linux machine at boot time 
> >>over Samba.  The network is just an XP box and a Linux box, connected by 
> >>a crossover cable.  The XP box is a gateway to the net (don't ask), with 
> >>two NICs, one internal, and one going to the DSL modem.
> >>
> >>Samba seems to be working correctly, I don't have any problems browsing 
> >>or transferring files from either end.  However, no matter what I do, I 
> >>can't mount a volume off the XP machine at bootup.  I always get the error:
> >>
> >><some nonsense number>: Tree connect failed. ERRDOS - ERRnoaccess 
> >>(Access denied.)  Samba connection failed.
> >>
> >>Or something like that.  The number always changes, but the message is 
> >>always the same.  The thing is, immediately after bootup I can mount the 
> >>volume without any problem as root.
> >>
> >>The suggestions that I've gotten so far are:
> >>
> >>Make the smbmount and smbumount scripts root, or use sudo.  This won't 
> >>work because a) the message isn't "Only root can mount this" as it is 
> >>when it's a permissions problem, b) the scripts STILL don't work even 
> >>when they're suid root, and c) sudo would only allow a normal user to 
> >>mount it AFTER boot, which is not what I'm looking for.
> >>
> >>Look into the automounter.  I don't think this is necessary because when 
> >>I was using RH 7, everything worked fine without the automounter...  I 
> >>just put in "mount -t smbfs etc, etc" into rc.local.  Now, in RH 7.2 
> >>(with 2.4.18 kernel), it doesn't anymore.  Even Red Hat's own script 
> >>which was designed to mount SMB volumes specifically, doesn't work.  It 
> >>gives the same message.
> >>
> >>So does ANYONE have a Samba volume being mounted on bootup?  And if yes, 
> >>how are you doing it?
> >>
> >>Thanks,
> >>Mladen
> >>
> >>P.S.  I also have a printer connected to the WinXP machine that works 
> >>fine on the Linux machine over Samba.  I don't know if this has anything 
> >>to do with anything or not.  Probably not :)
> >>
> >>
> >>-- 
> >>To unsubscribe from this list go to the following URL and read the
> >>instructions:  http://lists.samba.org/mailman/listinfo/samba
> >>
> > 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list