[TAG] IDE HDD in USB housing conect to a PC with onBoard Raid controller
Benjamin A. Okopnik
editor at linuxgazette.net
Sat Nov 13 07:45:23 MSK 2004
Hi, Peter -
On Thu, Nov 11, 2004 at 11:08:52AM +0100, Ridder, Peter, AGU wrote:
> On a system with IDE Drives it is posible, to mount and access the USB (IDE) HD
> with:
> mount ?t ext2 /dev/sda5 /mnt/usbstorage.
>
> If I try this on the PC with the Hardware RaidController (it displays the two
> IDE HD as /dev/sda),
This is a bit of a clue. Perhaps on a system with SCSI disks (or IDE
disks that are being seen as SCSI due to the RAID controller) the
external drives are "shifted" forward (e.g., from "sdb" to "sdc" if
there's one SCSI drive, or to "sdd" if there are two.) The easiest
solution would involve looking at your /var/log/messages when you plug
in the external drives; it would look something like this:
----------------------------------------------------------------------
Nov 12 23:40:10 Fenrir kernel: usb 1-2: new full speed USB device using address 2
Nov 12 23:40:10 Fenrir kernel: usb 1-2: Product: USB Reader
Nov 12 23:40:10 Fenrir kernel: usb 1-2: Manufacturer:
Nov 12 23:40:10 Fenrir kernel: usb 1-2: SerialNumber: 3C45030900D8
Nov 12 23:40:10 Fenrir usb.agent[4040]: usb-storage: already loaded
Nov 12 23:40:11 Fenrir kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Nov 12 23:40:11 Fenrir kernel: Vendor: Model: USB Card Reader Rev: 1.2b
Nov 12 23:40:11 Fenrir kernel: Type: Direct-Access ANSI SCSI revision: 02
Nov 12 23:40:11 Fenrir kernel: Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0
Nov 12 23:40:11 Fenrir scsi.agent[4074]: disk at /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0/host1/1:0:0:0
Nov 12 23:40:11 Fenrir kernel: Vendor: Model: USB Card Reader Rev: 1.2b
Nov 12 23:40:11 Fenrir kernel: Type: Direct-Access ANSI SCSI revision: 02
Nov 12 23:40:11 Fenrir kernel: Attached scsi generic sg2 at scsi1, channel 0, id 0, lun 1, type 0
Nov 12 23:40:11 Fenrir scsi.agent[4095]: disk at /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0/host1/1:0:0:1
Nov 12 23:40:11 Fenrir kernel: Vendor: Model: USB Card Reader Rev: 1.2b
Nov 12 23:40:11 Fenrir kernel: Type: Direct-Access ANSI SCSI revision: 02
Nov 12 23:40:11 Fenrir kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Nov 12 23:40:11 Fenrir kernel: SCSI device sdb: 60800 512-byte hdwr sectors (31 MB)
Nov 12 23:40:11 Fenrir kernel: sdb: assuming Write Enabled
Nov 12 23:40:11 Fenrir kernel: sdb:<7>usb-storage: queuecommand called
Nov 12 23:40:11 Fenrir kernel:
Nov 12 23:40:11 Fenrir kernel: Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 1
Nov 12 23:40:11 Fenrir kernel: Attached scsi removable disk sdc at scsi1, channel 0, id 0, lun 2
Nov 12 23:40:11 Fenrir kernel: Attached scsi generic sg3 at scsi1, channel 0, id 0, lun 2, type 0
Nov 12 23:40:12 Fenrir scsi.agent[4116]: disk at /devices/pci0000:00/0000:00:1d.0/usb1/1-2/1-2:1.0/host1/1:0:0:2
----------------------------------------------------------------------
The above is output resulting from me plugging an SD card into my 4-in-1
card reader; yours should be pretty similar. As you can see, the
"available device" messages are pretty obvious.
> mount ?t ext2 /dev/sdb5 /mnt/usbstorage
> give the error message:
> /dev/sdb5 no valid block device.
>
> fdisk /dev/sdb recognize the usb drive.
>
> On both PC run Red Hat 8
Go ahead and send us the relevant output from your /var/log/messages,
and we'll see if we can puzzle it out.
* Ben Okopnik * okopnik.freeshell.org * Editor-in-Chief, Linux Gazette *
-*- See the Linux Gazette in its new home: <http://linuxgazette.net> -*-
More information about the TAG
mailing list