我刚刚通过 USB DVD 刻录机安装了最小版 CentOS 6。一切正常。但现在我无法安装 DVD 刻录机。我甚至找不到 /dev/dvd 设备。我猜是缺少驱动程序,但我该如何找到驱动程序呢?
来自系统的一些输出。
[root@]# lsusb
Bus 002 Device 003: ID 0000:0000
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0409:0056 NEC Corp.
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
NEC 设备是我的 DVD 刻录机。
[root@]# lsusb -v # Only output for Nec driver.
Bus 001 Device 003: ID 0409:0056 NEC Corp.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0409 NEC Corp.
idProduct 0x0056
bcdDevice 0.00
iManufacturer 1 TSST corp
iProduct 2 USB Mass Storage Device
iSerial 3 000000000001
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 5 SFF-8070i
bInterfaceProtocol 80
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0001
Self Powered
/dev 文件夹中与 usb 相关的所有内容。
[root]# cd /dev
[root]# find | grep usb
./.udev/links/input\x2fby-path\x2fpci-0000:00:1d.0-usb-0:1.1:1.1-mouse
./.udev/links/input\x2fby-path\x2fpci-0000:00:1d.0-usb-0:1.1:1.1-mouse/c13:33
./.udev/links/input\x2fby-id\x2fusb-ServerEngines_SE_USB_Device_40151554C56504-mouse
./.udev/links/input\x2fby-id\x2fusb-ServerEngines_SE_USB_Device_40151554C56504-mouse/c13:33
./.udev/links/input\x2fby-path\x2fpci-0000:00:1d.0-usb-0:1.1:1.1-event-mouse
./.udev/links/input\x2fby-path\x2fpci-0000:00:1d.0-usb-0:1.1:1.1-event-mouse/c13:68
./.udev/links/input\x2fby-id\x2fusb-ServerEngines_SE_USB_Device_40151554C56504-event-mouse
./.udev/links/input\x2fby-id\x2fusb-ServerEngines_SE_USB_Device_40151554C56504-event-mouse/c13:68
./.udev/links/input\x2fby-path\x2fpci-0000:00:1d.0-usb-0:1.1:1.0-event-kbd
./.udev/links/input\x2fby-path\x2fpci-0000:00:1d.0-usb-0:1.1:1.0-event-kbd/c13:67
./.udev/links/input\x2fby-id\x2fusb-ServerEngines_SE_USB_Device_40151554C56504-event-kbd
./.udev/links/input\x2fby-id\x2fusb-ServerEngines_SE_USB_Device_40151554C56504-event-kbd/c13:67
./.udev/db/usb:1-1.4
./.udev/db/usb:2-1.1
./.udev/db/usb:2-1
./.udev/db/usb:1-1
./.udev/db/usbmon:usbmon0
./.udev/db/usb:usb1
./.udev/db/usb:usb2
./.udev/db/usbmon:usbmon2
./.udev/db/usbmon:usbmon1
./input/by-path/pci-0000:00:1d.0-usb-0:1.1:1.1-mouse
./input/by-path/pci-0000:00:1d.0-usb-0:1.1:1.1-event-mouse
./input/by-path/pci-0000:00:1d.0-usb-0:1.1:1.0-event-kbd
./input/by-id/usb-ServerEngines_SE_USB_Device_40151554C56504-mouse
./input/by-id/usb-ServerEngines_SE_USB_Device_40151554C56504-event-mouse
./input/by-id/usb-ServerEngines_SE_USB_Device_40151554C56504-event-kbd
./usbmon2
./bus/usb
./bus/usb/002
./bus/usb/002/003
./bus/usb/002/002
./bus/usb/002/001
./bus/usb/001
./bus/usb/001/003
./bus/usb/001/002
./bus/usb/001/001
./usbmon1
./usbmon0
/var/log/messages 的输出
Dec 1 15:24:31 vh01-tp kernel: usb 1-1.4: new high speed USB device using ehci_hcd and address 3
Dec 1 15:24:31 vh01-tp kernel: usb 1-1.4: New USB device found, idVendor=0409, idProduct=0056
Dec 1 15:24:31 vh01-tp kernel: usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 1 15:24:31 vh01-tp kernel: usb 1-1.4: Product: USB Mass Storage Device
Dec 1 15:24:31 vh01-tp kernel: usb 1-1.4: Manufacturer: TSST corp
Dec 1 15:24:31 vh01-tp kernel: usb 1-1.4: SerialNumber: 000000000001
Dec 1 15:24:31 vh01-tp kernel: usb 1-1.4: configuration #1 chosen from 1 choice
Dec 1 15:24:39 vh01-tp init: tty (/dev/tty1) main process ended, respawning
/var/log/dmsg 的一些输出
usb 1-1: new high speed USB device using ehci_hcd and address 2
usb 1-1: New USB device found, idVendor=8087, idProduct=0020
usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 6 ports detected
ata4: SATA link down (SStatus 0 SControl 300)
ata3: SATA link down (SStatus 0 SControl 300)
usb 2-1: new high speed USB device using ehci_hcd and address 2
usb 2-1: New USB device found, idVendor=8087, idProduct=0020
usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
usb 2-1: configuration #1 chosen from 1 choice
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 8 ports detected
usb 1-1.4: new high speed USB device using ehci_hcd and address 3
usb 1-1.4: New USB device found, idVendor=0409, idProduct=0056
usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1.4: Product: USB Mass Storage Device
usb 1-1.4: Manufacturer: TSST corp
usb 1-1.4: SerialNumber: 000000000001
usb 1-1.4: configuration #1 chosen from 1 choice
ata2.00: SATA link down (SStatus 0 SControl 300)
ata2.01: SATA link down (SStatus 0 SControl 300)
ata1.00: SATA link down (SStatus 0 SControl 300)
ata1.01: SATA link down (SStatus 0 SControl 300)
sd 0:0:0:0: [sda] 1953459632 512-byte logical blocks: (1.00 TB/931 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 6b 00 00 08
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk
usb 2-1.1: new full speed USB device using ehci_hcd and address 3
usb 2-1.1: New USB device found, idVendor=0000, idProduct=0000
usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1.1: Product: SE USB Device
usb 2-1.1: Manufacturer: ServerEngines
usb 2-1.1: SerialNumber: 40151554C56504
usb 2-1.1: configuration #1 chosen from 1 choice
/proc/bus/usb/devices 的输出。正如我所料,似乎没有安装任何驱动程序。
T: Bus=01 Lev=02 Prnt=02 Port=03 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0409 ProdID=0056 Rev= 0.00
S: Manufacturer=TSST corp
S: Product=USB Mass Storage Device
S: SerialNumber=000000000001
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=05 Prot=50 Driver=(none)
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
我应该去其他地方寻找吗,或者正确的信息就在我面前?
答案1
/dev/dvd
是指向真实块设备文件的符号链接。在dmesg
输出中搜索 CD-ROM 设备。应该类似于sr0
或scd0
。然后您可以使用以下命令自行创建符号链接:sudo ln -s /dev/<dvd_device_name> /dev/dvd
。
答案2
我发现我的强化脚本在 /etc/modprobe.d 中的 conf 文件中执行了“将 usb-storage 列入黑名单”。我忘记了这一点。