QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2055|回复: 14

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

[复制链接]
发表于 2003-12-26 13:35:22 | 显示全部楼层 |阅读模式
我用的是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 a  USB hard disk?
发表于 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反而不是必要(反正我没有选)

你都编译了没有?
回复

使用道具 举报

 楼主| 发表于 2003-12-27 14:44:51 | 显示全部楼层
[quote:d4ccf882e1="llc"]SCSI支持选了没有?
U盘在linux下要虚拟成SCSI硬盘来访问,需要的支持有:
USB支持(usb-core),USB存储设备支持(usb-storage),USB-UHCI支持(好像是这个名字)
SCSI基本支持(sg),SCSI硬盘支持(scd-mod,忘记是否这个名字了),scsi模拟支持(这个在ATA设备里选,不在SCSI里)

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

你都编译了没有?[/quote]


All of them are in.
sg                     35980  0
ide_scsi               14212  0
scsi_mod              113564  2 sg,ide_scsi
hid                    25472  0
ohci_hcd               17792  0
uhci_hcd               33160  0
ehci_hcd               24192  0
usbcore               105044  6 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=12  MxCh= 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? :-(
回复

使用道具 举报

 楼主| 发表于 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?
回复

使用道具 举报

发表于 2003-12-29 10:00:15 | 显示全部楼层
好像漏了一个scsi硬盘支持了,模块名字好像是scd-mod,要虚拟成scsi硬盘才能工作,因此scsi硬盘支持也得选
回复

使用道具 举报

 楼主| 发表于 2003-12-29 10:29:58 | 显示全部楼层
[quote:d6d7218571="llc"]好像漏了一个scsi硬盘支持了,模块名字好像是scd-mod,要虚拟成scsi硬盘才能工作,因此scsi硬盘支持也得选[/quote]

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

使用道具 举报

发表于 2003-12-29 10:33:21 | 显示全部楼层
sd_mod i think
回复

使用道具 举报

发表于 2003-12-29 11:07:05 | 显示全部楼层
llc

想死我了!
回复

使用道具 举报

 楼主| 发表于 2003-12-29 12:21:45 | 显示全部楼层
[quote:f0b7575194="Dragonfly"]sd_mod i think[/quote]

lsmod:

sg            35980   0
ide_scsi        14212   0
usb_storage     65664   0
sd_mod        15904   0
scsi_mod       113564  4  sg,ide_scsi,usb_storage,sd_mod
ohci_hcd       17792   0
uhci_hcd       33160   0
ehci_hcd       24192   0
usbcore        105044  7  usb_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 product  5e3/702/113

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

T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 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 :-(
回复

使用道具 举报

 楼主| 发表于 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?
:-( :-( :-(
回复

使用道具 举报

发表于 2003-12-29 18:38:52 | 显示全部楼层
[quote:9729d3bb8f="atfa"]llc

想死我了![/quote]

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

使用道具 举报

发表于 2003-12-29 23:28:41 | 显示全部楼层
[quote:1edfab9262="llc"][quote:1edfab9262="atfa"]llc

想死我了![/quote]

好像我露脸比你还多
好久不见,还能饭否[/quote]
确实很少见你呀,圣诞快乐,新年好,春节好
回复

使用道具 举报

发表于 2003-12-30 08:47:50 | 显示全部楼层
[quote:e9b191202f="cnhnln"][quote:e9b191202f="llc"][quote:e9b191202f="atfa"]llc

想死我了![/quote]

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

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

使用道具 举报

发表于 2003-12-30 08:49:26 | 显示全部楼层
呵呵,一句话,很快就元旦了,新年到了,同乐同乐!(再灌就成水贴了,希望龙版莫怪莫怪
回复

使用道具 举报

发表于 2003-12-31 06:10:23 | 显示全部楼层

happy new year!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 14:27 , Processed in 0.079572 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表