From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robby Workman Date: Tue, 18 Sep 2007 19:12:23 +0000 Subject: Re: Writing udev Rules by Daniel Drake (dsd) Version 0.72 Message-Id: <46F02317.5090403@rlworkman.net> List-Id: References: <46F015F6.6030908@xplornet.com> In-Reply-To: <46F015F6.6030908@xplornet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Rick Pizzi wrote: > Hi, > I have been trying to follow subject Daniel Drakes instructions on how > to have various devices on my Ubuntu Feisty system mount with > persistent names. As an example the attached dmesgSDB file shows my > 'U3 Cruzer Micro' as sdb. The udevSDB attached file shows the result > of the command: > "*sudo udevinfo -a -p $(udevinfo -q path -n /dev/sdb)*". I note there is > no *SYSFS *attributes only *ATTRS*. Also there is no place that > *BUS="usb" *shows up, only *KERNELS="4.4"*. I have cobbled up a rule > attached as *10-local.rules* which, of course, does not work when I > re-boot my computer. The attached file *udevtestSDB* mentions U3 Cruzer > Micro so something is trying to work, I guess. > > Can you help me by explaining what is going on here? Why doesn't > udevinfo show information like Daniel's article shows? How do I use > the attributes from *usbview*? Usbview shows information such as: > Manufacturer: SanDisk Corporation, Product Id:5406 etc. I think this is closer to what you want -- note that the rule contents come from the udevinfo output. Also note that I didn't change the NAME of the device node assigned - that's just not a good idea IMHO. SUBSYSTEMS="usb", \ ATTRS{serial}="0000160EF172FFE1", \ ATTRS{product}="U3 Cruzer Micro", \ ATTRS{manufacturer}="SanDisk Corporation", \ NAME="%k", SYMLINK+="MICRO2GB" -RW ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ 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