Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.