This is a discussion on some help please w/ USB drive (NTFS) on 2.4.32 kernel - works fora while, but then I start getting I/O errors and need to unload/reload usb-storagefor it to work again. within the Linux Operating System forums, part of the Unix Operating Systems category; --> Do people use USB drives on 2.4.32 kernels? Mine works for a while, but then I start getting I/O ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Do people use USB drives on 2.4.32 kernels? Mine works for a while, but then I start getting I/O errors and need to unload/reload usb-storage for it to work again. After running modprobe usb-storage, I get this in /var/log/messages: Sep 2 17:20:38 buster kernel: SCSI subsystem driver Revision: 1.00 Sep 2 17:20:38 buster kernel: Initializing USB Mass Storage driver... Sep 2 17:20:38 buster kernel: usb.c: registered new driver usb-storage Sep 2 17:20:38 buster kernel: scsi0 : SCSI emulation for USB Mass Storage devices Sep 2 17:20:38 buster kernel: Vendor: Maxtor 6 Model: Y250P0 Rev: 0811 Sep 2 17:20:38 buster kernel: Type: Direct-Access ANSI SCSI revision: 02 Sep 2 17:20:38 buster kernel: USB Mass Storage support registered. Then I proceed to mount it with mount /dev/sda1 /tmp/abc Sep 2 17:21:20 buster kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Sep 2 17:21:20 buster kernel: SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB) Sep 2 17:21:20 buster kernel: sda: sda1 sda2 Sep 2 17:21:20 buster kernel: NTFS driver v1.1.22 [Flags: R/O MODULE] Sep 2 17:21:20 buster kernel: NTFS: Warning! NTFS volume version is Win2k+: Mounting read-only Sep 2 17:21:20 buster kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 Sep 2 17:21:20 buster kernel: SCSI device sda: 490234752 512-byte hdwr sectors (251000 MB) Sep 2 17:21:20 buster kernel: sda: sda1 sda2 Sep 2 17:21:20 buster kernel: NTFS driver v1.1.22 [Flags: R/O MODULE] Sep 2 17:21:20 buster kernel: NTFS: Warning! NTFS volume version is Win2k+: Mounting read-only and that's fine, but after a little bit of reading files from the disk (using rsync or cp), I start getting: Sep 2 17:25:19 buster kernel: usb_control/bulk_msg: timeout Sep 2 17:25:39 buster last message repeated 2 times Sep 2 17:25:39 buster kernel: usb.c: USB disconnect on device 00:07.2-1 address 2 Sep 2 17:25:40 buster kernel: hub.c: new USB device 00:07.2-1, assigned address 3 Sep 2 17:26:20 buster kernel: usb_control/bulk_msg: timeout Sep 2 17:26:20 buster kernel: scsi: device set offline - not ready or command retry failed after bus reset: host 0 channel 0 id 0 lun 0 Sep 2 17:26:20 buster kernel: SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 50000 Sep 2 17:26:20 buster kernel: I/O error: dev 08:01, sector 28688592 Sep 2 17:26:20 buster kernel: NTFS: Read/write error. Sep 2 17:26:20 buster kernel: I/O error: dev 08:01, sector 28689104 Sep 2 17:26:20 buster kernel: NTFS: Read/write error. Sep 2 17:26:20 buster kernel: I/O error: dev 08:01, sector 28654800 Sep 2 17:26:20 buster kernel: NTFS: Read/write error. .... Here's the output of root@buster ~# lsmod Module Size Used by Not tainted nls_cp437 4316 1 (autoclean) ntfs 49984 1 (autoclean) sd_mod 10348 2 (autoclean) usb-storage 26192 1 scsi_mod 86068 2 [sd_mod usb-storage] 8139too 12776 1 mii 2144 0 [8139too] crc32 2848 0 [8139too] keybdev 1796 0 (unused) mousedev 3860 0 (unused) hid 20068 0 (unused) input 3104 0 [keybdev mousedev hid] usb-uhci 21456 0 (unused) usbcore 57260 1 [usb-storage hid usb-uhci] Output of lspci: root@buster /var/log# lspci 00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03) 00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03) 00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02) 00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) 00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01) 00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02) 00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 01:00.0 VGA compatible controller: ATI Technologies Inc Rage 128 Pro Ultra TF cat /proc/bus/usb/drivers usbdevfs hub 96-111: hiddev hid usb-storage The following command stops working after the error start occurring - the command will hang for a while and then output nothing. This is when the driver is freshly loaded. cat /proc/bus/usb/devices T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 0.00 S: Product=USB UHCI Root Hub S: SerialNumber=e000 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 4 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=05e3 ProdID=0702 Rev= 0.33 S: Product=USB TO IDE C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 96mA I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms What gives? Do I need to issue the mount command differently or should I be using a different driver? I don't have usb-ehci installed and usb-ohci doesn't work. Any help appreciated. Thanks much! Alton |
| ||||
| On Sat, 02 Sep 2006 18:08:22 -0700, Alton Yu wrote: > Do people use USB drives on 2.4.32 kernels? Mine works for a while, but > then I start getting I/O errors and need to unload/reload usb-storage > for it to work again. > > After running modprobe usb-storage, I get this in /var/log/messages: > > Sep 2 17:20:38 buster kernel: SCSI subsystem driver Revision: 1.00 > Sep 2 17:20:38 buster kernel: Initializing USB Mass Storage driver... > Sep 2 17:20:38 buster kernel: usb.c: registered new driver usb-storage > Sep 2 17:20:38 buster kernel: scsi0 : SCSI emulation for USB Mass > Storage devices > Sep 2 17:20:38 buster kernel: Vendor: Maxtor 6 Model: Y250P0 > Rev: 0811 > Sep 2 17:20:38 buster kernel: Type: Direct-Access > ANSI SCSI revision: 02 > Sep 2 17:20:38 buster kernel: USB Mass Storage support registered. > > > Then I proceed to mount it with mount /dev/sda1 /tmp/abc > > Sep 2 17:21:20 buster kernel: Attached scsi disk sda at scsi0, channel > 0, id 0, lun 0 > Sep 2 17:21:20 buster kernel: SCSI device sda: 490234752 512-byte hdwr > sectors (251000 MB) > Sep 2 17:21:20 buster kernel: sda: sda1 sda2 > Sep 2 17:21:20 buster kernel: NTFS driver v1.1.22 [Flags: R/O MODULE] > Sep 2 17:21:20 buster kernel: NTFS: Warning! NTFS volume version is > Win2k+: Mounting read-only > Sep 2 17:21:20 buster kernel: Attached scsi disk sda at scsi0, channel > 0, id 0, lun 0 > Sep 2 17:21:20 buster kernel: SCSI device sda: 490234752 512-byte hdwr > sectors (251000 MB) > Sep 2 17:21:20 buster kernel: sda: sda1 sda2 > Sep 2 17:21:20 buster kernel: NTFS driver v1.1.22 [Flags: R/O MODULE] > Sep 2 17:21:20 buster kernel: NTFS: Warning! NTFS volume version is > Win2k+: Mounting read-only I don't think that the filesystem is the issue. I could be wrong because I haven't used USB disks with partitions formatted ntfs. The above shows your mount command is fine- the kernel sees the right filesystem on the drive and mounts it. The filesystem driver issues a warning that for whatever reason the partition will be mounted read only, etc. > > and that's fine, but after a little bit of reading files from the disk > (using rsync or cp), I start getting: > > Sep 2 17:25:19 buster kernel: usb_control/bulk_msg: timeout Sep 2 > 17:25:39 buster last message repeated 2 times Sep 2 17:25:39 buster > kernel: usb.c: USB disconnect on device 00:07.2-1 address 2 I have a USB camera which "disconnects/sleeps" after some period of inactivity. It is not mounted as a USB storage device, though. Is your Maxtor drive going offline/powersave because it doesn't think it is in use? > Sep 2 17:25:40 buster kernel: hub.c: new USB device 00:07.2-1, assigned > address 3 > Sep 2 17:26:20 buster kernel: usb_control/bulk_msg: timeout > Sep 2 17:26:20 buster kernel: scsi: device set offline - not ready or > command retry failed after bus reset: host 0 channel 0 id 0 lun 0 > Sep 2 17:26:20 buster kernel: SCSI disk error : host 0 channel 0 id 0 > lun 0 return code = 50000 > Sep 2 17:26:20 buster kernel: I/O error: dev 08:01, sector 28688592 > Sep 2 17:26:20 buster kernel: NTFS: Read/write error. > Sep 2 17:26:20 buster kernel: I/O error: dev 08:01, sector 28689104 > Sep 2 17:26:20 buster kernel: NTFS: Read/write error. > Sep 2 17:26:20 buster kernel: I/O error: dev 08:01, sector 28654800 > Sep 2 17:26:20 buster kernel: NTFS: Read/write error. > ... > <snip> > > What gives? Do I need to issue the mount command differently or should I > be using a different driver? I don't have usb-ehci installed and > usb-ohci doesn't work. Any help appreciated. > > Thanks much! > Alton > Note: comments inline. I don't have any Maxtor external discs, but I have some external USB 2.0 Western Digital and Seagate drives. I have used them without problems. Are you sure your disk is known good? I would run some integrity tests on it to rule out drive errors as a first test. Perhaps a full read test with dd, preceded by some simple smartctl queries. # smartctl --health /dev/sdx And these disk generally come with an install/diagnostic disk. Can you run those diagnostics? -- Douglas Mayne |