From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Gabor Z. Papp" Date: Sun, 06 May 2007 07:55:06 +0000 Subject: udev on real Linux from scratch Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hello, the udev FAQ pointed me to this list. Time hit me too, and started to migrating from 2.4 kernels to 2.6. :-P I have some questions that not really clear to me, I think this part of documentation could be expanded too. :-) First of all, someone could take a look at this init process and confirm me its ok, or something still wrong. Finally got working /dev directory with this setup, but I'm not sure its correct: mount -n -t proc proc /proc mount -n -t sysfs sysfs /sys echo "" > /proc/sys/kernel/hotplug mount -n -o mode55 -t tmpfs tmpfs /dev mkdir -p /dev/pts mount -n -o mode20 -t devpts devpts /dev/pts udevd --daemon udevstart My /etc/udev dir is mostly empty (only the default udev.conf exist) and will fill up the rules.d/ dir depending on my needs. I'm not starting any other udev* related program. The original /dev/ directory has only console device. Well, my another important question is, that starting udevd --daemon gives me a "cannot open /dev/null" error message. I have found this message in the udevd.c file around line 1018: /* make sure std{in,out,err} fd's are in a sane state */ fd = open("/dev/null", O_RDWR); if (fd < 0) { fprintf(stderr, "cannot open /dev/null\n"); err("cannot open /dev/null"); } Should I create /dev/null after mounting tmpfs on /dev/? Thanks for the help. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel