Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev-mount and network problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Nardian
n00b
n00b


Joined: 16 Aug 2012
Posts: 9

PostPosted: Thu Aug 16, 2012 7:52 pm    Post subject: udev-mount and network problem Reply with quote

Hi,

first udev-mount:
when booting gentoo udev fails to start.. when I after boot try to start it manually:

Code:
/etc/init.d/udev start
 * CONFIG_DEVTMPFS=y is required in your kernel configuration
 * for this version of udev to run successfully.
 * This requires immediate attention.
 * ERROR: udev-mount failed to start
 * ERROR: cannot start udev as udev-mount would not start


I checked the /usr/src/linux/.config and CONFIG_DEVTMPFS is set on 'y' (as mentioned by the error-message). I already retried "genkernel all" but it doesnt change anything.



the second problem (maybe related to udev-mount, I really dont know, I'm a noob to gentoo ^^) is that
Code:
ifconfig eth0
eth0: error fetching interface information: Device not found


I have used the system already for some weeks (with working eth0), and when booting a gentoo live, I can get eth0 working (with "ifconfig eth0 [ip] broadcast [...] netmask [...] up" as far as I remember correctly)

hope someone can help me
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Aug 16, 2012 8:12 pm    Post subject: Reply with quote

Nardian,

Your eth0 problem is most likely due to udev being unable to start. Check your config for:
Code:
bill@laptop ~ $ grep DEVTMPFS  /usr/src/linux/.config
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
 

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Nardian
n00b
n00b


Joined: 16 Aug 2012
Posts: 9

PostPosted: Thu Aug 16, 2012 9:22 pm    Post subject: Reply with quote

BillWho,

Code:
grep DEVTMPFS  /usr/src/linux/.config
CONFIG_DEVTMPFS=y
# CONFIG_DEVTMPFS_MOUNT is not set


I changed the commented line to yours, retried a genkernel, rebooted, but the error remains.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Aug 16, 2012 9:33 pm    Post subject: Reply with quote

From your other post related to the kernel not compiling
Quote:
eselect kernel list
[1] linux-3.3.8-gentoo *
[2] linux-3.5.1-gentoo

did you run make oldconfig against your old .config file :?:

Secondly, is there a reason you jumped to 3.5.1 from 3.3.8 :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Nardian
n00b
n00b


Joined: 16 Aug 2012
Posts: 9

PostPosted: Thu Aug 16, 2012 9:37 pm    Post subject: Reply with quote

BillWho wrote:

did you run make oldconfig against your old .config file :?:

no, i didnt... shall i? ^^

BillWho wrote:
Secondly, is there a reason you jumped to 3.5.1 from 3.3.8 :?:

as mentioned in the other thread, with the 3.3.8 kernel, the genkernel command is not working as the Makefile is missing. I have no other reason to go to 3.5.1, I just want that my gentoo works :)
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Thu Aug 16, 2012 9:53 pm    Post subject: Reply with quote

I would suggest going back to 3.3.8

Copy the .config file in the 3.3.8 directory just to be safe and
Code:
emerge =sys-kernel/gentoo-sources-3.3.8


Don't forget to eselect kernel set # where # is the kernel number from eselect kernel list

Since you use genkernel, there should be a /etc/kernels directory with saved .config files in case the file is no longer there.

When you get a kernel upgrade always copy the previous .config to the new kernel directory and make oldconfig :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Nardian
n00b
n00b


Joined: 16 Aug 2012
Posts: 9

PostPosted: Thu Aug 16, 2012 11:38 pm    Post subject: Reply with quote

Hmm - that was strange...

As I changed the /usr/src/linux/.config to set the 3.3.8's kernel's CONFIG_DEVTMPFS=y, I realized the output of genkernel that it uses another config file located in /etc/kernels/kernel-config-x86_64_3.3.8-gentoo and those were not updated when I changed in /usr/src/linux/.config
Maybe I missunderstood something with the config files, but after backuping the "real" config and changing the DEVTMPFS, everythings seems to work now again.

So, once again, thank you for your help :)
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Aug 17, 2012 12:07 am    Post subject: Reply with quote

Nardian,

Glad to hear you got it working again :D

If you ever decide to customize the kernel, copy /etc/kernels/kernel-config-x86_64_3.3.8-gentoo to /usr/src/linux/.config then make your changes and issue genkernel something like:
Code:
genkernel  --kernel-config=/usr/src/linux/.config --mountboot --install --symlink all

If you don't have a separate boot partition, don't include --mountboot :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Nardian
n00b
n00b


Joined: 16 Aug 2012
Posts: 9

PostPosted: Fri Aug 17, 2012 9:04 am    Post subject: Reply with quote

I'll try to remember that, thanks :)

But one last question remains for me... Why did I get such problems with udev on the new kernel? Shouldnt such kinda important services work without problems? Or am I again understanding something wrong?

edit:
Aaaah - now by thinking about it again, maybe it would work with the new kernel too, maybe my mistake was really that I changed the wrong config-file...
well... at least my system is now running again :)
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Aug 17, 2012 1:23 pm    Post subject: Reply with quote

Nardian wrote:
I'll try to remember that, thanks :)

But one last question remains for me... Why did I get such problems with udev on the new kernel? Shouldnt such kinda important services work without problems? Or am I again understanding something wrong?

edit:
Aaaah - now by thinking about it again, maybe it would work with the new kernel too, maybe my mistake was really that I changed the wrong config-file...
well... at least my system is now running again :)


It was changes to udev that caused the problem. I believe it was udev-187 that required the setting of DEVTMPFS. There was a message after the emerge completed that those changes were necessary or your system will crash and burn.

You most likely did an update to world and just didn't pay attention to the warning message :(
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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