我在一台旧游戏机上运行 Ubuntu 18.04.3 LTS 服务器版本。
最终目标是拥有一个无头 DVD 翻录器。
所有三个驱动器均可见,并响应弹出命令。
> ls -ltrFa /dev/sr* brw-rw---- 1 root cdrom 11, 0 Jan 27 03:18 /dev/sr0 brw-rw---- 1 root cdrom 11, 2 Jan 27 03:18 /dev/sr2 brw-rw---- 1 root cdrom 11, 1 Jan 27 04:00 /dev/sr1
但不知何故,每次我将 DVD 插入任何驱动器时,/mnt/dev/sr[0-2] 中都看不到任何数据,也没有任何 udev 脚本运行
到目前为止我唯一的线索是来自 dmesg 的输出
[ 1581.307405] sr 1:0:0:0: [sr1] tag#18 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1581.307409] sr 1:0:0:0: [sr1] tag#18 Sense Key : Illegal Request [current]
[ 1581.307412] sr 1:0:0:0: [sr1] tag#18 Add. Sense: Read of scrambled sector without authentication
[ 1581.307416] sr 1:0:0:0: [sr1] tag#18 CDB: Read(10) 28 00 00 2e 21 00 00 00 40 00
[ 1581.307417] print_req_error: 1 callbacks suppressed
[ 1581.307419] print_req_error: I/O error, dev sr1, sector 12092416
[ 1581.338235] sr 1:0:0:0: [sr1] tag#19 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1581.338240] sr 1:0:0:0: [sr1] tag#19 Sense Key : Illegal Request [current]
[ 1581.338243] sr 1:0:0:0: [sr1] tag#19 Add. Sense: Read of scrambled sector without authentication
[ 1581.338246] sr 1:0:0:0: [sr1] tag#19 CDB: Read(10) 28 00 00 2e 21 00 00 00 02 00
[ 1581.338248] print_req_error: I/O error, dev sr1, sector 12092416
[ 1581.338709] Buffer I/O error on dev sr1, logical block 1511552, async page read
[ 1584.107616] sr 1:0:0:0: [sr1] tag#27 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1584.107621] sr 1:0:0:0: [sr1] tag#27 Sense Key : Illegal Request [current]
[ 1584.107624] sr 1:0:0:0: [sr1] tag#27 Add. Sense: Read of scrambled sector without authentication
[ 1584.107628] sr 1:0:0:0: [sr1] tag#27 CDB: Read(10) 28 00 00 2e 21 00 00 00 40 00
[ 1584.107630] print_req_error: I/O error, dev sr1, sector 12092416
[ 1584.138177] sr 1:0:0:0: [sr1] tag#28 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 1584.138181] sr 1:0:0:0: [sr1] tag#28 Sense Key : Illegal Request [current]
[ 1584.138184] sr 1:0:0:0: [sr1] tag#28 Add. Sense: Read of scrambled sector without authentication
[ 1584.138188] sr 1:0:0:0: [sr1] tag#28 CDB: Read(10) 28 00 00 2e 21 00 00 00 02 00
[ 1584.138190] print_req_error: I/O error, dev sr1, sector 12092416
[ 1584.138644] Buffer I/O error on dev sr1, logical block 1511552, async page read
[ 2539.428913] sr 1:0:0:0: [sr1] tag#15 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 2539.428918] sr 1:0:0:0: [sr1] tag#15 Sense Key : Illegal Request [current]
[ 2539.428921] sr 1:0:0:0: [sr1] tag#15 Add. Sense: Read of scrambled sector without authentication
[ 2539.428925] sr 1:0:0:0: [sr1] tag#15 CDB: Read(10) 28 00 00 2e 21 00 00 00 40 00
[ 2539.428928] print_req_error: I/O error, dev sr1, sector 12092416
[ 2539.460964] sr 1:0:0:0: [sr1] tag#16 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 2539.460968] sr 1:0:0:0: [sr1] tag#16 Sense Key : Illegal Request [current]
[ 2539.460971] sr 1:0:0:0: [sr1] tag#16 Add. Sense: Read of scrambled sector without authentication
[ 2539.460975] sr 1:0:0:0: [sr1] tag#16 CDB: Read(10) 28 00 00 2e 21 00 00 00 02 00
[ 2539.460977] print_req_error: I/O error, dev sr1, sector 12092416
[ 2539.461438] Buffer I/O error on dev sr1, logical block 1511552, async page read
[ 2542.257672] sr 1:0:0:0: [sr1] tag#24 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 2542.257676] sr 1:0:0:0: [sr1] tag#24 Sense Key : Illegal Request [current]
[ 2542.257679] sr 1:0:0:0: [sr1] tag#24 Add. Sense: Read of scrambled sector without authentication
[ 2542.257683] sr 1:0:0:0: [sr1] tag#24 CDB: Read(10) 28 00 00 2e 21 00 00 00 40 00
[ 2542.257685] print_req_error: I/O error, dev sr1, sector 12092416
[ 2542.296939] sr 1:0:0:0: [sr1] tag#25 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 2542.296944] sr 1:0:0:0: [sr1] tag#25 Sense Key : Illegal Request [current]
[ 2542.296947] sr 1:0:0:0: [sr1] tag#25 Add. Sense: Read of scrambled sector without authentication
[ 2542.296950] sr 1:0:0:0: [sr1] tag#25 CDB: Read(10) 28 00 00 2e 21 00 00 00 02 00
[ 2542.296952] print_req_error: I/O error, dev sr1, sector 12092416
[ 2542.297408] Buffer I/O error on dev sr1, logical block 1511552, async page read
阅读一些论坛帖子后我尝试了这个(虽然我不确定它们有何关联):
sudo apt remove libdvd-pkg handbrake-cli
sudo apt install vlc handbrake-cli libdvd-pkg libdvdcss-dev libdvdcss2 -y
sudo dpkg-reconfigure libdvd-pkg
这对我来说确实很奇怪
答案1
我也有同样的情况,但仅限于一些商业 DVD。我尝试看的最后一部是 APOLLO69(汤姆汉克斯的阿波罗 13 号故事)。这个问题与驱动器无关。这是一个 UDEV 错误,与 UDEV 子系统尝试解密/读取 DVD 并失败的方式有关。在这些尝试期间,驱动器被重置多次,内核陷入 I/O 状态,最后您必须重新启动系统才能解决问题。似乎已提交错误报告但因时间太长而关闭。
经过大量的谷歌搜索,我找到了一种解决方法,即使 DVD 图标未显示在 Nautilus 文件管理器中,也可以实际使用驱动器中的 DVD。请参阅此帖子https://forum.makemkv.com/forum/viewtopic.php?f=3&t=25357
当然,如果是使用 CSS 保护的商业 DVD,您将必须获取密钥并告诉驱动器使用哪些密钥。
如果您想查看 DVD 中的文件,您必须启动 VLC 或其他 libcss 应用程序来解密光盘,然后使用 sudo mount -o ro /dev/sr0 恢复到老式方法。我无法创建或填写错误报告给 UDEV 或内核团队,因此不会这样做,但我希望有一天这个 PITA 能够在没有这些奇怪的解决方法的情况下得到解决。希望这能有所帮助。