On Wed, 2 Apr 2003, Skip Morrow wrote:

> I cannot add smb mount shares in my fstab because my network doesn't
> start up until after mount tries to parse /etc/fstab.  I get "mount: SMB
> connection failed" errors on any entry in that file.  Of course, it
> works fine if I do it manually after everything is started up.  Of
> course, I could put a command in /etc/profiles or something like that,
> but why am I having this problem?  Where does it say "mount starts up
> before/after networking?"
> 
    In my (RedHat7.2) /etc/rc.d/rc.sysinit is a line

action $"Mounting local filesystems: " mount -a -t nonfs,smbfs,ncpfs -O  no_netdev

I think that command explicitly avoids mounting filesystems which fstab
says are of type smbfs, which is reasonable since rc.sysinit is invoked
during boot before the network is brought up.  Although I don't use samba,
if you've turned on network and netfs (with, say, chkconfig), then network
will be invoked during boot to bring up the network, and netfs will later
be invoked to do "mount -a -t smbfs" for you.  At least on my system,
turning on network and netfs puts into /etc/rc.f/rc5.d symbolic links
S10network -> ../init.d/network and S25netfs -> ../init.d/netfs.  The fact
that 10 is less than 25 means that network is invoked before netfs.

-- 
Steven Yellin



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to