You are not logged in.

#1 2010-05-03 07:20:23

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Slow USB hard drive write

Due to a hard drive crash I needed a new backup drive and got a USB 1TB iomega prestige. Then, when I tried to copy my stuff, it just took forever. At first I thought it might have something to do with it being NTFS (although my other hard drive runs NTFS as well), so I formatted it with ext4. Still the same problem. This slow writing speed basically renders it useless to me as it would probably take a week or so to back up my stuff.
Here are some copy times for an example video file of 246.50 MiB, where hdd is my laptop internal drive, seagate is my old external USB NTFS drive, and iomega the new one:

hdd     (sda) = ext4 - 111.79 GiB
seagate (sdb) = ntfs - 465.76 GiB
iomega  (sdc) = ext4 - 931.51 GiB

seagate >>> hdd     = 0:08.5 min
seagate >>> iomega  = 4:25.2 min

hdd     >>> seagate = 0:07.5 min
hdd     >>> iomega  = 4:06.4 min

iomega  >>> hdd     = 0:08.7 min
iomega  >>> seagate = 0:09.2 min

I tried different ports (all 2.0 and all directly going into my laptop) and apparently it's got nothing to do with that.

Attached are some outputs I collected. I tried to look up those error messages here in the forum and through google, but couldn't really find an adequate answer/solution. So I'm hoping that one of you guys might have a pointer for me.

dmesg:

EXT4-fs (sda4): mounted filesystem with ordered data mode
Adding 498004k swap on /dev/sda2.  Priority:-1 extents:1 across:498004k 
scsi 6:0:0:0: Direct-Access     Iomega E xternal HD       0000 PQ: 0 ANSI: 4
sd 6:0:0:0: Attached scsi generic sg2 type 0
sd 6:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 6:0:0:0: [sdb] Write Protect is off
sd 6:0:0:0: [sdb] Mode Sense: 38 00 00 00
sd 6:0:0:0: [sdb] Assuming drive cache: write through
sd 6:0:0:0: [sdb] Assuming drive cache: write through
 sdb:
scsi 7:0:0:0: Direct-Access     SanDisk  Cruzer           7.01 PQ: 0 ANSI: 0 CCS
sd 7:0:0:0: Attached scsi generic sg3 type 0
sd 7:0:0:0: [sdc] 3940351 512-byte logical blocks: (2.01 GB/1.87 GiB)
sd 7:0:0:0: [sdc] Write Protect is off
sd 7:0:0:0: [sdc] Mode Sense: 45 00 00 08
sd 7:0:0:0: [sdc] Assuming drive cache: write through
sd 7:0:0:0: [sdc] Assuming drive cache: write through
 sdc:
sd 7:0:0:0: [sdc] Assuming drive cache: write through
sd 7:0:0:0: [sdc] Attached SCSI removable disk
iwl3945 0000:05:00.0: firmware: requesting iwlwifi-3945-2.ucode
iwl3945 0000:05:00.0: loaded firmware version 15.32.2.9
 sdb1
sd 6:0:0:0: [sdb] Assuming drive cache: write through
sd 6:0:0:0: [sdb] Attached SCSI disk
EXT4-fs (sdb1): mounted filesystem with ordered data mode
tg3 0000:04:00.0: irq 31 for MSI/MSI-X
usb 1-7: USB disconnect, address 5
FAT: Directory bread(block 8192) failed
FAT: Directory bread(block 8193) failed
FAT: Directory bread(block 8194) failed
FAT: Directory bread(block 8195) failed
FAT: Directory bread(block 8196) failed
FAT: Directory bread(block 8197) failed
FAT: Directory bread(block 8198) failed
FAT: Directory bread(block 8199) failed
FAT: Directory bread(block 8192) failed
FAT: Directory bread(block 8193) failed
FAT: Directory bread(block 8194) failed
FAT: Directory bread(block 8195) failed
FAT: Directory bread(block 8196) failed
FAT: Directory bread(block 8197) failed
FAT: Directory bread(block 8198) failed
FAT: Directory bread(block 8199) failed
usb 1-3: new high speed USB device using ehci_hcd and address 6
scsi8 : usb-storage 1-3:1.0
scsi 8:0:0:0: Direct-Access     Seagate  FreeAgentDesktop 100F PQ: 0 ANSI: 4
sd 8:0:0:0: Attached scsi generic sg3 type 0
sd 8:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 8:0:0:0: [sdc] Write Protect is off
sd 8:0:0:0: [sdc] Mode Sense: 1c 00 00 00
sd 8:0:0:0: [sdc] Assuming drive cache: write through
sd 8:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 8:0:0:0: [sdc] Assuming drive cache: write through
sd 8:0:0:0: [sdc] Attached SCSI disk
hda-intel: IRQ timing workaround is activated for card #0. Suggest a bigger bdl_pos_adj.
usb 1-5: USB disconnect, address 4
usb 1-3: USB disconnect, address 6
EXT4-fs error (device sdb1): ext4_find_entry: reading directory #2 offset 0
EXT4-fs error (device sdb1): ext4_find_entry: reading directory #2 offset 0
EXT4-fs (sdb1): previous I/O error to superblock detected
JBD2: I/O error detected when updating journal superblock for sdb1-8.
EXT4-fs (sdb1): previous I/O error to superblock detected
usb 1-3: new high speed USB device using ehci_hcd and address 7
scsi9 : usb-storage 1-3:1.0
scsi 9:0:0:0: Direct-Access     Seagate  FreeAgentDesktop 100F PQ: 0 ANSI: 4
sd 9:0:0:0: Attached scsi generic sg2 type 0
sd 9:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 9:0:0:0: [sdb] Write Protect is off
sd 9:0:0:0: [sdb] Mode Sense: 1c 00 00 00
sd 9:0:0:0: [sdb] Assuming drive cache: write through
sd 9:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 9:0:0:0: [sdb] Assuming drive cache: write through
sd 9:0:0:0: [sdb] Attached SCSI disk
usb 1-7: new high speed USB device using ehci_hcd and address 8
scsi10 : usb-storage 1-7:1.0
scsi 10:0:0:0: Direct-Access     Iomega E xternal HD       0000 PQ: 0 ANSI: 4
sd 10:0:0:0: Attached scsi generic sg3 type 0
sd 10:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 10:0:0:0: [sdc] Write Protect is off
sd 10:0:0:0: [sdc] Mode Sense: 38 00 00 00
sd 10:0:0:0: [sdc] Assuming drive cache: write through
sd 10:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 10:0:0:0: [sdc] Assuming drive cache: write through
sd 10:0:0:0: [sdc] Attached SCSI disk
EXT4-fs (sdc1): recovery complete
EXT4-fs (sdc1): mounted filesystem with ordered data mode
usb 1-7: USB disconnect, address 8
usb 1-5: new high speed USB device using ehci_hcd and address 9
scsi11 : usb-storage 1-5:1.0
scsi 11:0:0:0: Direct-Access     Iomega E xternal HD       0000 PQ: 0 ANSI: 4
sd 11:0:0:0: Attached scsi generic sg3 type 0
sd 11:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 11:0:0:0: [sdc] Write Protect is off
sd 11:0:0:0: [sdc] Mode Sense: 38 00 00 00
sd 11:0:0:0: [sdc] Assuming drive cache: write through
sd 11:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 11:0:0:0: [sdc] Assuming drive cache: write through
sd 11:0:0:0: [sdc] Attached SCSI disk
EXT4-fs (sdc1): mounted filesystem with ordered data mode
usb 1-5: reset high speed USB device using ehci_hcd and address 9
usb 1-5: reset high speed USB device using ehci_hcd and address 9
usb 1-5: reset high speed USB device using ehci_hcd and address 9
usb 1-5: usbfs: USBDEVFS_CONTROL failed cmd lsusb rqt 128 rq 6 len 255 ret -108
usb 1-5: reset high speed USB device using ehci_hcd and address 9
usb 1-5: reset high speed USB device using ehci_hcd and address 9
CE: hpet increasing min_delta_ns to 15000 nsec

lsusb -v -s for iomega drive:

┌─[root]─[/home/jack]
└─# lsusb -v -s 009

Bus 001 Device 009: ID 059b:0370 Iomega Corp.
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x059b Iomega Corp.
  idProduct          0x0370
  bcdDevice            1.0f
  iManufacturer           2 Iomega
  iProduct                3 Iomega
  iSerial                 1 FFFACFF0FD000000FFF607FF3FEFFF
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          4
    bmAttributes         0xc0
      Self Powered
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              5 Bulk Only Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
cannot read device status, Broken pipe (32)

lsusb -v -s for the seagate drive:

┌─[root]─[/home/jack]
└─# lsusb -v -s 007

Bus 001 Device 007: ID 0bc2:3000 Seagate RSS LLC
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0bc2 Seagate RSS LLC
  idProduct          0x3000
  bcdDevice            0.00
  iManufacturer           1 Seagate
  iProduct                2 FreeAgentDesktop
  iSerial                 3             6QG24TYE
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          5 Config0
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              4 Interface0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

hdparm -Ii:

┌─[root]─[/home/jack]
└─# hdparm -Ii /dev/sdb  (seagate)

/dev/sdb:
 HDIO_DRIVE_CMD(identify) failed: Invalid argument
 HDIO_GET_IDENTITY failed: Invalid argument

┌─[root]─[/home/jack]
└─# hdparm -Ii /dev/sdc   (iomega)

/dev/sdc:
 HDIO_DRIVE_CMD(identify) failed: Invalid argument
 HDIO_GET_IDENTITY failed: Invalid argument

hdparm -tT:

┌─[root]─[/home/jack]
└─# hdparm -tT /dev/sdc  (iomega)

/dev/sdc:
 Timing cached reads:   2222 MB in  2.00 seconds = 1111.85 MB/sec
 Timing buffered disk reads:   92 MB in  3.00 seconds =  30.63 MB/sec

┌─[root]─[/home/jack]
└─# hdparm -tT /dev/sdb   (seagate)

/dev/sdb:
 Timing cached reads:   2256 MB in  2.00 seconds = 1128.86 MB/sec
 Timing buffered disk reads:   80 MB in  3.04 seconds =  26.32 MB/sec

sdparm:

┌─[root]─[/home/jack]
└─# sdparm /dev/sdc
    /dev/sdc: Iomega E  xternal HD        0000
Read write error recovery mode page:
  AWRE        0  [cha: n, def:  0, sav:  0]
  ARRE        0  [cha: n, def:  0, sav:  0]
  PER         0  [cha: n, def:  0, sav:  0]
Caching (SBC) mode page:
>>> warning: mode page seems malformed
   The page number field should be 0x08, but is 0x30; try '--flexible'
  WCE         0  [cha: n, def:  0, sav:  0]
  RCD         0  [cha: n, def:  0, sav:  0]
Control mode page:
>>> warning: mode page seems malformed
   The page number field should be 0x0a, but is 0x30; try '--flexible'
Informational exceptions control mode page:
  EWASC       0  [cha: n, def:  0, sav:  0]
  DEXCPT      0  [cha: n, def:  0, sav:  0]
  MRIE        0  [cha: n, def:  0, sav:  0]

┌─[root]─[/home/jack]
└─# sdparm /dev/sdb
    /dev/sdb: Seagate   FreeAgentDesktop  100F

sdparm --get=WCE:

┌─[root]─[/home/jack]
└─# sdparm --get=WCE --flexible /dev/sdb
    /dev/sdb: Seagate   FreeAgentDesktop  100F
WCE not found in Caching (SBC) mode page

┌─[root]─[/home/jack]
└─# sdparm --get=WCE --flexible /dev/sdc
    /dev/sdc: Iomega E  xternal HD        0000
>>> warning: mode page seems malformed
   The page number field should be 0x08, but is 0x30
WCE         0  [cha: n, def:  0, sav:  0]

Sorry for the long post.

Last edited by JackH79 (2010-05-03 07:23:41)

Offline

#2 2010-05-14 21:47:32

gobeav3rs297
Member
From: Portland Oregon
Registered: 2007-11-06
Posts: 60

Re: Slow USB hard drive write

I'm getting similiar issues with my extern drives.  It would take forever for the kernel to recognizes the drive and partition and then when i tried to mount and read/write, it would be very slow.  When i check my dmesg, it would have similiar message as yours.

So far i have been able to solve or track down the issue to get it fix.  I know it's not my usb ports as it works perfectly fine with my USB2.0 flash thumbdrive, but when it comes to external drives i'm facing this issue.

Anybody know what is going on with our issue?

--vincent

Offline

#3 2014-12-14 14:34:11

metalhead91
Member
Registered: 2014-10-20
Posts: 1

Re: Slow USB hard drive write

Hi, I'm having the same issue and I can't seem to find a solution anywhere? Incidentally, can anyone tell me how to kill a nautilus-copying processes? I was trying to copy ~20GB earlier. After 7GB the progress bar got stuck and now when I ls /mnt, my entire system goes deadlock.

Also unmounting my USB device as root seems to enter a deadlocked state... Rebooting/shutting down also enters a deadlocked state. The only thing I can do is unplug the device mid copy-process, and that can't be good, right?

Last edited by metalhead91 (2014-12-14 14:36:57)

Offline

Board footer

Powered by FluxBB