Skip to contentSkip to conversation

Two issues - cdrom_id and duplicate /sys entries

DISCUSSION Robby Workman 1 participant 2 messages Apr 29, 2007

lore
Share & tools
lore
#0 lore raw

First, it seems that /lib/udev/cdrom_id is not exporting correct information about the capabilities of optical media drives. This system contains a Lite-On combo cd writer / dvd reader and an NEC dvd writer drive, but the cdrom_id binary returns this for each of them:

root@isotope:/lib/udev# ./cdrom_id --export /dev/sr{0,1,2,3}
ID_CDROM=1

See http://rlworkman.net/attr-walk/ for the udevinfo attribute walks on each of the devices.

Of course, this brings up the second issue: there are only two optical drives in this box, and there are four devices created. 0 and 2 are essentially "mirrors" of one another, as are 1 and 3. Interestingly enough, after dumping the udevinfo output to the files linked above, sr1 and sr3 show different sizes, even though they are the same drive. A diff of the respective files shows a few more things that are different, but none as strange as the size difference... :/

bash-3.2$ grep size sr?-attributes

sr0-attributes:    ATTR{size}="2097151"
sr1-attributes:    ATTR{size}="4"
sr2-attributes:    ATTR{size}="2097151"
sr3-attributes:    ATTR{size}="9143552"

Ideas? :)

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw

This is on Slackware -current, but with 2.6.21 kernel and udev-109. Sorry for omitting that the first time... :/

Quoted 28 lines · Robby Workman

First, it seems that /lib/udev/cdrom_id is not exporting correct information about the capabilities of optical media drives. This system contains a Lite-On combo cd writer / dvd reader and an NEC dvd writer drive, but the cdrom_id binary returns this for each of them:

root@isotope:/lib/udev# ./cdrom_id --export /dev/sr{0,1,2,3}
ID_CDROM=1

See http://rlworkman.net/attr-walk/ for the udevinfo attribute walks on each of the devices.

Of course, this brings up the second issue: there are only two optical drives in this box, and there are four devices created. 0 and 2 are essentially "mirrors" of one another, as are 1 and 3. Interestingly enough, after dumping the udevinfo output to the files linked above, sr1 and sr3 show different sizes, even though they are the same drive. A diff of the respective files shows a few more things that are different, but none as strange as the size difference... :/

bash-3.2$ grep size sr?-attributes

sr0-attributes:    ATTR{size}="2097151"
sr1-attributes:    ATTR{size}="4"
sr2-attributes:    ATTR{size}="2097151"
sr3-attributes:    ATTR{size}="9143552"

Ideas? :)

Signature · 11 lines
http://rlworkman.net

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel