tigerleo 发表于 2003-12-26 13:35:22

kernel 2.6.0,使用USB硬盘,真的搞不定!!

我用的是RH9,升级到kernel 2.6.0后,usbcore,ohci-hcd,ehci-hcd,uhci-hcd模块统统正常加载,usb-storage,hotplug也直接built-in了,当我几次插拔USB硬盘的时候,/var/log/messages中出现如下信息:

Dec 26 11:24:23 localhost kernel: hub 4-0:1.0: new USB device on port 1, assigned address 15
Dec 26 11:25:09 localhost kernel: hub 4-0:1.0: port 1 disabled by hub (EMI?), re-enabling...<6>usb 4-1: USB disconnect, address 15
Dec 26 11:25:09 localhost kernel: hub 4-0:1.0: new USB device on port 1, assigned address 16
Dec 26 11:25:12 localhost kernel: hub 4-0:1.0: port 1 disabled by hub (EMI?), re-enabling...<6>usb 4-1: USB disconnect, address 16
Dec 26 11:25:12 localhost kernel: hub 4-0:1.0: new USB device on port 1, assigned address 17
Dec 26 11:25:14 localhost kernel: usb 4-1: device not accepting address 17, error -110
Dec 26 11:25:14 localhost kernel: hub 4-0:1.0: new USB device on port 1, assigned address 18
Dec 26 11:25:16 localhost kernel: usb 4-1: device not accepting address 18, error -110
Dec 26 11:25:42 localhost kernel: hub 4-0:1.0: new USB device on port 1, assigned address 19

在几个尝试之后,显然最后是成功了,可是运行mount /dev/sda /mnt/dos, sda1,sdb什么都试过了,就是不行. 实际上/proc/partitions里面根本就没有显示有新的分区.

2.6内核是不是把USB硬盘换位置了?哪位高手知道?Anyone succeeded in mounting aUSB hard disk?

llc 发表于 2003-12-27 10:51:43

SCSI支持选了没有?
U盘在linux下要虚拟成SCSI硬盘来访问,需要的支持有:
USB支持(usb-core),USB存储设备支持(usb-storage),USB-UHCI支持(好像是这个名字)
SCSI基本支持(sg),SCSI硬盘支持(scd-mod,忘记是否这个名字了),scsi模拟支持(这个在ATA设备里选,不在SCSI里)

内核里的hotplug反而不是必要(反正我没有选)

你都编译了没有?

tigerleo 发表于 2003-12-27 14:44:51

SCSI支持选了没有?
U盘在linux下要虚拟成SCSI硬盘来访问,需要的支持有:
USB支持(usb-core),USB存储设备支持(usb-storage),USB-UHCI支持(好像是这个名字)
SCSI基本支持(sg),SCSI硬盘支持(scd-mod,忘记是否这个名字了),scsi模拟支持(这个在ATA设备里选,不在SCSI里)

内核里的hotplug反而不是必要(反正我没有选)

你都编译了没有?


All of them are in.
sg                     359800
ide_scsi               142120
scsi_mod            1135642 sg,ide_scsi
hid                  254720
ohci_hcd               177920
uhci_hcd               331600
ehci_hcd               241920
usbcore               1050446 hid,ohci_hcd,uhci_hcd,ehci_hcd


When insert the USB HD in, dmesg shows:
hub 4-0:1.0: new USB device on port 1, assigned address 5

That means a success, I guess. But the corresponding lines in /proc/bus/usb/devices shows:
T:Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=5 Spd=12MxCh= 0
D:Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=1
P:Vendor=05e3 ProdID=0702 Rev= 1.13
S:Product=USB Storage Device
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:Ad=81(I) Atr=02(Bulk) MxPS=64 Ivl=0ms
E:Ad=02(O) Atr=02(Bulk) MxPS=64 Ivl=0ms

What does "Driver=(none)" mean? No driver for it?
Whew, my USB HD gonna be a pile of shit on Linux? :-(

tigerleo 发表于 2003-12-27 14:58:18

Sorry, I missed the module usb-storage.
But still it doesn't wanna get to work, when isert the USB HD in, dmesg shows:

hub 4-0:1.0: new USB device on port 1, assigned address 8
scsi3 : SCSI emulation for USB Mass Storage devices
scsi scan: 37 byte inquiry failed with code 458752.Consider BLIST_INQUIRY_36 for this device
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 8

Ah,it seems that some coding work should be done. Who's gonna tell me how to fix it?

llc 发表于 2003-12-29 10:00:15

好像漏了一个scsi硬盘支持了,模块名字好像是scd-mod,要虚拟成scsi硬盘才能工作,因此scsi硬盘支持也得选

tigerleo 发表于 2003-12-29 10:29:58

好像漏了一个scsi硬盘支持了,模块名字好像是scd-mod,要虚拟成scsi硬盘才能工作,因此scsi硬盘支持也得选

scsi-mod or scd-mod?
scd looks like for scsi cdrom :-)

Dragonfly 发表于 2003-12-29 10:33:21

sd_mod i think

atfa 发表于 2003-12-29 11:07:05

llc

想死我了!

tigerleo 发表于 2003-12-29 12:21:45

sd_mod i think

lsmod:

sg            35980   0
ide_scsi      14212   0
usb_storage   65664   0
sd_mod      15904   0
scsi_mod       1135644sg,ide_scsi,usb_storage,sd_mod
ohci_hcd       17792   0
uhci_hcd       33160   0
ehci_hcd       24192   0
usbcore      1050447usb_storage,hid,ohci_hcd,uhci_hcd,ehci_hcd

still it doesn't work! dmesg shows:

hub 4-0:1.0: new USB device on port 1, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
scsi scan: 37 byte inquiry failed with code 458752.Consider BLIST_INQUIRY_36 for this device
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
usbfs: USBDEVFS_CONTROL failed cmd usbmodules dev 2 rqt 128 rq 6 len 18 ret -110
--------the last line repeats itself many times----------

/var/log/messages show:

Dec 29 11:31:37 localhost kernel: hub 4-0:1.0: new USB device on port 1, assigned address 2
Dec 29 11:31:37 localhost /sbin/hotplug: no runnable /etc/hotplug/scsi_host.agent is installed
Dec 29 11:31:37 localhost kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Dec 29 11:31:37 localhost /etc/hotplug/usb.agent: Bad USB agent invocation
Dec 29 11:31:37 localhost kernel: scsi scan: 37 byte inquiry failed with code 458752.Consider BLIST_INQUIRY_36 for this device                              
Dec 29 11:31:41 localhost /etc/hotplug/usb.agent: ... no modules for USB product5e3/702/113

corresponding lines in /proc/bus/usb/devices shows:

T:Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=3 Spd=12MxCh= 0
D:Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=1
P:Vendor=05e3 ProdID=0702 Rev= 1.13
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:Ad=81(I) Atr=02(Bulk) MxPS=64 Ivl=0ms
E:Ad=02(O) Atr=02(Bulk) MxPS=64 Ivl=0ms

What's wrong? so depressing :-(

tigerleo 发表于 2003-12-29 14:02:21

I digged into the device attributes, in /proc/bus/usb/devices it syas, this USB HD's Vendor ID is 5e3, Product ID is 702, Rev(Release version?) is 1.13, device protocol is 00, interface protocol is 50. but in modules.usbmap, there' no module support for this type of device, although there's a similar one, but the interface protocol is 00.

maybe the usb-storage the kernel 2.6 includes can't drive my USB HD? need a special driver?
:-( :-( :-(

llc 发表于 2003-12-29 18:38:52

llc

想死我了!

:mrgreen: 好像我露脸比你还多
好久不见,还能饭否

cnhnln 发表于 2003-12-29 23:28:41

llc

想死我了!

:mrgreen: 好像我露脸比你还多
好久不见,还能饭否
确实很少见你呀,圣诞快乐,新年好,春节好

llc 发表于 2003-12-30 08:47:50

llc

想死我了!

:mrgreen: 好像我露脸比你还多
好久不见,还能饭否
确实很少见你呀,圣诞快乐,新年好,春节好

有这事?不会吧?我经常来这里啊,发贴也不少

llc 发表于 2003-12-30 08:49:26

呵呵,一句话,很快就元旦了,新年到了,同乐同乐!(再灌就成水贴了,希望龙版莫怪莫怪 :mrgreen: )

Dragonfly 发表于 2003-12-31 06:10:23

:-D
happy new year!
页: [1]
查看完整版本: kernel 2.6.0,使用USB硬盘,真的搞不定!!