public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] nfs and samba doesn't mount at boot
@ 2006-09-15 15:46 Pawel K
  2006-09-18  8:18 ` Alan McKinnon
  0 siblings, 1 reply; 6+ messages in thread
From: Pawel K @ 2006-09-15 15:46 UTC (permalink / raw
  To: gentoo-user

Hello
NFS and SAMBA doesn't mount at boot:

1. NFS

I receive the following message at boot:
Sep 15 14:34:34 [rc-scripts] ERROR:  cannot start
nfsmount as net.eth0 could not start
Sep 15 14:34:35 [rc-scripts] ERROR:  cannot start
netmount as net.eth0 could not start

/etc/fstab:
remote_machine:/home/user/ /mnt_point nfs rw 0 0

I have both portmap and nfsmount running

The following command works fine:
/etc/init.d/nfsmount start

2. SAMBA

It also doesn't mount at boot.
I don't receive any message. It just doesn't mount.

/etc/fstab:
//1.2.3.4/specs /specs smbfs
defaults,ro,username=myname,password=mypass 0 0

But the following command works fine:
mount /specs

My Gentoo has been upgraded 3 weeks ago to 2006.1
portage. I have performed etc-update so my configs are
ok.
I think that it has stopped working after that.
I'm using the kernel: 2.6.15.1

Do You have any idea what can be wrong with my
configuration ?

Thank You for help

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] nfs and samba doesn't mount at boot
  2006-09-15 15:46 [gentoo-user] nfs and samba doesn't mount at boot Pawel K
@ 2006-09-18  8:18 ` Alan McKinnon
       [not found]   ` <20060918160617.90476.qmail@web33814.mail.mud.yahoo.com>
  2006-09-22 11:26   ` Pawel K
  0 siblings, 2 replies; 6+ messages in thread
From: Alan McKinnon @ 2006-09-18  8:18 UTC (permalink / raw
  To: gentoo-user

On Friday 15 September 2006 17:46, Pawel K wrote:
> Hello
> NFS and SAMBA doesn't mount at boot:
>
> 1. NFS
>
> I receive the following message at boot:
> Sep 15 14:34:34 [rc-scripts] ERROR:  cannot start
> nfsmount as net.eth0 could not start
> Sep 15 14:34:35 [rc-scripts] ERROR:  cannot start
> netmount as net.eth0 could not start

[snip]

> Do You have any idea what can be wrong with my
> configuration ?

The answer is right there in the error messages. The scripts 
cannot bring up your eth0 interface, so there's a snowball's 
chance in hell of nfs or samba ever working until that's fixed.

You need to find out why networking isn't coming up. Start 
with /etc/conf.d/net and the output from ifconfig. 

Can you use ifconfig to bring the interface up manually? 
Run /etc/init.d/net.eth0 and inspect the output closely, 
that'll give you further clues.

alan


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] nfs and samba doesn't mount at boot
       [not found]   ` <20060918160617.90476.qmail@web33814.mail.mud.yahoo.com>
@ 2006-09-19  0:07     ` Claudinei Matos
  0 siblings, 0 replies; 6+ messages in thread
From: Claudinei Matos @ 2006-09-19  0:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1857 bytes --]

It looks like an dependency problem on your init scripts.
Did you tried to run "depscan.sh"? it should fix init.d dependencies.

Claudinei Matos

On 9/18/06, Pawel K <pawlaczus@yahoo.com> wrote:
>
> > Run /etc/init.d/net.eth0 and inspect the output
> > closely,
>
> Thanx for an answer.
> Yes I can start /et/init.d/net.eth0 manually. It is
> also started at boot correctly.
> It looks like nfsmount is started before net.eth0 at
> boot:
>
> INIT: Entering runlevel: 3
> * Starting metalog ...
>                   [ ok ]
> * Starting gpm ...
>                   [ ok ]
> * Starting portmap ...
>                   [ ok ]
> * ERROR:  cannot start nfsmount as net.eth0 could not
> start
> * ERROR:  cannot start netmount as net.eth0 could not
> start
> * Setting up xdm ...
>                   [ ok ]
> * Starting eth0
> *   Configuration not set for eth0 - assuming DHCP
> *   Bringing up eth0
> *     dhcp
> *       Running dhcpcd ...
>                   [ ok ]
> *       eth0 received address 172.18.129.98/22
>
> The following sequence of commands works fine:
> /etc/init.d/net.eth0 stop
> /etc/init.d/nfsmount start
>
> nfsmount also brings up eth0 interface.
> No error messages are displayed.
> The depend() of /etc/init.d/nfsmount looks like:
>
> depend() {
>   need net portmap
>   use ypbind
> }
>
> and net.eth0:
>
> depend() {
>         need localmount
>         after bootmisc hostname
>         use isapnp isdn pcmcia usb wlan
>
>         # Load any custom depend functions for the
> given interface
>         # For example, br0 may need eth0 and eth1
>         local iface="${SVCNAME#*.}"
>         [[ $(type -t "depend_${iface}") == "function"
> ]] && depend_${iface}
>         [[ ${iface} != "lo" && ${iface} != "lo0" ]] &&
> after net.lo net.lo0
>
>         return 0
> }
>
> Do You have any idea what can be wrong ?
> thank You for help
>
>

[-- Attachment #2: Type: text/html, Size: 3297 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] nfs and samba doesn't mount at boot
  2006-09-18  8:18 ` Alan McKinnon
       [not found]   ` <20060918160617.90476.qmail@web33814.mail.mud.yahoo.com>
@ 2006-09-22 11:26   ` Pawel K
  2006-09-23  2:15     ` Drew
  1 sibling, 1 reply; 6+ messages in thread
From: Pawel K @ 2006-09-22 11:26 UTC (permalink / raw
  To: gentoo-user

> It looks like an dependency problem on your init
scripts.
> Did you tried to run "depscan.sh"? it should fix
init.d dependencies.

depscan.sh didn't help.
I find that when I remove xdm from default runlevel
everything works fine.
I can also see that when stopping xdm via:
/etc/init.d/xdm stop
I receive error message.
My xdm depend() section looks like:
depend() {
        need localmount

        # this should start as early as possible
        # we can't do 'before *' as that breaks it
        # (#139824) Start after ypbind and autofs for
network authentication
        # (#145219) Could use lirc mouse as input
device
        after bootmisc readahead-list ypbind autofs
openvpn gpm netmount lircd
        before alsasound net.lo

        # Start before X
        use acpid hald xfs
}

Do You have any idea what can be wrong ?
Thank You for help.

-at

--- Alan McKinnon <alan@linuxholdings.co.za> wrote:

> On Friday 15 September 2006 17:46, Pawel K wrote:
> > Hello
> > NFS and SAMBA doesn't mount at boot:
> >
> > 1. NFS
> >
> > I receive the following message at boot:
> > Sep 15 14:34:34 [rc-scripts] ERROR:  cannot start
> > nfsmount as net.eth0 could not start
> > Sep 15 14:34:35 [rc-scripts] ERROR:  cannot start
> > netmount as net.eth0 could not start
> 
> [snip]
> 
> > Do You have any idea what can be wrong with my
> > configuration ?
> 
> The answer is right there in the error messages. The
> scripts 
> cannot bring up your eth0 interface, so there's a
> snowball's 
> chance in hell of nfs or samba ever working until
> that's fixed.
> 
> You need to find out why networking isn't coming up.
> Start 
> with /etc/conf.d/net and the output from ifconfig. 
> 
> Can you use ifconfig to bring the interface up
> manually? 
> Run /etc/init.d/net.eth0 and inspect the output
> closely, 
> that'll give you further clues.
> 
> alan
> 
> 
> -- 
> gentoo-user@gentoo.org mailing list
> 
> 



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] nfs and samba doesn't mount at boot
  2006-09-22 11:26   ` Pawel K
@ 2006-09-23  2:15     ` Drew
  2006-09-25 15:53       ` Pawel K
  0 siblings, 1 reply; 6+ messages in thread
From: Drew @ 2006-09-23  2:15 UTC (permalink / raw
  To: gentoo-user

> Do You have any idea what can be wrong ?
> Thank You for help.
>
> -at

Can you post the output of "rc-update show". Snowballs chance but I
have an idea.


-Drew
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] nfs and samba doesn't mount at boot
  2006-09-23  2:15     ` Drew
@ 2006-09-25 15:53       ` Pawel K
  0 siblings, 0 replies; 6+ messages in thread
From: Pawel K @ 2006-09-25 15:53 UTC (permalink / raw
  To: gentoo-user

> Can you post the output of "rc-update show".
> Snowballs chance but I
> have an idea.

Thanx Drew. Below is my "rc-update show":

            bootmisc | boot                           
      
             checkfs | boot                           
      
           checkroot | boot                           
      
               clock | boot                           
      
         consolefont | boot                           
      
                 gpm |      default           offline 
      
            hostname | boot                           
      
             keymaps | boot                           
      
               local |      default nonetwork offline 
      
          localmount | boot                           
      
             metalog |      default           offline 
      
             modules | boot                           
      
            net.eth0 |      default                   
      
              net.lo | boot                           
      
            netmount |      default                   
      
            nfsmount |      default                   
      
             portmap |      default                   
      
           rmnologin | boot                           
      
              serial | boot                           
      
                sshd |      default                   
      
             urandom | boot                           
      
          vixie-cron |      default           offline 
      
              vmware |      default           offline 
      
                 xdm |      default           offline 
      

-pk

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-09-25 16:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-15 15:46 [gentoo-user] nfs and samba doesn't mount at boot Pawel K
2006-09-18  8:18 ` Alan McKinnon
     [not found]   ` <20060918160617.90476.qmail@web33814.mail.mud.yahoo.com>
2006-09-19  0:07     ` Claudinei Matos
2006-09-22 11:26   ` Pawel K
2006-09-23  2:15     ` Drew
2006-09-25 15:53       ` Pawel K

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox