yum install sg3_utils.i386
This is used for the sg group command.
Using the sg_inq -a /dev/cdrom command , I could get the serial number of my cdrom.
But in windows I also write one programm to get the serial number, and Strange thing happens.
In Windows the Serial number is all number, but in linux serial number contains not only numbers but
also characters. That mean the same device may have different serial number ? Maybe not ,so I think
the problem is on the programm I wrote.
this is the data inquired using linux command
05 80 05 32 5b 00 00 00 48 4c 2d 44 54 2d 53 54 ...2[...HL-DT-ST
44 56 44 2d 52 4f 4d 20 47 44 52 38 31 36 33 42 DVD-ROM GDR8163B
30 4c 32 36 30 42 4c 43 41 20 20 20 30 35 2f 30 0L260BLCA 05/0
32 2f 30 31 20 20 20 00 01 00 00 00 00 00 00 00 2/01 .........
05 80 00 32 5b 00 00 00 48 4c 2d 44 54 2d 53 54
44 56 44 2d 52 4f 4d 20 47 44 52 38 31 36 33 42
30 4c 32 36 a0 00 00 00 cc cc cc cc cc
cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc
cc cc cc cc cc cc cc cc
^E<80>^@2[^@^@^@HL-DT-STDVD-ROM GDR816
3B0L26 ^@^@^@ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ
阅读(862) | 评论(0) | 转发(0) |