Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
what is the deal with udev and 2005.0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
CyCO
n00b
n00b


Joined: 15 Apr 2005
Posts: 24

PostPosted: Tue May 10, 2005 10:36 pm    Post subject: what is the deal with udev and 2005.0 Reply with quote

I have installed 2005.0 and built kernel 2.6.11 using genkernel if I do not include the udev option and reboot my laptop I get the following error

>> Mounting filesystems
mount: Mounting devfs on /dev failed: No such device
Error opening file: ".devfsd" No such file or directory
>> Determining root device...
>> Block device /dev/hda5 is not a valid root device
>> The root block device is unspecified or not detected.
Please specifiy a device to boot, or "shell" for a shell...
boot() ::


The partitions are

/dev/hda1 IBM Thinkpad Hibernation
/dev/hda2 Windows
/dev/hda3 Extended
/dev/hda5 Linux (my /)
/dev/hda6 Linux Swap
/dev/hda7 Linux (my /home)

my grub.conf

default 0
timeout 30
splashimage=(hd0,4)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.11-r3
root (hd0,4)
kernel /boot/kernel-2.6.11-gentoo-r3 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda5 video=vesafb:ywrap,mtrr,1024x768-32@60
initrd /boot/initrd-2.6.11-gentoo-r3

title=Gentoo Linux 2.6.11-r3-udev
root (hd0,4)
kernel /boot/kernel-2.6.11-gentoo-r3-udev root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda5 video=vesafb:ywrap,mtrr,1024x768-32@60
initrd /boot/initrd-2.6.11-gentoo-r3-udev

title=Windoze XP
root (hd0,1)
makeactive
chainloader +1

can someone explain what udev does and why I need it?

Thanks
Back to top
View user's profile Send private message
magnesium
Apprentice
Apprentice


Joined: 28 Oct 2003
Posts: 280
Location: Toronto, Canada

PostPosted: Tue May 10, 2005 10:48 pm    Post subject: Reply with quote

udev populates your /dev device and you need it to use any devices. It's also the default /dev file handler for 2005.0, so you should use it. It's dynamic as long as you use the hotplug kernel option and it rocks.

use it.
_________________
Adopt an unanswered post
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2078
Location: San Jose, CA

PostPosted: Tue May 10, 2005 10:54 pm    Post subject: Re: what is the deal with udev and 2005.0 Reply with quote

udev replaces the kernel devfs file system. Its better because, among other reasons, its user level instead of kernel level, so its more user friendly.

I have found no specific faqs on how to switch to it. The best and simplest description I have found is BobPs Install stage 1 on a stage 3 tarball.

https://forums.gentoo.org/viewtopic-t-319349.html

However, here's a summary of what I did to get it to work on my machines:

Code:
nano -w /etc/conf.d/rc

Code:
RC_NET_STRICT_CHECKING="no"
RC_DEVICE_TARBALL="no"
RC_DEVICES="udev"


The first line is probably already correct. The second line exists, you just change it to "no" and the third line is new, you must add it for udev to work. I put it after the TARBALL statement.

Although it looks like the new version of baselayout may not need this stuff.

Since you have disabled devfs in the kernel, that step is done.

The next thing is to emerge udev:

Code:
emerge udev hotplug coldplug
rc-update add hotplug default
rc-update add coldplug default


As far as I know, that's all you need.

I've only had trouble with one system getting it to work.

Good luck,

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
CyCO
n00b
n00b


Joined: 15 Apr 2005
Posts: 24

PostPosted: Wed May 11, 2005 5:10 am    Post subject: Reply with quote

Thanks for that I will just leave udev in the compile option :)
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2078
Location: San Jose, CA

PostPosted: Wed May 11, 2005 5:13 pm    Post subject: Reply with quote

CyCO wrote:
Thanks for that I will just leave udev in the compile option :)


Forgive me for asking, but udev in the compile option for what?

Its not in my kernel...

Do you mean devfs?

If you do mean devfs, it would be a good idea to figure out udev now because at some point devfs will be dropped from the kernel.

Raydude
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Wed May 11, 2005 5:28 pm    Post subject: Reply with quote

Please see https://forums.gentoo.org/viewtopic-t-315935.html

Moved from Installing Gentoo.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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