From mboxrd@z Thu Jan 1 00:00:00 1970 From: Franco Martelli Date: Wed, 21 Nov 2012 15:55:30 +0000 Subject: udevadm monitor and atapi dvdrw Message-Id: <50ACF972.5020409@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi everybody, I'm using Debian Sqeeze 6.0, kernel 2.6.32, udev version 164. With kernel provided from debian my dvdrw is under scsi subsystem and udevadm monitor recognize optical disk change with a lot of info output suitable to write rules. I've recompilated the kernel and things has changed, now my dvdrw is under ide/atapi subsystem and the device name is hdc now. I'd like to write a rule that remove udf and crc_itu_t modules as soon as optical disk is left off from dvdrw drive. Example: SUBSYSTEM="block", KERNEL="hdc", ACTION="change", RUN+="/sbin/rmmod udf crc_itu_t" I look at http://reactivated.net/writing_udev_rules.html but doesn't help for ide devices ACTION="change". Could anybody help me to write such a rule? bye, -- Franco Martelli.