chiark / gitweb /
[PATCH] add hints for red hat users from Leann Ogasawara <ogasawara@osdl.org>
[elogind.git] / docs / rh_udev_for_dev.txt
1 Troubleshooting udev for dev on Red Hat distro
2
3 1) Make sure you have a rescue disk/cd in case you hose your machine.  You've
4    been forewarned.
5 2) Grab latest udev tarball or clone udev bitkeeper tree
6    (bk://linuxusb.bkbits.net.udev)
7 3) Follow README and HOWTO-udev_for_dev documents
8
9 The following is some additional help to get udev for dev up and running on RH.
10
11 Q.  I login as my normal self from the login screen and RH just hangs on an
12     empty blue screen.  What's wrong?
13
14 A.  You have some wrong permissions.  I'm guessing you can probably log in as root
15     but not as your normal user.  Basically you need to edit the
16     /etc/udev/udev.permissions file to set the correct permissions to the nodes
17     in /dev.  I added the following:
18
19     null:root:users:0666
20     urandom:root:users:0644
21
22     setting the correct permissions to null and urandom allowed me to login
23     as myself and not at root.
24
25     While you are there you might want to set the permissions to ptmx as well
26     or you may have trouble getting a bash prompt in an xterm.  i.e.
27     ptmx:root:users:0666  Also refer to the next question.
28
29 Q.  I'm having trouble getting a bash prompt from my xterm.  i.e. I bring up a
30     terminal and all I have is a blank screen with a blinking cursor.
31
32 A.  First make sure you have the correct permissions set for ptmx.  See above
33     Q&A for help on this.  But I'm guessing that something is wrong with your
34     /dev/pts, thanks Captain Obvious, heh:)  You probably have devpts mounted
35     to /dev/pts from /etc/fstab.  I'm also guessing that you have sysfs mounted
36     to /sys from /etc/fstab as well.  If this is the case then the line in
37     /etc/rc.sysinit
38
39     action $"Mounting local filesystems:" mount -a -t nonfs,smbfs,ncpfs -O no_netdev
40
41     will have mounted these for you.  As a result you placed your call to
42     start_udev directly after this because the HOWTO-udev_for_dev document
43     told you to insert start_udev after /proc and /sys have been mounted.
44     Well start_udev actually overwrites /dev thus anything you had mounted in
45     /dev prior to start_udev being called will be blown away.  So basically,
46     you mounted devpts to /dev/pts because everything in /etc/fstab was mounted
47     and then it was blown away by calling start_udev.  A simple fix is to remove
48     the mount devpts line from /etc/fstab and mount it after calling start_udev.
49     I did the following:
50
51     action $"Mounting local filesystems:" mount -a -t nonfs,smbfs,ncpfs -O no_netdev
52     /etc/rc.d/start_udev
53     action $"Mounting devpts: " mount -t devpts none /dev/pts
54
55     After doing so I rebooted and was able to get my prompt from my xterm.
56
57 Q.  I'm getting some error messages during boot.  How do I get rid of them?
58
59 A.  For me it was a matter of setting up Symlinks.  Basically, some /dev entries
60     were being looked for and not being found so an error was thrown.  For example,
61     /dev/cdrom was needed but udev had named it /dev/hdc by default.  Basically I
62     edited my /etc/udev/udev.rules file to create a symlink from /dev/cdrom to
63     /dev/hdc and my error went away.
64
65 These are some of the things I ran into.  NOTE:  I hosed my machine more than once
66 trying to figure this out and a rescue disk was my best friend.  If you have any
67 other experiences and would like to add to this Q&A list feel free to send me a
68 patch (ogasawara@osdl.org).  Hopefully this helped someone.  Thanks.