![无法在 Linux 中读取音频 CD,并且我在系统日志中收到 Sense 错误](https://linux22.com/image/1356334/%E6%97%A0%E6%B3%95%E5%9C%A8%20Linux%20%E4%B8%AD%E8%AF%BB%E5%8F%96%E9%9F%B3%E9%A2%91%20CD%EF%BC%8C%E5%B9%B6%E4%B8%94%E6%88%91%E5%9C%A8%E7%B3%BB%E7%BB%9F%E6%97%A5%E5%BF%97%E4%B8%AD%E6%94%B6%E5%88%B0%20Sense%20%E9%94%99%E8%AF%AF.png)
使用 Ubuntu 12.10,当我尝试播放 CD 时,出现了这个令人尴尬的错误。以下是我尝试使用以下命令播放音频 CD 时 dmesg 显示的内容vlc /dev/sr0
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 00 00 00 00 02 00
end_request: I/O error, dev sr0, sector 0
Buffer I/O error on device sr0, logical block 0
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 00 00 00 00 02 00
end_request: I/O error, dev sr0, sector 0
Buffer I/O error on device sr0, logical block 0
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 01 00 00 00 02 00
end_request: I/O error, dev sr0, sector 1024
Buffer I/O error on device sr0, logical block 128
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 01 00 00 00 02 00
end_request: I/O error, dev sr0, sector 1024
Buffer I/O error on device sr0, logical block 128
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 01 00 00 00 02 00
end_request: I/O error, dev sr0, sector 1024
Buffer I/O error on device sr0, logical block 128
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 00 00 00 00 02 00
end_request: I/O error, dev sr0, sector 0
Buffer I/O error on device sr0, logical block 0
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 00 00 00 00 02 00
end_request: I/O error, dev sr0, sector 0
Buffer I/O error on device sr0, logical block 0
我在配有 Ultrabase Series 3(带光驱)的联想 X230 上运行此程序。以下是 的结果uname -a
,
Linux x200s-ssd 3.5.0-25-generic #39-Ubuntu SMP 2013 年 2 月 25 日星期一 18:26:58 UTC x86_64 x86_64 x86_64 GNU/Linux
lshw
这是CD-ROM 驱动器的结果,
*-scsi:1
physical id: 3
logical name: scsi1
capabilities: emulated
*-cdrom
description: DVD-RAM writer
product: DVDRAM GU40N
vendor: HL-DT-ST
physical id: 0.0.0
bus info: scsi@1:0.0.0
logical name: /dev/cdrom4
logical name: /dev/cdrom5
logical name: /dev/cdrw4
logical name: /dev/cdrw5
logical name: /dev/dvd4
logical name: /dev/dvd5
logical name: /dev/dvdrw4
logical name: /dev/dvdrw5
logical name: /dev/sr0
version: QX20
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=ready
*-medium
physical id: 0
logical name: /dev/cdrom4
答案1
如果你想玩声音的使用 vlc 通过命令行 cd,您需要使用
cdda
VLC 使用此协议(或访问模块)从设备或网络读取数据。用法:cdda://device@track
在命令行中使用的模块名称是 cdda,但您也可以使用 cddasimple。
对于 Ubuntu,使用 vlc cdda:///dev/sr0