usb設備:金存小博士usb移動硬盤
安裝環境:RedHat 7.2 (2.4.7-10),核心支持usb設備,網上下載的啦, 8-)
安裝、登錄rh,
1.檢查核心是否加載usb模塊
# dmesg grep usb
有輸出如"usb.c: registered....."信息說明模塊已加載,否則需要執行:
# modprobe usb-uhci
# modprobe usb-storage
# dmesg
....
....
registered new drver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.259 $ time 17:36:49 Sep 6 2001
usb-uhci.c: High bandwidth mode enabled
PCI: Enabling device 00:07.2 (0000 -> 0001)
PCI: Assigned IRQ 9 for device 00:07.2
usb-uhci.c: usb UHCI at I/O 0x10e0, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new usb bus registered, assigned bus number 1
hub.c: usb hub found
hub.c: 2 ports detected
usb-uhci.c: v1.251:usb Universal Host Controller Interface driver
SCSI subsystem driver Revision: 1.00
Initializing usb Mass Storage driver...
usb.c: registered new driver usb-storage
usb Mass Storage support registered.
2.連接好usb硬盤,
# dmesg
....
....
hub.c: usb new device connect on bus1/2, assigned device number 3
usb-uhci.c: interrupt, status 3, frame# 1489
scsi0 : SCSI emulation for usb Mass Storage devices
Vendor: Model: Rev:
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 19640880 512-byte hdwr sectors (10056 MB)
sda: sda1
WARNING: usb Mass Storage data integrity not assured
usb Mass Storage device found at 3
usb.c: usb disconnect on device 3
usb.c: usb disconnect on device 2
發現usb設備,對應的設備為 /dev/sda1
# mkdir /mnt/usbdisk
# mount /dev/sda1 /mnt/usbdisk
哈哈,搞掂!
其他種類的usb設備的安裝大同小異,關鍵是核心支持,當然你所用的usb設備也必需是被認可的,我的朗科優盤(大拇指)就因為沒被認可裝不上,提示usb device 5 (vend/prod 0xa16/0x1111) is not claimed by any active driver.還要各位指點.
題外話:在台式機安裝rh,安裝好後核心自動加載usb模塊,筆記本電腦就不會(嗚呼,費了我好長時間才弄明白);本來想裝mandrake試一下,安裝過程實在漫長,8-(