View previous topic :: View next topic |
Author |
Message |
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Mon Oct 23, 2006 5:13 am Post subject: netmount failed to start at boot |
|
|
Because of this, I now cannot get an IP addy through dhcp. Is something missing that makes this become a problem? |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Mon Oct 23, 2006 6:21 am Post subject: |
|
|
Could you post the reason of the fail of netmount? It generally fails because net.eth0 or net.eth1 didn't start properly and this is the source of your problem...
Could you also post the content of ifconfig -a and /etc/conf.d/net ?
Thanks |
|
Back to top |
|
|
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Mon Oct 23, 2006 7:07 am Post subject: |
|
|
Error: Problem Starting needed services
"netmount" was not started.
in Ifconfig -a, three devices are listed and they are eth0, which has an exceptionally long HWaddr and also: "Link encap: UNSPEC", eth1 and lo.
my net file reads
config_eth0=( "dhcp" )
dhcp_eth0="nodns nontp nonis" |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Mon Oct 23, 2006 3:41 pm Post subject: |
|
|
Do you have any not started script when you execute:
Code: |
# rc-status boot
# rc-status default
|
|
|
Back to top |
|
|
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Tue Oct 24, 2006 4:15 am Post subject: |
|
|
it says in the default runlevel that it in installed but off. |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Tue Oct 24, 2006 4:16 am Post subject: |
|
|
What service? netmount? any other stopped service in there? |
|
Back to top |
|
|
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Tue Oct 24, 2006 4:20 am Post subject: |
|
|
netmount and net.eth0 are both off. |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Tue Oct 24, 2006 4:27 am Post subject: |
|
|
That's the problem. Netmount will not start until all network interfaces that have to start are started.
Could you post the output of:
Code: | /etc/init.d/net.eth0 start |
You will get the error message... |
|
Back to top |
|
|
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Tue Oct 24, 2006 4:35 am Post subject: |
|
|
no output, really. Just
*starting eth0
*bringing up eth0
*dhcp
*Running dhcpcd ... [!!!] |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Tue Oct 24, 2006 4:38 am Post subject: |
|
|
DHCPCD failed. That means your card isn't able to get any addess from your DHCP server.
Make sure that DHCP is enabled on your router/modem.
Also, make sure that eth0 is the proper network interface. If you have a wired ethernet and a wireless card, maybe they are switched.
You can view some interesting information running:
Code: | dmesg | grep -i eth |
|
|
Back to top |
|
|
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Tue Oct 24, 2006 4:44 am Post subject: |
|
|
ah, I think I might not have merged dhcpcd |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Tue Oct 24, 2006 4:47 am Post subject: |
|
|
That could be the problem too
If there is no waiting and time-out, this is surely that
You may have to reboot with the install CD and redo the mount and chroot sections. You should then be able to emerge dhcpcd. |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Tue Oct 24, 2006 4:52 am Post subject: |
|
|
Also, you can know if you have it or not using
... |
|
Back to top |
|
|
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Tue Oct 24, 2006 4:54 am Post subject: |
|
|
ok, still isn't working. Maybe the install didn't create the init script for eth0. And, the command line install used genkernel to install my kernel. How do I modify my kernel, its not in the /usr/src/linux directory. |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Tue Oct 24, 2006 5:00 am Post subject: |
|
|
If you have eth0 listed when you type ifconfig -a, then your kernel supports your card and you don't have to modify it.
The kernel does not create the init scripts. And you do have an eth0 init script since the command /etc/init.d/net.eth0 do not output "No such file or directory".
You can also know that the script reads your /etc/conf.d/net file since it tries to start the DHCP.
Please verify if you have dhcpcd with the command I listed. If you have it, then I would think you have a problem with the physical connection. |
|
Back to top |
|
|
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Tue Oct 24, 2006 5:09 am Post subject: |
|
|
new error when i run the init script
*Running dhcpcd
error, dhcpStart: interface eth0 is not Ethernet or 802.2 token ring |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Tue Oct 24, 2006 5:11 am Post subject: |
|
|
Quote: | Also, make sure that eth0 is the proper network interface. If you have a wired ethernet and a wireless card, maybe they are switched. |
What happen if you run /etc/init.d/net.eth1? |
|
Back to top |
|
|
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Tue Oct 24, 2006 5:14 am Post subject: |
|
|
no such file or directory. |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Tue Oct 24, 2006 5:15 am Post subject: |
|
|
Code: | ln -s /etc/init.d/net.eth0 /etc/init.d/net.eth1 |
Then run the script again |
|
Back to top |
|
|
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Tue Oct 24, 2006 5:21 am Post subject: |
|
|
well, first you should know the ls output:
ls: /etc/init.d/net.eth1: No such file or directory
0 /etc/init.d/net.eth0
after running the init scripts, the errors are still the same. Eth0 won't get an addy and eth1 doesn't exist. |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Tue Oct 24, 2006 5:22 am Post subject: |
|
|
This was not ls, but ln -s |
|
Back to top |
|
|
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Tue Oct 24, 2006 5:25 am Post subject: |
|
|
ok, did the ln command and recieved the same errors. What did that command do? |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Tue Oct 24, 2006 5:26 am Post subject: |
|
|
You receive an error of "No such file or directory"?
ln -s should create a symbolic link between net.eth1 (creating it) and net.eth0...
If net.eth1 does not exist, double-check the command that you wrote and run it again. |
|
Back to top |
|
|
Brayshakes Tux's lil' helper
Joined: 27 Apr 2006 Posts: 129
|
Posted: Tue Oct 24, 2006 5:29 am Post subject: |
|
|
ok, the command returned
ls: '/etc/init.d/net.eth1': file exists. But, after running the init script for eth0 and 1, I still returned the same errors. |
|
Back to top |
|
|
jeanfrancis Veteran
Joined: 17 Dec 2005 Posts: 1482 Location: Québec, Canada
|
Posted: Tue Oct 24, 2006 5:33 am Post subject: |
|
|
Okay... the DHCP fails or you get the error saying that the interfaces are not Ethernet? |
|
Back to top |
|
|
|