chiark / gitweb /
fic gcov use and move it into the Makefile
[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 set the right
16     permissions with a rule. Setting the correct permissions to null and urandom
17     allowed me to login as myself and not at root.
18
19     While you are there you might want to set the permissions to ptmx as well
20     or you may have trouble getting a bash prompt in an xterm. Also refer to the
21     next question.
22
23 Q.  I'm having trouble getting a bash prompt from my xterm.  i.e. I bring up a
24     terminal and all I have is a blank screen with a blinking cursor.
25
26 A.  First make sure you have the correct permissions set for ptmx.  See above
27     Q&A for help on this.  But I'm guessing that something is wrong with your
28     /dev/pts, thanks Captain Obvious, heh:)  You probably have devpts mounted
29     to /dev/pts from /etc/fstab.  I'm also guessing that you have sysfs mounted
30     to /sys from /etc/fstab as well.  If this is the case then the line in
31     /etc/rc.sysinit
32
33     action $"Mounting local filesystems:" mount -a -t nonfs,smbfs,ncpfs -O no_netdev
34
35     will have mounted these for you.  As a result you placed your call to
36     start_udev directly after this because the HOWTO-udev_for_dev document
37     told you to insert start_udev after /proc and /sys have been mounted.
38     Well start_udev actually overwrites /dev thus anything you had mounted in
39     /dev prior to start_udev being called will be blown away.  So basically,
40     you mounted devpts to /dev/pts because everything in /etc/fstab was mounted
41     and then it was blown away by calling start_udev.  A simple fix is to remove
42     the mount devpts line from /etc/fstab and mount it after calling start_udev.
43     I did the following:
44
45     action $"Mounting local filesystems:" mount -a -t nonfs,smbfs,ncpfs -O no_netdev
46     /etc/rc.d/start_udev
47     action $"Mounting devpts: " mount -t devpts none /dev/pts
48
49     After doing so I rebooted and was able to get my prompt from my xterm.
50
51 Q.  I'm getting some error messages during boot.  How do I get rid of them?
52
53 A.  For me it was a matter of setting up Symlinks.  Basically, some /dev entries
54     were being looked for and not being found so an error was thrown.  For example,
55     /dev/cdrom was needed but udev had named it /dev/hdc by default.  Basically I
56     edited my /etc/udev/udev.rules file to create a symlink from /dev/cdrom to
57     /dev/hdc and my error went away.
58
59 These are some of the things I ran into.  NOTE:  I hosed my machine more than once
60 trying to figure this out and a rescue disk was my best friend.  If you have any
61 other experiences and would like to add to this Q&A list feel free to send me a
62 patch (ogasawara@osdl.org).  Hopefully this helped someone.  Thanks.