voici la sortie du dmesg de mon IBM Thinkpad équipé d'une carte pcmcia combo ieee1394/USB 2.0 sur laquelle je branche mon boitier Generic avec dedans un disque IDE Seagate, j'ai installé la Mandriva 2006 :
Linux version 2.6.12-12mdk (apatard@n1.mandriva.com) (gcc version 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)) #1 Fri Sep 9 18:15:22 CEST 2005
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000bfe0000 (usable)
BIOS-e820: 000000000bfe0000 - 000000000bff0000 (reserved)
BIOS-e820: 000000000bff0000 - 000000000bff8000 (ACPI data)
BIOS-e820: 000000000bff8000 - 000000000c000000 (ACPI NVS)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
191MB LOWMEM available.
...
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 10, io base 0x00008000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb 1-2: new full speed USB device using uhci_hcd and address 2
...
Yenta: CardBus bridge found at 0000:00:03.0 [1014:01a3]
Yenta O2: res at 0x94/0xD4: 00/ea
Yenta O2: enabling read prefetch/write burst
Yenta: ISA IRQ mask 0x02b8, PCI irq 10
Socket status: 30000821
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
ohci_hcd 0000:01:00.0: OHCI Host Controller
ohci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:01:00.0: irq 10, io mem 0x0c800000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
PCI: Enabling device 0000:01:00.1 (0000 -> 0002)
ohci_hcd 0000:01:00.1: OHCI Host Controller
ohci_hcd 0000:01:00.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:01:00.1: irq 10, io mem 0x0c801000
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
PCI: Enabling device 0000:01:00.2 (0000 -> 0002)
ohci_hcd 0000:01:00.2: OHCI Host Controller
ohci_hcd 0000:01:00.2: new USB bus registered, assigned bus number 4
ohci_hcd 0000:01:00.2: irq 10, io mem 0x0c802000
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
usb 2-2: new full speed USB device using ohci_hcd and address 2
ieee1394: Initialized config rom entry `ip1394'
ohci1394: $Rev: 1250 $ Ben Collins <bcollins@debian.org>
PCI: Enabling device 0000:01:00.4 (0000 -> 0002)
PCI: Setting latency timer of device 0000:01:00.4 to 64
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[10] MMIO=[c803000-c8037ff] Max Packet=[2048]
PCI: Enabling device 0000:01:00.3 (0000 -> 0002)
ehci_hcd 0000:01:00.3: EHCI Host Controller
ehci_hcd 0000:01:00.3: debug port 1
ehci_hcd 0000:01:00.3: new USB bus registered, assigned bus number 5
ehci_hcd 0000:01:00.3: irq 10, io mem 0x0c803800
ehci_hcd 0000:01:00.3: USB 2.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 6 ports detected
usb 5-2: new high speed USB device using ehci_hcd and address 2
usb 2-2: USB disconnect, address 2
ieee1394: Host added: ID:BUS[0-00:1023] GUID[0090e6390000018d]
cs: IO port probe 0xc00-0xcff: clean.
cs: IO port probe 0x100-0x4ff: excluding 0x2c8-0x2cf 0x3b8-0x3df 0x4d0-0x4d7
cs: IO port probe 0xa00-0xaff: clean.
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
eth1394: $Rev: 1247 $ Ben Collins <bcollins@debian.org>
eth1394: eth0: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
Floppy drive(s): fd0 is 1.44M
Vendor: ST312002 Model: 2A Rev: 0811
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
floppy0: no floppy controllers found
Floppy drive(s): fd0 is 1.44M
floppy0: no floppy controllers found
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
/dev/scsi/host0/bus0/target0/lun0: p1 p2
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Intel 810 + AC97 Audio, version 1.01, 18:11:20 Sep 9 2005
PCI: Found IRQ 11 for device 0000:00:00.1
PCI: Sharing IRQ 11 with 0000:00:00.2
IRQ routing conflict for 0000:00:03.0, have irq 10, want irq 11
PCI: Setting latency timer of device 0000:00:00.1 to 64
...
usb 5-2: reset high speed USB device using ehci_hcd and address 2
scsi: Device offlined - not ready after error recovery: host 0 channel 0 id 0 lun 0
SCSI error : <0 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 124937505
Buffer I/O error on device sda2, logical block 0
scsi0 (0:0): rejecting I/O to offline device
Buffer I/O error on device sda2, logical block 0
scsi0 (0:0): rejecting I/O to offline device
Buffer I/O error on device sda2, logical block 64
scsi0 (0:0): rejecting I/O to offline device
Buffer I/O error on device sda2, logical block 64
... je débranche mon cable usb puis rebranche sur le 2ème port usb
usb 5-2: USB disconnect, address 2
usb 5-1: new high speed USB device using ehci_hcd and address 3
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
Vendor: ST312002 Model: 2A Rev: 0811
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
/dev/scsi/host1/bus0/target0/lun0: p1 p2
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
usb-storage: device scan complete
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 360
Buffer I/O error on device sda1, logical block 297
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 361
Buffer I/O error on device sda1, logical block 298
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 362
Buffer I/O error on device sda1, logical block 299
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 363
Buffer I/O error on device sda1, logical block 300
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 364
Cette astuce vient du fait que sed prend comme séparateur le premier caractère après le s (et n'importe quel caractère). Ex:
echo "/un/deux/trois/" | sed -e 's-/un/deux-undeux-'
le - est le séparateur dans cet exemple qui est encore plus lisible que le |
[^] # Re: SCSI
Posté par boirelbr . En réponse au message Genesys Logic, Inc. USB 2.0 IDE Adapter. Évalué à 1.
Linux version 2.6.12-12mdk (apatard@n1.mandriva.com) (gcc version 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0)) #1 Fri Sep 9 18:15:22 CEST 2005
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000bfe0000 (usable)
BIOS-e820: 000000000bfe0000 - 000000000bff0000 (reserved)
BIOS-e820: 000000000bff0000 - 000000000bff8000 (ACPI data)
BIOS-e820: 000000000bff8000 - 000000000c000000 (ACPI NVS)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
0MB HIGHMEM available.
191MB LOWMEM available.
...
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 10, io base 0x00008000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb 1-2: new full speed USB device using uhci_hcd and address 2
...
Yenta: CardBus bridge found at 0000:00:03.0 [1014:01a3]
Yenta O2: res at 0x94/0xD4: 00/ea
Yenta O2: enabling read prefetch/write burst
Yenta: ISA IRQ mask 0x02b8, PCI irq 10
Socket status: 30000821
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
ohci_hcd 0000:01:00.0: OHCI Host Controller
ohci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:01:00.0: irq 10, io mem 0x0c800000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
PCI: Enabling device 0000:01:00.1 (0000 -> 0002)
ohci_hcd 0000:01:00.1: OHCI Host Controller
ohci_hcd 0000:01:00.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:01:00.1: irq 10, io mem 0x0c801000
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
PCI: Enabling device 0000:01:00.2 (0000 -> 0002)
ohci_hcd 0000:01:00.2: OHCI Host Controller
ohci_hcd 0000:01:00.2: new USB bus registered, assigned bus number 4
ohci_hcd 0000:01:00.2: irq 10, io mem 0x0c802000
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
usb 2-2: new full speed USB device using ohci_hcd and address 2
ieee1394: Initialized config rom entry `ip1394'
ohci1394: $Rev: 1250 $ Ben Collins <bcollins@debian.org>
PCI: Enabling device 0000:01:00.4 (0000 -> 0002)
PCI: Setting latency timer of device 0000:01:00.4 to 64
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[10] MMIO=[c803000-c8037ff] Max Packet=[2048]
PCI: Enabling device 0000:01:00.3 (0000 -> 0002)
ehci_hcd 0000:01:00.3: EHCI Host Controller
ehci_hcd 0000:01:00.3: debug port 1
ehci_hcd 0000:01:00.3: new USB bus registered, assigned bus number 5
ehci_hcd 0000:01:00.3: irq 10, io mem 0x0c803800
ehci_hcd 0000:01:00.3: USB 2.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 6 ports detected
usb 5-2: new high speed USB device using ehci_hcd and address 2
usb 2-2: USB disconnect, address 2
ieee1394: Host added: ID:BUS[0-00:1023] GUID[0090e6390000018d]
cs: IO port probe 0xc00-0xcff: clean.
cs: IO port probe 0x100-0x4ff: excluding 0x2c8-0x2cf 0x3b8-0x3df 0x4d0-0x4d7
cs: IO port probe 0xa00-0xaff: clean.
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
eth1394: $Rev: 1247 $ Ben Collins <bcollins@debian.org>
eth1394: eth0: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
Floppy drive(s): fd0 is 1.44M
Vendor: ST312002 Model: 2A Rev: 0811
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
floppy0: no floppy controllers found
Floppy drive(s): fd0 is 1.44M
floppy0: no floppy controllers found
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
/dev/scsi/host0/bus0/target0/lun0: p1 p2
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Intel 810 + AC97 Audio, version 1.01, 18:11:20 Sep 9 2005
PCI: Found IRQ 11 for device 0000:00:00.1
PCI: Sharing IRQ 11 with 0000:00:00.2
IRQ routing conflict for 0000:00:03.0, have irq 10, want irq 11
PCI: Setting latency timer of device 0000:00:00.1 to 64
...
usb 5-2: reset high speed USB device using ehci_hcd and address 2
scsi: Device offlined - not ready after error recovery: host 0 channel 0 id 0 lun 0
SCSI error : <0 0 0 0> return code = 0x50000
end_request: I/O error, dev sda, sector 124937505
Buffer I/O error on device sda2, logical block 0
scsi0 (0:0): rejecting I/O to offline device
Buffer I/O error on device sda2, logical block 0
scsi0 (0:0): rejecting I/O to offline device
Buffer I/O error on device sda2, logical block 64
scsi0 (0:0): rejecting I/O to offline device
Buffer I/O error on device sda2, logical block 64
... je débranche mon cable usb puis rebranche sur le 2ème port usb
usb 5-2: USB disconnect, address 2
usb 5-1: new high speed USB device using ehci_hcd and address 3
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
Vendor: ST312002 Model: 2A Rev: 0811
Type: Direct-Access ANSI SCSI revision: 00
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
sda: assuming drive cache: write through
/dev/scsi/host1/bus0/target0/lun0: p1 p2
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
usb-storage: device scan complete
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 360
Buffer I/O error on device sda1, logical block 297
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 361
Buffer I/O error on device sda1, logical block 298
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 362
Buffer I/O error on device sda1, logical block 299
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 363
Buffer I/O error on device sda1, logical block 300
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 364
# plus théoriquement
Posté par boirelbr . En réponse au message [Terminal] sed et les modifications de chemin. Évalué à 1.
echo "/un/deux/trois/" | sed -e 's-/un/deux-undeux-'
le - est le séparateur dans cet exemple qui est encore plus lisible que le |