LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 09-06-2006, 10:05 PM   #1
monkster
LQ Newbie
 
Registered: Sep 2005
Location: New England
Distribution: Ubuntu, Debian, Redhat
Posts: 12

Rep: Reputation: 0
Easy IDE (usb cable connecting external device)


Recently I have had no problem adding a usb external drive enclosure to my system. I therefore didn't hesitate to purchase a Made in Taiwan product called "Easy IDE." With it, you can connect any drive (even 2.5" laptop drives with enclosed connector) that has an ide interface to your usb port. Only, I can't get this to work on the distro I am using, Ubuntu 6.06 Dapper Drake.


This is my kernel version:
Code:
uname -r
2.6.15-26-686

Here is the line output from lsusb:
Code:
Bus 005 Device 019: ID 04cf:8818 Myson Century, Inc. Fast 3.5" External Storage
I pull out and reseat the usb cable and here is the output from dmesg:

Code:
usb 5-6: USB disconnect, address 19
[17216906.560000] usb 5-6: new high speed USB device using ehci_hcd and address 20
[17216906.692000] scsi14 : SCSI emulation for USB Mass Storage devices
[17216906.692000] usb-storage: device found at 20
[17216906.692000] usb-storage: waiting for device to settle before scanning
[17216911.692000]   Vendor: Maxtor 2  Model: B020H1            Rev: WAH2
[17216911.692000]   Type:   Direct-Access                      ANSI SCSI revision: 00
[17216911.692000] SCSI device sdd: 39062500 512-byte hdwr sectors (20000 MB)
[17216911.692000] sdd: assuming drive cache: write through
[17216911.696000] SCSI device sdd: 39062500 512-byte hdwr sectors (20000 MB)
[17216911.696000] sdd: assuming drive cache: write through
[17216911.696000]  sdd: sdd1 sdd2 < sdd5 sdd6 >
[17216911.748000] sd 14:0:0:0: Attached scsi disk sdd
[17216911.748000] sd 14:0:0:0: Attached scsi generic sg3 type 0
[17216911.752000] usb-storage: device scan complete
[17216915.368000] end_request: I/O error, dev sdd, sector 72
here is the output from scsi_info:

Code:
scsi_info /dev/sdd
SCSI_ID="0,0,0"
HOST="13"
MODEL="Maxtor 2 B020H1"
FW_REV="WAH2"
root@party:/home/partheni# scsi_info /dev/sdd
SCSI_ID="0,0,0"
HOST="13"
MODEL="Maxtor 2 B020H1"
FW_REV="WAH2"
here is the output from lsmod:

Code:
Module                  Size  Used by
usblp                  13920  0 
ppp_deflate             6432  0 
zlib_deflate           24248  1 ppp_deflate
bsd_comp                6272  0 
ppp_async              13280  0 
crc_ccitt               2240  1 ppp_async
ppp_generic            33556  3 ppp_deflate,bsd_comp,ppp_async
slhc                    7456  1 ppp_generic
nls_cp437               5888  1 
binfmt_misc            13064  1 
rfcomm                 43604  3 
l2cap                  28192  5 rfcomm
ipt_state               2016  1 
iptable_filter          3104  1 
ipt_MASQUERADE          3840  1 
iptable_nat             8228  1 
ip_nat                 20652  2 ipt_MASQUERADE,iptable_nat
ip_conntrack           54136  4 ipt_state,ipt_MASQUERADE,iptable_nat,ip_nat
nfnetlink               6808  2 ip_nat,ip_conntrack
ip_tables              23744  4 ipt_state,iptable_filter,ipt_MASQUERADE,iptable_nat
i915                   21664  1 
drm                    78484  2 i915
ppdev                   9668  0 
speedstep_centrino      8752  1 
cpufreq_userspace       6496  2 
cpufreq_stats           6688  0 
freq_table              4928  2 speedstep_centrino,cpufreq_stats
cpufreq_powersave       1920  0 
cpufreq_ondemand        7752  0 
cpufreq_conservative     9000  0 
video                  16324  0 
tc1100_wmi              6884  0 
sony_acpi               5580  0 
pcc_acpi               12416  0 
hotkey                 11492  0 
dev_acpi               11236  0 
container               4608  0 
button                  6704  0 
acpi_sbs               20172  0 
battery                 9988  1 acpi_sbs
ac                      5220  1 acpi_sbs
i2c_acpi_ec             5120  1 acpi_sbs
i2c_core               22848  1 i2c_acpi_ec
vfat                   14496  1 
fat                    55548  1 vfat
nls_utf8                2240  3 
ntfs                  111728  1 
ipv6                  286976  29 
dm_mod                 63256  1 
md_mod                 76052  0 
af_packet              24520  2 
sr_mod                 17988  0 
sbp2                   25060  0 
parport_pc             37988  0 
lp                     12356  0 
parport                39400  3 ppdev,parport_pc,lp
pcmcia                 41948  0 
joydev                 10432  0 
tsdev                   8032  0 
usb_storage            79584  2 
usbhid                 42752  0 
e100                   40964  0 
mii                     6176  1 e100
yenta_socket           30124  1 
rsrc_nonstatic         14624  1 yenta_socket
pcmcia_core            45272  3 pcmcia,yenta_socket,rsrc_nonstatic
hci_usb                18004  2 
bluetooth              54084  7 rfcomm,l2cap,hci_usb
psmouse                40004  0 
serio_raw               7748  0 
sdhci                  16096  0 
mmc_core               31816  1 sdhci
ipw3945               132348  1 
ieee80211              38952  1 ipw3945
ieee80211_crypt         6528  1 ieee80211
ieee80211_1_1_13       39880  0 
ieee80211_1_1_13_crypt     7040  1 ieee80211_1_1_13
snd_hda_intel          20468  0 
snd_hda_codec         163088  1 snd_hda_intel
snd_pcm_oss            56448  0 
snd_mixer_oss          20544  1 snd_pcm_oss
snd_pcm                96708  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              26884  1 snd_pcm
snd                    60004  6 snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              10784  1 snd
snd_page_alloc         11304  2 snd_hda_intel,snd_pcm
hw_random               5716  0 
intel_agp              24700  1 
agpgart                36784  3 drm,intel_agp
shpchp                 49504  0 
pci_hotplug            30788  1 shpchp
sg                     40160  0 
evdev                  10176  4 
ext3                  148104  2 
jbd                    65876  1 ext3
ide_generic             1504  0 
ohci1394               37524  0 
ieee1394              306520  2 sbp2,ohci1394
ehci_hcd               36104  0 
uhci_hcd               35408  0 
usbcore               139076  7 usblp,usb_storage,usbhid,hci_usb,ehci_hcd,uhci_hcd
sd_mod                 20448  7 
ahci                   18020  8 
libata                 83440  1 ahci
scsi_mod              145960  7 sr_mod,sbp2,usb_storage,sg,sd_mod,ahci,libata
ide_cd                 35780  0 
cdrom                  41408  2 sr_mod,ide_cd
piix                   11652  1 
generic                 5124  0 
thermal                13768  0 
processor              26888  2 speedstep_centrino,thermal
fan                     4836  0 
capability              4968  0 
commoncap               7328  1 capability
vga16fb                13992  1 
vgastate               10208  1 vga16fb
fbcon                  43904  72 
tileblit                2784  1 fbcon
font                    8320  1 fbcon
bitblit                 6464  1 fbcon
softcursor              2304  1 bitblit
Any help to get this new device working will be greatly appreciated.
 
Old 09-06-2006, 10:06 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
As far as I can tell from what you posted, it is working fine. The kernel definitely sees it, the drive, and the partitions on the drive.
 
Old 09-07-2006, 09:07 AM   #3
monkster
LQ Newbie
 
Registered: Sep 2005
Location: New England
Distribution: Ubuntu, Debian, Redhat
Posts: 12

Original Poster
Rep: Reputation: 0
Matir, thanks a lot for the response. I see I should have explained the problem better, but you can see a hint of it in the last line of the dmesg output I posted:

[17216915.368000] end_request: I/O error, dev sdd, sector 72

/var/log/kern.log will show a whole string of such errors. The drive will not show up on the desktop. The drive cannot be mounted manually. I need to show these errors, but I am at work and do not have the device connected now. I will come back and post the needed info as soon as I can.

One thing: I realize it looks like a drive problem, but I have connected 3 hard disks so far, and had the same problem. Before I post again, I will try any other disks I have lying around.

This usb/ide cable thing is a great idea and I hope to get it going. Does anyone else have one of these?
 
Old 09-07-2006, 10:41 AM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
I actually do have one of those, and it works really well. I use it for data recovery all the time.
 
Old 09-08-2006, 01:48 PM   #5
monkster
LQ Newbie
 
Registered: Sep 2005
Location: New England
Distribution: Ubuntu, Debian, Redhat
Posts: 12

Original Poster
Rep: Reputation: 0
So I said I would post lots of output, but that doesn't seem necessary now. I have tried this USB-IDE cable, "Easy IDE" with 6-8 drives. Only one of them worked. But it worked flawlessly. It brought up an old Quantum Bigfoot 5-1/4" hard drive easily. It was from a Windows 98 box. I tried it twice, at different times during my testing. The other ide devices were all hard drives except for an old gnarly cd rom drive. I was hoping that with this Easy IDE cable device I would be able to partition and so on, but it seems I cannot. First, kern.log and dmesg show a multitude of I/O errors such as this:

Code:
usb 5-4.1.4: reset high speed USB device using ehci_hcd and ad dress 6
[17179669.708000] usb 5-4.1.4: reset high speed USB device using ehci_hcd and ad dress 6
[17179699.872000] usb 5-4.1.4: reset high speed USB device using ehci_hcd and ad dress 6
[17179730.036000] usb 5-4.1.4: reset high speed USB device using ehci_hcd and ad dress 6
[17179760.200000] usb 5-4.1.4: reset high speed USB device using ehci_hcd and ad dress 6
[17179760.292000] sd 4:0:0:0: SCSI error: return code = 0x50000
[17179760.292000] end_request: I/O error, dev sdb, sector 0
[17179760.292000] Buffer I/O error on device sdb, logical block 0
[17179790.364000] usb 5-4.1.4: reset high speed USB device using ehci_hcd and ad dress 6
[17179820.528000] usb 5-4.1.4: reset high speed USB device using ehci_hcd and ad dress 6
[17179850.692000] usb 5-4.1.4: reset high speed USB device using ehci_hcd and ad dress 6
[17179880.856000] usb 5-4.1.4: reset high speed USB device using ehci_hcd and ad dress 6
[17179911.020000] usb 5-4.1.4: reset high speed USB device using ehci_hcd and ad dress 6
[17179911.112000] sd 4:0:0:0: SCSI error: return code = 0x50000
[17179911.112000] end_request: I/O error, dev sdb, sector 4
If I try to use cfdisk or fdisk, I get a "fatal error, cannot read disk" kind of error.

If I try fsck, it's like this:

Code:
# e2fsck /dev/sdc
e2fsck 1.38 (30-Jun-2005)
e2fsck: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc
Could this be a zero-length partition?
I even tried this:

Code:
:confused: # dd if=/dev/zero of=/dev/sdd
dd: writing to `/dev/sdd': Input/output error
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.001352 seconds, 0.0 kB/s
Can anyone help me? Is there a configuration file where I can set the geometry of the drive? Or should I just accept the performance I am getting? I cannot prove none of the old drives I tested unsuccessfully are bad, but I think it is not possible that they are all bad.
 
Old 09-09-2006, 02:49 PM   #6
monkster
LQ Newbie
 
Registered: Sep 2005
Location: New England
Distribution: Ubuntu, Debian, Redhat
Posts: 12

Original Poster
Rep: Reputation: 0
To cap this off here:

Today I used my Easy IDE cable and Gparted to label, partition, and format a 250 GB WDC drive. It does work. Perhaps the test drives (all older) I was using had different IDE standards? You can expect this Easy IDE cable to play with Linux, as long as you stick with newer drives. So it seems to me. It is a pretty cool thing to have around.
 
  


Reply

Tags
cable, ide, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting two computers with a USB cable (data cable) seran Linux - General 5 08-01-2006 05:51 PM
Why does my external IDE-device with firewire not run? (SUSE 9.1) EichbaumExport Linux - Hardware 3 02-08-2005 12:33 PM
laptop use a cdrom with ide-usb cable norstar Linux - Hardware 1 10-12-2004 01:19 AM
Connecting Cable Modem via Usb kapoo Slackware 2 10-11-2004 07:32 AM
External Parallel to ide cdrom device drivers - DATASTOR EP2000 paresh_md Linux - Hardware 0 07-23-2003 01:13 AM


All times are GMT -5. The time now is 01:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration