From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Mansfield Date: Sat, 01 Oct 2005 00:30:02 +0000 Subject: Re: gerneral question for linux-2.6 and udev and hotplug Message-Id: <20051001003002.GA20468@us.ibm.com> List-Id: References: <11E3973D1E78D311A5B400508B4A70CE02B3CEE1@COMSRVR> In-Reply-To: <11E3973D1E78D311A5B400508B4A70CE02B3CEE1@COMSRVR> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Sep 30, 2005 at 10:51:55AM -0400, Gavin Li wrote: > All, > > I am trying migrate to 2.6 kernel from 2.4. I didn't read the full problem report, but: Why don't you install FC4, and go from there? FC3 is already old, and AFAICT it is at kernel 2.6.12-1.1378, that is quite a ways past the 667 you mention. -- Patrick Mansfield > I copied RedHat FC3 kernel binary vmlinuz-2.6.9-1.667 to my harddrive, and > /bin /sbin and /lib /usr/ are also copied. > I didn't copy /etc to my harddrive, I installed hotplug-2004_09_23 to my > /etc > In my /etc/inittab, I set start script to my own start script, which is > /etc/rc.d/rcS > this file is: > #!/bin/bash > kill_init=`ls /dev | grep -c tty` > if [ $kill_init -eq 0 ]; then > clear > mount -n -t proc /proc /proc > [ -d /proc/bus/usb ] && mount -n -t usbfs /usbfs /proc/bus/usb > mount -n -t sysfs /sys /sys > mount -n -t tmpfs /dev /dev modeu5 > mkdir -p /dev/shm /dev/pts > mount -n -t tmpfs /devshm /dev/shm > mount -n -t devpts -o gid=5,modeb0 /devpts /dev/pts > echo /sbin/udevsend > /proc/sys/kernel/hotplug > udevstart > kill -HUP 1 2>&1 > /dev/null > sleep 12 > fi > > PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin > export PATH > ln -s /proc/self/fd /dev/fd > ln -s /proc/self/fd/0 /dev/stdin > ln -s /proc/self/fd/1 /dev/stdout > ln -s /proc/self/fd/2 /dev/stderr > ln -s /proc/kcore /dev/core > mount -t tmpfs /dev/ram0 /tmp > cd /var && tar -cf /tmp/var.tar * && cd / > mount -t tmpfs /dev/ram1 /var > cd /var && tar -xf /tmp/var.tar && cd / > > > > My problem is: > when I plug in a USB flash drive, nothing happened, I can't find hotplug is > working > > Then I change echo /sbin/udevsend > /proc/sys/kernel/hotplug to echo > /sbin/mytest > /proc/sys/kernel/hotplug > > and mytest script is : > echo "starting hotplug" > /tmp/tmp.txt > > then I do plug/unplug USB flash drive, the file size of /tmp/tmp.txt is 0, > which means mytest script is never got executed. > > Anything I did wrong? or do I miss something > > One more question:If I use udev-070, do I still need to compile and install > sysfsutils and/or sysutils? > > Regards, ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ 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