Distribuce
-
Redhat
-
7.3
-
Item 3922
Otßzka
mam externi USB disk, primontuji ho bez problemu k notebooku a dom. masine prikazem
mount -t ext2 /dev/sda1 /adresar. V obou dvou pripadech jsou k dispozici dva USB porty.
Bohuzel na pracovnim stroji zjistim ze:
/mount: /dev/sda1 nenφ platn²m blokov²m za°φzenφm
Pritom lsmod dava:
Module Size Used by Not tainted
vfat 12092 0 (autoclean)
fat 37432 0 (autoclean) [vfat]
sd_mod 12928 0 (autoclean) (unused)
usb-storage 58156 0 (unused)
cmpci 32756 1 (autoclean)
soundcore 6692 4 (autoclean) [cmpci]
radeon 97496 1
binfmt_misc 7556 1
autofs 12132 0 (autoclean) (unused)
3c59x 28424 1
ide-scsi 9664 0
scsi_mod 108608 2 [sd_mod usb-storage ide-scsi]
ide-cd 30272 0
cdrom 32224 0 [ide-cd]
reiserfs 186464 1 (autoclean)
ehci-hcd 19520 0 (unused)
usb-uhci 24452 0 (unused)
usbcore 73216 1 [usb-storage ehci-hcd usb-uhci]
ext3 67136 2
jbd 49400 2 [ext3]
lsusb dava (az na konci dotazu) rozumne hlasky, takze vse by melo byt v poradku. Dotaz zni, da se zjistit, na jaky odkaz v adresari /dev se mapuji jednotlive fyzicke USB porty?
Pro uplnost jeste pridam /var/log/dmesg
VFS: Mounted root (ext2 filesystem).
Journalled Block Device driver loaded
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 296k freed
Adding Swap: 1052216k swap-space (priority -1)
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 07:48:41 Apr 18 2002
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0xe400, IRQ 11
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: USB UHCI at I/O 0xe000, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: USB UHCI at I/O 0xdc00, IRQ 11
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
ehci-hcd.c: $Revision: 1.1 $ USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-hcd.c: block sizes: qh 96 qtd 96 itd 160 sitd 64
hcd.c: ehci-hcd @ 00:10.3, PCI device 1106:3104 (VIA Technologies, Inc.)
hcd.c: irq 5, pci mem e0902e00
usb.c: new USB bus registered, assigned bus number 4
ehci-dbg.c: ehci_start hcs_params 0x3206 dbg=0 cc=3 pcc=2 ordered !ppc ports=6
ehci-dbg.c: ehci_start extended capabilities at pci 104
ehci-dbg.c: ehci_start hcc_params 0x6872 caching 7 uframes 256/512/1024
ehci-hcd.c: reset 80002 cmd (park)=0 ithresh=8 period=1024 Reset HALT
ehci-hcd.c: init 10000 cmd (park)=0 ithresh=1 period=1024 HALT
ehci-hcd.c: USB 2.0 support enabled, EHCI rev 1. 0
hcd.c: 00:10.3 root hub device address 1
hub.c: USB hub found
hub.c: 6 ports detected
ehci-hub.c: GetStatus port 4 status 0x1803 POWER speed=2 CSC CONNECT
hub.c: Cannot enable port 4 of hub 1, disabling port.
hub.c: Maybe the USB cable is bad?
ehci-hcd.c: 00:10.3: free_config devnum 0
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,2), internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,3), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
reiserfs: checking transaction log (device 03:04) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
hdc: ATAPI 48X DVD-ROM drive, 128kB Cache
Uniform CD-ROM driver Revision: 3.12
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
output lsusb:
Bus 004 Device 001: ID 0000:0000 Virtual Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 1
bMaxPacketSize0 8
idVendor 0x0000 Virtual
idProduct 0x0000 Hub
bcdDevice 2.40
iManufacturer 3 Linux 2.4.18-3 ehci-hcd
iProduct 2 PCI device 1106:3104 (VIA Technologies, Inc.)
iSerial 1 00:10.3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 2
bInterval 12
Language IDslength=4)
0000 (null)((null))
Bus 003 Device 001: ID 0000:0000 Virtual Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000 Virtual
idProduct 0x0000 Hub
bcdDevice 0.00
iManufacturer 0
iProduct 2 USB UHCI Root Hub
iSerial 1 dc00
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 255
Language IDslength=4)
0000 (null)((null))
Bus 002 Device 001: ID 0000:0000 Virtual Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000 Virtual
idProduct 0x0000 Hub
bcdDevice 0.00
iManufacturer 0
iProduct 2 USB UHCI Root Hub
iSerial 1 e000
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 255
Language IDslength=4)
0000 (null)((null))
Bus 001 Device 001: ID 0000:0000 Virtual Hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000 Virtual
idProduct 0x0000 Hub
bcdDevice 0.00
iManufacturer 0
iProduct 2 USB UHCI Root Hub
iSerial 1 e400
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 255
Language IDslength=4)
0000 (null)((null))
Odpov∞di
RH 7.3 ma na nekterych boardech trosku problemy s USB-EHCI - vyhod tenhle modul, mozna to pomuze. Ja s tim mel problem u jednoho scanneru.
v /proc/partitions se ukaze co to je za kanal,bohuzel az po namountovani
co takhle zkusit pouzit devfs/pak by tam byla pouze zarizeni,ktera jsou v pocitaci,
ale pokud nemate jiny radic scsi tak by to melo byt sda
Mozna by pomohlo se kouknout na sdx (x=a--d?) treba
dd if=/dev/sdx of=test bs=512 count=4
cilem je zkusit precist MBR+nejake sektory za ni pro otestovani existence zarizeni.
Dalsi zajimava mista by mohla byt treba /proc/scsi/scsi
/proc/scsi/usb-storage-*/*
Jestli to nebude tφm ╛e tam mßte emulaci ide-scsi.
Tak╛e se scsi za°φzenφ n∞jak prohodφ a pod tak╛e skuste jinΘ za°φzenφ /dev/scXX .
Mam emulaci ide-scsi na 2CD mechaniky a ty jsou jako /dev/scd0 a /dev/scd1, usb flash disk se u me objevi jako /dev/sda1.
|