From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sun, 07 Mar 2004 12:29:42 +0000 Subject: Re: udev problems Message-Id: <1078662582.1170.5.camel@pim> List-Id: References: <200403071315.02925.michal@cihar.com> In-Reply-To: <200403071315.02925.michal@cihar.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Sun, 2004-03-07 at 13:15, Michal =C8iha=F8 wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Hi >=20 > I finally decided to give udev a try, but it was not as good as I hoped. = I=20 > have Apacer Mega Steno card reader (as well as other usb storage device) = and=20 > I wanted to have permanent name for it. Okay, lets create some rule in=20 > udev.rules and script that will generate it. Sometimes the name was gener= ated=20 > correctly and sometimes not. Afer some experiments I got three rules, tha= t=20 > seem to work (with line numbers): >=20 > 21: BUS=3D"scsi", SYSFS{vendor}=3D"Apacer ", SYSFS{model}=3D"Mega Steno = ",=20 > PROGRAM=3D"/etc/udev/apacer.sh %k %b %n", NAME=3D"%c{1}", SYMLINK=3D"%k %= c{2}=20 > %c{3}" What is this "apacer.sh" for? What's in there? > Another topic is that device does not automatically report partitions, so= man=20 > has to read appropriate device to get partitions. Most removable media devices are unable to report media changes, you have to poll the device, but thats not a udev task. So your choice is to dis-/reconnect for partition update or create all partitions if the main device is connected with NAME{all_partitions}=3D. thanks, Kay ------------------------------------------------------- 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_id=1470&alloc_id638&op=CCk _______________________________________________ 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