[PLUG] Detecting Drive in USB IDE Enclosure

Robert Citek robert.citek at gmail.com
Thu Apr 26 04:05:47 UTC 2007


Richard C. Steffens wrote:
> I bought an Nspire OT352 at ENU. It was $3 more than the generic one
> discussed yesterday, but has ventilation slots, which the $27 unit did
> not have. It's simple to install the hardware. Now, how do I make Linux
> use it?

It should have been automagical.  Here's what I did in script form:

true ; ( set -x
sudo dmesg -c >& /dev/null
# connect USB cable from powered drive to computer
sleep 20
sudo dmesg -c
fdisk -l
# disconnect USB cable from computer
sleep 20
sudo dmesg -c
) 2>&1 | tee output.txt

Here's what output.txt looks like:

+ sudo dmesg -c
+ sleep 20
+ sudo dmesg -c
[18388202.628000] usb 5-5: new high speed USB device using ehci_hcd and
address 109
[18388202.760000] scsi58 : SCSI emulation for USB Mass Storage devices
[18388202.760000] usb-storage: device found at 109
[18388202.760000] usb-storage: waiting for device to settle before scanning
[18388207.760000]   Vendor: IC25N020  Model:   CLP201F2G23XPA  Rev: A61A
[18388207.760000]   Type:   Direct-Access                      ANSI SCSI
revision: 02
[18388207.760000] SCSI device sdb: 39054016 512-byte hdwr sectors (19996 MB)
[18388207.760000] sdb: assuming drive cache: write through
[18388207.764000] SCSI device sdb: 39054016 512-byte hdwr sectors (19996 MB)
[18388207.764000] sdb: assuming drive cache: write through
[18388207.764000]  sdb: sdb1
[18388207.784000] sd 58:0:0:0: Attached scsi disk sdb
[18388207.784000] sd 58:0:0:0: Attached scsi generic sg2 type 0
[18388207.784000] usb-storage: device scan complete
+ fdisk -l

Disk /dev/sdb: 19.9 GB, 19995656192 bytes
255 heads, 32 sectors/track, 4786 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        4786    19526864   83  Linux
+ sleep 20
+ sudo dmesg -c
[18388217.760000] usb 5-5: USB disconnect, address 109

This was done using Ubuntu 6.06.

If you don't get any output from the fdisk command, then try changing
the drive's jumper settings, e.g. from Master to Slave or from Slave to
Cable Select or even removing the jumper completely.

Good luck and let us know how things go.

Regards,
- Robert




More information about the PLUG mailing list