CD not recognised by udev
Hello,
I've got Discworld II game, which is safedisc protected and maybe for that reason not recognised by udev (udevmonitor doesn't display any info when one of those cd's is inserted). Manual mount works fine though, but it's not a sollution for me. I need the cd's to be automounted, cause I have to switch cd's during gameplay, and it's impossible with the mount command.
Signature · 12 lines
Best regards, karaluh ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 6 lines · karaluh
Hello,
I've got Discworld II game, which is safedisc protected and maybe for that reason not recognised by udev (udevmonitor doesn't display any info when one of those cd's is inserted). Manual mount works fine though, but it's not a sollution for me. I need the cd's to be automounted, cause I have to switch cd's during gameplay, and it's impossible with the mount command.
Wrong list. Udev never mounts CDs, this is the task of gnome-volume-manager, its KDE equivalent, or ivman (that rely on HAL to get the correct information for mounting).
Signature · 12 lines
Alexander E. Patrakov ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Dnia niedziela 04 luty 2007, napisałeś:
Quoted 7 lines
Quoted 6 lines
I've got Discworld II game, which is safedisc protected and maybe for that reason not recognised by udev (udevmonitor doesn't display any info when one of those cd's is inserted). Manual mount works fine though, but it's not a sollution for me. I need the cd's to be automounted, cause I have to switch cd's during gameplay, and it's impossible with the mount command.
Wrong list. Udev never mounts CDs,
Yes, I know that. But when I insert any data cd I get info in udevmonitor simmilar to:
UEVENT[1170612782.483192] mount@/block/hda
UDEV [1170612782.491127] mount@/block/hda
and when I insert Discworld II cds I get no info. So I thought this is the reason for not geting those cds automounted by HAL.
Quoted 2 lines
this is the task of gnome-volume-manager, its KDE equivalent, or ivman (that rely on HAL to get the correct information for mounting).
I'll go bothering the HAL dev team then, just dispel my doubts and confirm that it's definitely not udev's fault.
Signature · 12 lines
Best regards, karaluh ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 4 lines · karaluh
Yes, I know that. But when I insert any data cd I get info in udevmonitor simmilar to:
UEVENT[1170612782.483192] mount@/block/hda
UDEV [1170612782.491127] mount@/block/hda
Those are mount events (not add or remove). They show up in response to a mount, not to cause one. (Just like add and remove events appear in response to hardware or modules or whatever being added or removed.)
-------------------------------------------------------------------------
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&kid=120709&bid=263057&dat=121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 5 lines · karaluh
I've got Discworld II game, which is safedisc protected and maybe for that reason not recognised by udev (udevmonitor doesn't display any info when one of those cd's is inserted). Manual mount works fine though, but it's not a sollution for me. I need the cd's to be automounted, cause I have to switch cd's during gameplay, and it's impossible with the mount command.
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?
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 7 lines · Kay Sievers
Quoted 6 lines · karaluh
I've got Discworld II game, which is safedisc protected and maybe for that reason not recognised by udev (udevmonitor doesn't display any info when one of those cd's is inserted). Manual mount works fine though, but it's not a sollution for me. I need the cd's to be automounted, cause I have to switch cd's during gameplay, and it's impossible with the mount command.
Quoted 6 lines
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.
Signature · 12 lines
Best regards, karaluh ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 8 lines · karaluh
Quoted 7 lines · Kay Sievers
Quoted 6 lines · karaluh
I've got Discworld II game, which is safedisc protected and maybe for that reason not recognised by udev (udevmonitor doesn't display any info when one of those cd's is inserted). Manual mount works fine though, but it's not a sollution for me. I need the cd's to be automounted, cause I have to switch cd's during gameplay, and it's impossible with the mount command.
Quoted 8 lines
Quoted 6 lines
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?
You replaced the XXX with your device name? :)
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 6 lines · Kay Sievers
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I've got Discworld II game, which is safedisc protected and maybe for that reason not recognised by udev (udevmonitor doesn't display any info when one of those cd's is inserted). Manual mount works fine though, but it's not a sollution for me. I need the cd's to be automounted, cause I have to switch cd's during gameplay, and it's impossible with the mount command.
Quoted 8 lines
Quoted 7 lines
Quoted 6 lines
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.
Quoted 1 line
You replaced the XXX with your device name? :)
Of course I did :). If I didn't I would end up with an error anyway.
Signature · 13 lines
Best regards, karaluh ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 14 lines · Kay Sievers
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
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?Quoted 8 lines
Quoted 2 lines
Quoted 1 line
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 fromvol_id. I don't know if that's normal. I even tried -t -l -u switches, but without result.
Quoted 3 lines
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 00001000
Signature · 14 lines
Best regards, karaluh ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 49 lines · karaluh
Quoted 14 lines · Kay Sievers
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
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?Quoted 8 lines
Quoted 2 lines
Quoted 1 line
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 fromvol_id. I don't know if that's normal. I even tried -t -l -u switches, but without result.Quoted 3 lines
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 |................|
Quoted 4 lines
*
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Dnia środa 07 luty 2007, napisałeś:
Quoted 2 lines
Hmm, don't know why this isn't recognized. What udev version and what distro is it?
093, Kubuntu Edgy.
Quoted 4 lines
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.
Done.
Signature · 12 lines
Best regards, karaluh ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 4 lines · karaluh
Dnia środa 07 luty 2007, napisałeś:
Quoted 2 lines
Hmm, don't know why this isn't recognized. What udev version and what distro is it?
Quoted 8 lines
093, Kubuntu Edgy.
Quoted 4 lines
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.Done.
The trace contains:
20:39:50 close(4) = 0 20:39:50 setgroups32(0, []) = -1 EPERM (Operation not permitted) 20:39:50 close(3) = 0
20:39:50 exit_group(3)
where setgroups() fails. Are you running the command as root?
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel