Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98657 - switching from devfs to udev guide is incomplete
Summary: switching from devfs to udev guide is incomplete
Status: VERIFIED WORKSFORME
Alias: None
Product: Websites
Classification: Unclassified
Component: [OLD] Articles (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Docs Team
URL: http://www.gentoo.org/doc/en/udev-gui...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-11 05:36 UTC by Robert Baxter
Modified: 2005-07-12 00:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Baxter 2005-07-11 05:36:27 UTC
http://www.gentoo.org/doc/en/udev-guide.xml
Somewhere in this guide, it should be added that if you are switching from devfs
to udev, you must delete the /dev/.devfsd file manually. If that file is left
there, udev will not start, and if there is no longer any devfs (automatically
mount at boot) support in your kernel, devfs won't start either and you get a
kind message from the gentoo devs saying you have support for neither and to
read the above page. When you delete that file, udev starts up fine.

This fix could also be added to the udev ebuild.

Reproducible: Always
Steps to Reproduce:
1. remove devfs (automatically mount at boot) support from kernel
2. emerge udev
3. reboot
4. read error message

Actual Results:  
no /dev/hd* devices in /dev
Comment 1 Shyam Mani (RETIRED) gentoo-dev 2005-07-11 06:50:36 UTC
Umm, I used the same guide to switch from defs to udev and faced *no* such
issues what so ever. I'm tending towards a WORKSFORME here.
Comment 2 Shyam Mani (RETIRED) gentoo-dev 2005-07-11 06:53:18 UTC
(In reply to comment #0)
> Steps to Reproduce:
> 1. remove devfs (automatically mount at boot) support from kernel
> 2. emerge udev
> 3. reboot
> 4. read error message

The steps in guide ask you to emerge udev, hotplug, coldplug and then go onto
the kernel parts. Also the RC_DEVICE_TARBALL part is quite important. Have you
tried that? Do you still get the same error? 
Comment 3 Robert Baxter 2005-07-11 06:58:00 UTC
Do as you like, I just switched 2 servers to udev, from devfs and faced the same
issue on both of them. Maybe the ebuild for udev has been changed since you did
it, I'm not sure. Either way, the ONLY thing I had to do, was remove a static
file from /dev called .devfsd and udev worked perfectly. I followed the
directions to the letter, just put them in the wrong order on the bug report.

When I hit "If you want to use the udev-tweaks Gentoo added to make your life
comfortable, then read no more." I stopped. ;)
Maybe the rc-device-tarball kept that file. I'm not sure.
Comment 4 Shyam Mani (RETIRED) gentoo-dev 2005-07-11 09:42:02 UTC
(In reply to comment #3)
> Do as you like, I just switched 2 servers to udev, 

We don't do as we like, or I'd have marked this WORKSFORME a long time back and
we won't be having this discussion. We're trying to sort out a possible
issue...that tone of yours doesn't help at all.

> it, I'm not sure. Either way, the ONLY thing I had to do, was remove a static
> file from /dev called .devfsd and udev worked perfectly. I followed the
> directions to the letter, just put them in the wrong order on the bug report.

Okay.

> Maybe the rc-device-tarball kept that file. I'm not sure.

If you had that set to yes, then chances are that's the cause of your issues.
Since that creates a tarball of /dev and uses that tarball at startup. It would
have preserved the .devfsd file as well. Did you have it set to yes? 
Comment 5 Jonathan Smith (RETIRED) gentoo-dev 2005-07-11 12:01:33 UTC
i've converted 4 computers from devfs to udev recently, and i've not had this
problem. i don't think this is a docs bug. if you are really having this issue,
perhaps this bug should be filed to the maintainer/herd of udev
Comment 6 Robert Baxter 2005-07-11 12:28:25 UTC
How's this for tone.
Comment 7 Robert Baxter 2005-07-11 12:34:49 UTC
The point of this bug was just to let you know of an issue I was having that may
affect others. A simple note on the page or something along those lines would
have been sufficient. If you took offense to my tone, that was not my intention
at all. I'm converting another server from devfs to udev later today following
the instructions on that page and I'll see how it goes from there. Thank you.
Comment 8 Jonathan Smith (RETIRED) gentoo-dev 2005-07-11 12:37:39 UTC
hey now... no need to get hostile. either of you.

the point is simply that we can't reproduce this problem.
Comment 9 Robert Baxter 2005-07-11 12:44:52 UTC
No problem at all, now that I know what I'm looking for. I'll be able to
document the steps taken and see if it happens again so it can be reproduced by
someone else.

On the 2 systems I have done already. RC_DEVICE_TARBALL="yes" was specified, so
I'm pretty sure that's what happened. Thanks for the suggestion Shyam.
Comment 10 SpanKY gentoo-dev 2005-07-11 15:03:29 UTC
if you search bugzilla this has come up from time to time

usually it's with very old installs though
Comment 11 Alin Dobre (RETIRED) gentoo-dev 2005-07-11 21:07:18 UTC
I had no problem switching to udev, either.
Robert, the problem lays under the udev maintainer plaground, not docs-team,
because the udev guide is not a troubleshooting guide. Generally, the docs-team
tries not to insert troubleshooting content into the normal guides (there are
also troubleshooting guides which treat those problems). So, if the problem
indeed exists, it should be solved by the udev installation process
automatically and not by manual tricks (like deleting /dev/.devsfd).
I everyone agrees, please reassing this bug to the udev maintainer or to the bug
wranglers.
Comment 12 Shyam Mani (RETIRED) gentoo-dev 2005-07-11 21:21:04 UTC
(In reply to comment #11)
> also troubleshooting guides which treat those problems). So, if the problem
> indeed exists, it should be solved by the udev installation process
> automatically and not by manual tricks (like deleting /dev/.devsfd).
> I everyone agrees, please reassing this bug to the udev maintainer or to the bug
> wranglers.

Alin, RC_DEVICE_TARBALL was set to yes, which caused the .devfsd file to be
saved. So, there is no bug as such. And the guide did specify that
RC_DEVICE_TARBALL had to be set to no. Hence I see no point in re-assigning....

Comment 13 Robert Baxter 2005-07-12 00:21:19 UTC
I converted one other box to udev tonight and had the same result as before,
most of these are 1-2+ year old installs. After setting the RC_DEVICE_TARBALL
var to no, it seems to have started with a fresh /dev and fixed itself.
The "If you want to use the udev-tweaks Gentoo added to make your life
comfortable, then read no more." statement is still a little misleading, but
that's okay. Thanks to everyone for clearing that up for me, and take it easy. =)