From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Prakash K. Cheemplavam" Date: Sat, 13 Mar 2004 09:34:07 +0000 Subject: Re: [ANNOUNCE] udev 021 release Message-Id: <4052D58F.40104@gmx.de> List-Id: References: <20040303000957.GA11755@kroah.com> <404F1085.5080808@gmx.de> <20040310225114.GD24336@kroah.com> <404FA1F8.9060306@gmx.de> <20040311012127.GC11828@kroah.com> In-Reply-To: <20040311012127.GC11828@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Greg KH Cc: linux-hotplug-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org Greg KH wrote: > On Thu, Mar 11, 2004 at 12:17:12AM +0100, Prakash K. Cheemplavam wrote: > >>Greg KH wrote: >> >>>On Wed, Mar 10, 2004 at 01:56:37PM +0100, Prakash K. Cheemplavam wrote: >>> >>>>I have a problem with udev and my ZIP drive (using latest mm based >>>>kernel): >>>> >>>>When I insert a zip the /dev for the partition doesn't get created (ie >>>>hdd4, fdisk shows it though). > > See the manpage for udev and look at the NAME{all_partitions} section. > Well, I tried several variatons of following rule: SYSFS{dev}="22:64", KERNEL="hdd", NAME{all_partitions}="hdd%n" But no partitions popped up. I searched a bit in lkml and some time ago, there was a thread about a jaz drive with the same problem. It rather seems udev doesn't see the partitions appearing or I do something wrong. For the time being I just put this into my local.start: mknod -m 660 /dev/hdd4 b 22 68 chown root:disk hdd4 If you are sure udev should hanlde it, it would be nice if you kick me a bit further into the right direction... Prakash PS:udevinfo -a -p /sys/block/hdd/ udevinfo starts with the device the node belongs to and then walks up the device chain to print for every device found all possibly useful attributes in the udev key format. Only attributes within one device section may be used in a rule to match the device for which the node will be created. device '/sys/block/hdd' has major:minor 22:64 looking at class device '/sys/block/hdd': SYSFS{dev}="22:64" SYSFS{range}="64" SYSFS{size}="196608" SYSFS{stat}=" 35 0 42 747 0 0 0 0 0 747 747" follow the class device's "device" looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/ide1/1.1': BUS="ide" ID="1.1" SYSFS{detach_state}="0" looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0/ide1': BUS="" ID="ide1" SYSFS{detach_state}="0" looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.0': BUS="pci" ID="0000:00:09.0" SYSFS{detach_state}="0" SYSFS{vendor}="0x10de" SYSFS{device}="0x0065" SYSFS{subsystem_vendor}="0x147b" SYSFS{subsystem_device}="0x1c00" SYSFS{class}="0x01018a" SYSFS{irq}="0" looking at the device chain at '/sys/devices/pci0000:00': BUS="" ID="pci0000:00" SYSFS{detach_state}="0" ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ 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