Hi all. New to this list and hunted around the website and couldn't really find any solution for my problem. I have a new emachines laptop with USB2 ports on it. lspci shows this:

00:0d.0 USB Controller: NEC Corporation USB (rev 43)
00:0d.1 USB Controller: NEC Corporation USB (rev 43)
00:0d.2 USB Controller: NEC Corporation USB 2.0 (rev 04)

I bought an external 120GB USB2 HDD (Pine), and when plugged in and turned on, dmesg shows this:

hub.c: new USB device 00:0d.0-2, assigned address 2
usb.c: USB device 2 (vend/prod 0x5e3/0x702) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: ST312002 Model: 2A Rev: 0811
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 234441648 512-byte hdwr sectors (120034 MB)
/dev/scsi/host1/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

Looks fine. However, if I have ehci-hcd loaded, I get I/O errors when accessing the drive, even a mkreiserfs on it fails (using kernel 2.4.22; the machine has Mandrake 9.2 on it). If I don't load ehci-hcd and treat is as a USB1.1 device, mkreiserfs completes, I can copy data to the drive just fine, etc.

No matter how I try, I cannot make this thing play nice under Linux. It works fine in WinXP (same machine, dual boot); I ran a chkdsk on it, did a few NTFS formats, etc. Nice and fast. I even tried with FreeBSD 5.1 (again, same machine) and the device works... could format, fdisk, etc, without problems... nice and fast.

Tried SuSE 9.0 (thinking this Mandrake-specific) and same errors. Then I tried 2.6.0test9 and the problem was even worse. Whereas with 2.4.22 I can fdisk with no problem (using ehci-hcd), the fdisk failed with I/O errors in the 2.6 test kernel.. it's even more unuseable than in the 2.4 kernel.

So this seems to definitely be a problem with the Linux kernel since FreeBSD and WinXP work fine. I don't believe it's due to usb-storage because without ehci-hcd loaded, I can work with the drive fine (although very slowly).

I'm getting desperate. =) I need to get this drive working to store vmware workstations on it, and my choices are now to use this laptop more fulltime as an XP machine (ick) or to use FreeBSD and vmware3... if I can make it work with the network card in it.

Anyone have any ideas on how I can go about solving this problem? I've tried everything, and I believe I've narrowed it down to a problem with ehci-hcd. I believe that the problem may likely be with the USB2 controller itself and not necessarily the drive.

Thanks for any pointers.

---
MandrakeSoft Security; http://www.mandrakesecure.net/
Online Security Resource Book; http://linsec.ca/
"lynx -source http://linsec.ca/vdanen.asc | gpg --import"
{FE6F2AFD : 88D8 0D23 8D4B 3407 5BD7  66F9 2043 D0E5 FE6F 2AFD}

Attachment: PGP.sig
Description: This is a digitally signed message part



Reply via email to