From: "Kay Sievers" Date: Wed, 07 Feb 2007 21:52:09 +0000 Subject: Re: CD not recognised by udev Message-Id: <3ae72650702071352i507a2d4cx5d26d77ef42edf4@mail.gmail.com> List-Id: References: <200702041752.26081.karaluh@tlen.pl> In-Reply-To: <200702041752.26081.karaluh@tlen.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: linux-hotplug@vger.kernel.org On 2/7/07, karaluh wrote: > Dnia środa 07 luty 2007, Kay Sievers napisał: > > > > > > As already pointed out, udev doesn't care about optical drives, > > > > > > because they need to be polled to get notifications about a media > > > > > > change. Anyway, HAL depends on detecting a filesystem prior to a > > > > > > possible mount. This is provided by libvolume_id. What does: > > > > > > /lib/udev/vol_id --export /dev/XXX > > > > > > print? > > > > > It doesn't print anything. It's the same for automountable cd. > > > > Huh, it doesn't even print an error? > > > I was suprised too. For one moment I thought something's wrong with the > > > vol_id, but when I execute the above command with no cd in drive I get > > > /dev/hdb: error open volume > > > which is ok I suppose. And no matter what cd is in (the problematic or a > > > regular one) I get no info from vol_id. I don't know if that's normal. I > > > even tried -t -l -u switches, but without result. > > Ok, it's not recognized as anything. What does: > > dd if=/dev/sr0 bs=1 skip2768 count@96 | hexdump -C > > print? > > I suppose you ment: > dd if=/dev/hda bs=1 skip2768 count@96 | hexdump -C > In that case it prints: > 00000000 01 43 44 30 30 31 01 00 20 20 20 20 20 20 20 20 |.CD001.. | > 00000010 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | > 00000020 20 20 20 20 20 20 20 20 44 57 32 43 44 31 5f 45 | DW2CD1_E| > 00000030 4e 47 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |NG | > 00000040 20 20 20 20 20 20 20 20 00 00 00 00 00 00 00 00 | ........| > 00000050 85 bf 04 00 00 04 bf 85 00 00 00 00 00 00 00 00 |................| > 00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > 00000070 00 00 00 00 00 00 00 00 01 00 00 01 01 00 00 01 |................| > 00000080 00 08 08 00 56 01 00 00 00 00 01 56 12 00 00 00 |....V......V....| > 00000090 13 00 00 00 00 00 00 14 00 00 00 15 22 00 16 00 |............"...| > 000000a0 00 00 00 00 00 16 00 10 00 00 00 00 10 00 60 0b |..............`.| > 000000b0 08 12 0d 20 24 02 00 00 01 00 00 01 01 00 20 20 |... $......... | > 000000c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | > * > 00000320 20 20 20 20 20 20 20 20 20 20 20 20 20 31 39 39 | 199| > 00000330 36 31 31 30 38 31 38 31 33 33 32 30 30 24 30 30 |6110818133200$00| > 00000340 30 30 30 30 30 30 30 30 30 30 30 30 30 30 00 30 |00000000000000.0| > 00000350 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 00 |000000000000000.| > 00000360 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 |0000000000000000| > 00000370 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > 00000380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > * > 00000400 43 44 2d 58 41 30 30 31 00 00 00 00 00 00 00 00 |CD-XA001........| > 00000410 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > * > 00000800 ff 43 44 30 30 31 01 00 00 00 00 00 00 00 00 00 |.CD001..........| > 00000810 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| > * > 4096+0 przeczytanych recordów > 4096+0 zapisanych recordów > skopiowane 4096 bajtów (4,1 kB), 0,017088 sekund, 240 kB/s Hmm, don't know why this isn't recognized. What udev version and what distro is it? Care to do: strace -o vol_id.trace -t -s100000 /lib/udev/vol_id --export /dev/hda and send me the created "vol_id.trace" file by private email, because it is pretty large. Thanks, Kay ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ 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