* udev 147 (ata_id) blanks RW media
@ 2009-11-19 13:33 Christoph Stritt
2009-11-19 13:55 ` Marco d'Itri
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: Christoph Stritt @ 2009-11-19 13:33 UTC (permalink / raw)
To: linux-hotplug
Hi,
im forwarding this bug since it is udev ata_id that is causing it:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bugU6635
(i hope its ok to do it this way)
verified myself on debian sid but with custom kernel 2.6.31.2:
udev 146 ata_id:
========
# ./ata_id /dev/hdb
TSSTcorpCD_DVDW_TS-L632B_95RB404055
# ./ata_id --export /dev/hdb
ID_TYPEÍ
ID_BUS=ata
ID_MODEL=TSSTcorpCD_DVDW_TS-L632B
ID_MODEL_ENC=TSSTcorpCD\x2fDVDW\x20TS-L632B
ID_REVISION=TM31
ID_SERIAL=TSSTcorpCD_DVDW_TS-L632B_95RB404055
ID_SERIAL_SHORT•RB404055
udev 147 ata_id:
========
# ./ata_id /dev/hdb
-> rw media gets blanked completely (like wodim -blank=all)
.. which is particularly annoying when you are booting of it ..
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: udev 147 (ata_id) blanks RW media
2009-11-19 13:33 udev 147 (ata_id) blanks RW media Christoph Stritt
@ 2009-11-19 13:55 ` Marco d'Itri
2009-11-19 14:29 ` Christoph Stritt
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Marco d'Itri @ 2009-11-19 13:55 UTC (permalink / raw)
To: linux-hotplug
On Nov 19, Christoph Stritt <phoenix@jobob.com> wrote:
> im forwarding this bug since it is udev ata_id that is causing it:
Again: please try to reproduce the issue after booting with
init=/bin/bash and running ata_id from the command line with no udevd
process running.
--
ciao,
Marco
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: udev 147 (ata_id) blanks RW media
2009-11-19 13:33 udev 147 (ata_id) blanks RW media Christoph Stritt
2009-11-19 13:55 ` Marco d'Itri
@ 2009-11-19 14:29 ` Christoph Stritt
2009-11-19 14:48 ` Christoph Stritt
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Christoph Stritt @ 2009-11-19 14:29 UTC (permalink / raw)
To: linux-hotplug
Marco d'Itri wrote:
>> im forwarding this bug since it is udev ata_id that is causing it:
> Again: please try to reproduce the issue after booting with
> init=/bin/bash and running ata_id from the command line with no udevd
> process running.
>
sorry for not mentioning it, but that IS how i tested it.
Well, with init=/bin/sh.
With my old boot disk, kernel 2.6.24.4, it happens aswell.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: udev 147 (ata_id) blanks RW media
2009-11-19 13:33 udev 147 (ata_id) blanks RW media Christoph Stritt
2009-11-19 13:55 ` Marco d'Itri
2009-11-19 14:29 ` Christoph Stritt
@ 2009-11-19 14:48 ` Christoph Stritt
2009-11-19 14:51 ` Kay Sievers
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Christoph Stritt @ 2009-11-19 14:48 UTC (permalink / raw)
To: linux-hotplug
Having a quick look at extras/ata_id.c i'd guess it has to do something with
line 85:
cdb[0] = 0xa1; /* OPERATION CODE: 12 byte pass through */
since 0xa1 is the command for blanking aswell. Smells fishy.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: udev 147 (ata_id) blanks RW media
2009-11-19 13:33 udev 147 (ata_id) blanks RW media Christoph Stritt
` (2 preceding siblings ...)
2009-11-19 14:48 ` Christoph Stritt
@ 2009-11-19 14:51 ` Kay Sievers
2009-11-19 15:08 ` Kay Sievers
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Kay Sievers @ 2009-11-19 14:51 UTC (permalink / raw)
To: linux-hotplug
On Thu, Nov 19, 2009 at 15:29, Christoph Stritt <phoenix@jobob.com> wrote:
> Marco d'Itri wrote:
>
>>> im forwarding this bug since it is udev ata_id that is causing it:
>> Again: please try to reproduce the issue after booting with
>> init=/bin/bash and running ata_id from the command line with no udevd
>> process running.
>>
>
> sorry for not mentioning it, but that IS how i tested it.
> Well, with init=/bin/sh.
>
> With my old boot disk, kernel 2.6.24.4, it happens aswell.
Hmm, I have a:
INQUIRY: [TSSTcorp][CDDVDW SE-S084B ][TS01]
here, and it seems not to not kill any RW media.
It's maybe caused by the recently added ATA queries:
http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;hf094a4a7fc1d303e80785d586800eae9841502b
Any chance to try if the same happens with the current libata drivers
(sr0) instead of the now deprecated IDE drivers (hdb)?
Thanks,
Kay
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: udev 147 (ata_id) blanks RW media
2009-11-19 13:33 udev 147 (ata_id) blanks RW media Christoph Stritt
` (3 preceding siblings ...)
2009-11-19 14:51 ` Kay Sievers
@ 2009-11-19 15:08 ` Kay Sievers
2009-11-19 18:03 ` Christoph Stritt
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Kay Sievers @ 2009-11-19 15:08 UTC (permalink / raw)
To: linux-hotplug
On Thu, Nov 19, 2009 at 15:51, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Thu, Nov 19, 2009 at 15:29, Christoph Stritt <phoenix@jobob.com> wrote:
>> Marco d'Itri wrote:
>>
>>>> im forwarding this bug since it is udev ata_id that is causing it:
>>> Again: please try to reproduce the issue after booting with
>>> init=/bin/bash and running ata_id from the command line with no udevd
>>> process running.
>>>
>>
>> sorry for not mentioning it, but that IS how i tested it.
>> Well, with init=/bin/sh.
>>
>> With my old boot disk, kernel 2.6.24.4, it happens aswell.
>
> Hmm, I have a:
> INQUIRY: [TSSTcorp][CDDVDW SE-S084B ][TS01]
> here, and it seems not to not kill any RW media.
>
> It's maybe caused by the recently added ATA queries:
> http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;hf094a4a7fc1d303e80785d586800eae9841502b
>
> Any chance to try if the same happens with the current libata drivers
> (sr0) instead of the now deprecated IDE drivers (hdb)?
It would be still interesting to know, if the same happens with the
new drivers. But it would not happen by default, because we do not run
ata_id on optical drives with the libata drivers.
Thanks,
Kay
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: udev 147 (ata_id) blanks RW media
2009-11-19 13:33 udev 147 (ata_id) blanks RW media Christoph Stritt
` (4 preceding siblings ...)
2009-11-19 15:08 ` Kay Sievers
@ 2009-11-19 18:03 ` Christoph Stritt
2009-11-19 18:24 ` Kay Sievers
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Christoph Stritt @ 2009-11-19 18:03 UTC (permalink / raw)
To: linux-hotplug
Kay Sievers wrote:
> On Thu, Nov 19, 2009 at 15:51, Kay Sievers <kay.sievers@vrfy.org> wrote:
>> On Thu, Nov 19, 2009 at 15:29, Christoph Stritt <phoenix@jobob.com> wrote:
>>> Marco d'Itri wrote:
>>>
>>>>> im forwarding this bug since it is udev ata_id that is causing it:
>>>> Again: please try to reproduce the issue after booting with
>>>> init=/bin/bash and running ata_id from the command line with no udevd
>>>> process running.
>>>>
>>> sorry for not mentioning it, but that IS how i tested it.
>>> Well, with init=/bin/sh.
>>>
>>> With my old boot disk, kernel 2.6.24.4, it happens aswell.
>> Hmm, I have a:
>> INQUIRY: [TSSTcorp][CDDVDW SE-S084B ][TS01]
>> here, and it seems not to not kill any RW media.
>>
>> It's maybe caused by the recently added ATA queries:
>> http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;hf094a4a7fc1d303e80785d586800eae9841502b
>>
>> Any chance to try if the same happens with the current libata drivers
>> (sr0) instead of the now deprecated IDE drivers (hdb)?
>
> It would be still interesting to know, if the same happens with the
> new drivers. But it would not happen by default, because we do not run
> ata_id on optical drives with the libata drivers.
I changed my Kernel to libata+ata_piix (intel ich6). Only change is that it
doesn't get erased on boot, as you stated.
# ./ata_id /dev/sr0 blanks the disk as it did with the older ata drivers (hdb).
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: udev 147 (ata_id) blanks RW media
2009-11-19 13:33 udev 147 (ata_id) blanks RW media Christoph Stritt
` (5 preceding siblings ...)
2009-11-19 18:03 ` Christoph Stritt
@ 2009-11-19 18:24 ` Kay Sievers
2009-11-20 2:11 ` Kay Sievers
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Kay Sievers @ 2009-11-19 18:24 UTC (permalink / raw)
To: linux-hotplug
On Thu, Nov 19, 2009 at 19:03, Christoph Stritt <phoenix@jobob.com> wrote:
> Kay Sievers wrote:
>> On Thu, Nov 19, 2009 at 15:51, Kay Sievers <kay.sievers@vrfy.org> wrote:
>>> On Thu, Nov 19, 2009 at 15:29, Christoph Stritt <phoenix@jobob.com> wrote:
>>>> Marco d'Itri wrote:
>>>>
>>>>>> im forwarding this bug since it is udev ata_id that is causing it:
>>>>> Again: please try to reproduce the issue after booting with
>>>>> init=/bin/bash and running ata_id from the command line with no udevd
>>>>> process running.
>>>>>
>>>> sorry for not mentioning it, but that IS how i tested it.
>>>> Well, with init=/bin/sh.
>>>>
>>>> With my old boot disk, kernel 2.6.24.4, it happens aswell.
>>> Hmm, I have a:
>>> INQUIRY: [TSSTcorp][CDDVDW SE-S084B ][TS01]
>>> here, and it seems not to not kill any RW media.
>>>
>>> It's maybe caused by the recently added ATA queries:
>>> http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;hf094a4a7fc1d303e80785d586800eae9841502b
>>>
>>> Any chance to try if the same happens with the current libata drivers
>>> (sr0) instead of the now deprecated IDE drivers (hdb)?
>>
>> It would be still interesting to know, if the same happens with the
>> new drivers. But it would not happen by default, because we do not run
>> ata_id on optical drives with the libata drivers.
>
> I changed my Kernel to libata+ata_piix (intel ich6). Only change is that it
> doesn't get erased on boot, as you stated.
> # ./ata_id /dev/sr0 blanks the disk as it did with the older ata drivers (hdb).
Ok, something to look into. Thanks a lot for the tests!
Kay
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: udev 147 (ata_id) blanks RW media
2009-11-19 13:33 udev 147 (ata_id) blanks RW media Christoph Stritt
` (6 preceding siblings ...)
2009-11-19 18:24 ` Kay Sievers
@ 2009-11-20 2:11 ` Kay Sievers
2009-11-20 10:07 ` Christoph Stritt
2009-11-20 13:56 ` Lennart Poettering
9 siblings, 0 replies; 11+ messages in thread
From: Kay Sievers @ 2009-11-20 2:11 UTC (permalink / raw)
To: linux-hotplug
On Thu, Nov 19, 2009 at 19:24, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Thu, Nov 19, 2009 at 19:03, Christoph Stritt <phoenix@jobob.com> wrote:
>> Kay Sievers wrote:
>>> On Thu, Nov 19, 2009 at 15:51, Kay Sievers <kay.sievers@vrfy.org> wrote:
>>>> On Thu, Nov 19, 2009 at 15:29, Christoph Stritt <phoenix@jobob.com> wrote:
>>>>> Marco d'Itri wrote:
>>>>>
>>>>>>> im forwarding this bug since it is udev ata_id that is causing it:
>>>>>> Again: please try to reproduce the issue after booting with
>>>>>> init=/bin/bash and running ata_id from the command line with no udevd
>>>>>> process running.
>>>>>>
>>>>> sorry for not mentioning it, but that IS how i tested it.
>>>>> Well, with init=/bin/sh.
>>>>>
>>>>> With my old boot disk, kernel 2.6.24.4, it happens aswell.
>>>> Hmm, I have a:
>>>> INQUIRY: [TSSTcorp][CDDVDW SE-S084B ][TS01]
>>>> here, and it seems not to not kill any RW media.
>>>>
>>>> It's maybe caused by the recently added ATA queries:
>>>> http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;hf094a4a7fc1d303e80785d586800eae9841502b
>>>>
>>>> Any chance to try if the same happens with the current libata drivers
>>>> (sr0) instead of the now deprecated IDE drivers (hdb)?
>>>
>>> It would be still interesting to know, if the same happens with the
>>> new drivers. But it would not happen by default, because we do not run
>>> ata_id on optical drives with the libata drivers.
>>
>> I changed my Kernel to libata+ata_piix (intel ich6). Only change is that it
>> doesn't get erased on boot, as you stated.
>> # ./ata_id /dev/sr0 blanks the disk as it did with the older ata drivers (hdb).
>
> Ok, something to look into. Thanks a lot for the tests!
For now, I've added a check if the device is an optical drive, which
should prevent this from happening.
Thanks,
Kay
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: udev 147 (ata_id) blanks RW media
2009-11-19 13:33 udev 147 (ata_id) blanks RW media Christoph Stritt
` (7 preceding siblings ...)
2009-11-20 2:11 ` Kay Sievers
@ 2009-11-20 10:07 ` Christoph Stritt
2009-11-20 13:56 ` Lennart Poettering
9 siblings, 0 replies; 11+ messages in thread
From: Christoph Stritt @ 2009-11-20 10:07 UTC (permalink / raw)
To: linux-hotplug
Hi,
> For now, I've added a check if the device is an optical drive, which
> should prevent this from happening.
good! saving countless bits from beeing eliminated >)
It might be better though, if i may add this proposal, to check the availability
of ata passthrough, e.g. like in sg_sat_identify.
regards
cs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: udev 147 (ata_id) blanks RW media
2009-11-19 13:33 udev 147 (ata_id) blanks RW media Christoph Stritt
` (8 preceding siblings ...)
2009-11-20 10:07 ` Christoph Stritt
@ 2009-11-20 13:56 ` Lennart Poettering
9 siblings, 0 replies; 11+ messages in thread
From: Lennart Poettering @ 2009-11-20 13:56 UTC (permalink / raw)
To: linux-hotplug
On Fri, 20.11.09 11:07, Christoph Stritt (phoenix@jobob.com) wrote:
heya,
> > For now, I've added a check if the device is an optical drive, which
> > should prevent this from happening.
> good! saving countless bits from beeing eliminated >)
>
> It might be better though, if i may add this proposal, to check the availability
> of ata passthrough, e.g. like in sg_sat_identify.
Unfortunately most ob the USB bridges I know that support SAT don't
support the detection page which can be used to find out whether SAT
is supported.
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-11-20 13:56 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 13:33 udev 147 (ata_id) blanks RW media Christoph Stritt
2009-11-19 13:55 ` Marco d'Itri
2009-11-19 14:29 ` Christoph Stritt
2009-11-19 14:48 ` Christoph Stritt
2009-11-19 14:51 ` Kay Sievers
2009-11-19 15:08 ` Kay Sievers
2009-11-19 18:03 ` Christoph Stritt
2009-11-19 18:24 ` Kay Sievers
2009-11-20 2:11 ` Kay Sievers
2009-11-20 10:07 ` Christoph Stritt
2009-11-20 13:56 ` Lennart Poettering
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).