From: "Kay Sievers" Date: Fri, 03 Oct 2008 13:36:14 +0000 Subject: Re: ide dvd burner detected as ide-tape Message-Id: List-Id: References: <200810010100.06299.th@drillich.com> In-Reply-To: <200810010100.06299.th@drillich.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Oct 3, 2008 at 3:27 PM, Thomas Drillich wrote: > I did some more research on the LG GH22LP20 DVD burner > http://www.lge.com/products/model/detail/gh22lp20.jhtml > >>udevinfo -a -p /sys/class/ide_port/ide0/device/0.0 > looking at device '/devices/pci0000:00/0000:00:1f.0/ide0/0.0': > KERNEL="0.0" > SUBSYSTEM="ide" > DRIVER="" > ATTR{media}="tape" > ATTR{drivename}="hda" > ATTR{modalias}="ide:m-tape" > ATTR{model}="HL)DP-ST@V@-RAI CH22HP20" > ATTR{firmware}="1.00" > ATTR{serial}="" > >>udevadm test /sys/class/ide_port/ide0/device/0.0 > -- snipp > import_uevent_var: import into environment: 'PHYSDEVBUS=ide' > import_uevent_var: import into environment: 'MEDIA=tape' > import_uevent_var: import into environment: 'DRIVENAME=hda' > import_uevent_var: import into environment: 'MODALIAS=ide:m-tape' > udevtest: looking at device '/class/ide_port/ide0/device/0.0' from > subsystem 'ide' > udevtest: run: '/sbin/modprobe --use-blacklist ide:m-tape' > udevtest: run: '/sbin/modprobe ide-scsi' > udevtest: run: 'socket:/org/freedesktop/hal/udev_event' > udevtest: run: 'socket:@/org/kernel/udev/monitor' > --end snipp > > > could you help me to write a correct rule ? What udev rule? It's the kernel which need to know that this device isn't a tape but an optical drive. :) Kay