Chinaunix首页 | 论坛 | 博客
  • 博客访问: 320118
  • 博文数量: 80
  • 博客积分: 773
  • 博客等级: 军士长
  • 技术积分: 799
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-24 23:52
个人简介

victory for prepared

文章分类

全部博文(80)

文章存档

2024年(2)

2023年(1)

2022年(2)

2021年(1)

2018年(8)

2017年(3)

2016年(20)

2015年(12)

2013年(5)

2012年(25)

2011年(1)

我的朋友

分类: LINUX

2012-04-16 22:18:36

 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) |
给主人留下些什么吧!~~