Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
netmount failed to start at boot
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Mon Oct 23, 2006 5:13 am    Post subject: netmount failed to start at boot Reply with quote

Because of this, I now cannot get an IP addy through dhcp. Is something missing that makes this become a problem?
Back to top
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Mon Oct 23, 2006 6:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Mon Oct 23, 2006 7:07 am    Post subject: Reply with quote

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
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Mon Oct 23, 2006 3:41 pm    Post subject: Reply with quote

Do you have any not started script when you execute:

Code:

# rc-status boot
# rc-status default
Back to top
View user's profile Send private message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Tue Oct 24, 2006 4:15 am    Post subject: Reply with quote

it says in the default runlevel that it in installed but off.
Back to top
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Tue Oct 24, 2006 4:16 am    Post subject: Reply with quote

What service? netmount? any other stopped service in there?
Back to top
View user's profile Send private message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Tue Oct 24, 2006 4:20 am    Post subject: Reply with quote

netmount and net.eth0 are both off.
Back to top
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Tue Oct 24, 2006 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Tue Oct 24, 2006 4:35 am    Post subject: Reply with quote

no output, really. Just
*starting eth0
*bringing up eth0
*dhcp
*Running dhcpcd ... [!!!]
Back to top
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Tue Oct 24, 2006 4:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Tue Oct 24, 2006 4:44 am    Post subject: Reply with quote

ah, I think I might not have merged dhcpcd
Back to top
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Tue Oct 24, 2006 4:47 am    Post subject: Reply with quote

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
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Tue Oct 24, 2006 4:52 am    Post subject: Reply with quote

Also, you can know if you have it or not using

Code:
emerge -pv dhcpcd
...
Back to top
View user's profile Send private message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Tue Oct 24, 2006 4:54 am    Post subject: Reply with quote

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
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Tue Oct 24, 2006 5:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Tue Oct 24, 2006 5:09 am    Post subject: Reply with quote

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
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Tue Oct 24, 2006 5:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Tue Oct 24, 2006 5:14 am    Post subject: Reply with quote

no such file or directory.
Back to top
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Tue Oct 24, 2006 5:15 am    Post subject: Reply with quote

Code:
ln -s /etc/init.d/net.eth0 /etc/init.d/net.eth1


Then run the script again :)
Back to top
View user's profile Send private message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Tue Oct 24, 2006 5:21 am    Post subject: Reply with quote

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
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Tue Oct 24, 2006 5:22 am    Post subject: Reply with quote

This was not ls, but ln -s :)
Back to top
View user's profile Send private message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Tue Oct 24, 2006 5:25 am    Post subject: Reply with quote

ok, did the ln command and recieved the same errors. What did that command do?
Back to top
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Tue Oct 24, 2006 5:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Brayshakes
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 129

PostPosted: Tue Oct 24, 2006 5:29 am    Post subject: Reply with quote

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
View user's profile Send private message
jeanfrancis
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1482
Location: Québec, Canada

PostPosted: Tue Oct 24, 2006 5:33 am    Post subject: Reply with quote

Okay... the DHCP fails or you get the error saying that the interfaces are not Ethernet?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum