Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.hardware > #2449

Re: usb external drives not reliable for linux?

From "Charles T. Smith" <cts.private.yahoo@gmail.com>
Newsgroups comp.os.linux.hardware
Subject Re: usb external drives not reliable for linux?
Date 2014-06-24 20:10 +0000
Organization A noiseless patient Spider
Message-ID <loclvj$klj$1@dont-email.me> (permalink)
References <lo4c6q$sdc$1@dont-email.me> <lo6mdq$a49$2@dont-email.me>

Show all headers | View raw


On Sun, 22 Jun 2014 13:41:14 +0000, Charles T. Smith wrote:

> On Sat, 21 Jun 2014 16:34:34 +0000, Charles T. Smith wrote:
> 
>> Hi,
>> 
>> I bought an external usb drive for external storage for my linux
>> system. I discover that after a while (15 minutes?) of inactivity, I
>> get this message:
>> 
>>   ls: reading directory .: Input/output error
>> 
>> If I cd away and back again, my directory is back.  Is that implicit in
>> usb or the drive?  Can a disk be made to not do that?  I have it
>> mounted in sync mode.
>> 
>> cts
> 
>>> Okay, I may have found it: http://lwn.net/Articles/253587/
>>> 
>>> But I haven't had a chance to test it yet.
> 
> 
> Well, I wasn't able to make progress with that.  But I noticed something
> interesting...
> 
> My drive is mounted from /dev/disk/by-id.  Every time this event
> happens, the device, /dev/sd?3, changes - first, it's at /dev/sdb3, then
> after remount it's at /dev/sdc3, and then, the next time it happens, it
> goes back to /dev/sdb3 again.

(that's determined from dmesg & /var/log/messages)

I'm still casting around in the dark...  I'm reasonably sure that it 
happens primarily when I running on batteries.  But I can't find any
element that takes responsibility for shutting things down.

[ 6540.940526] sd 9:0:0:0: [sdb] CDB: Write(10): 2a 00 4d e0 11 c0 00 00 
08 00
[ 6540.940550] end_request: I/O error, dev sdb, sector 1306530240
[ 6540.940557] Buffer I/O error on device sdb3, logical block 41222280
[ 6540.940563] lost page write due to I/O error on sdb3
[ 6541.076290] usb 2-4: new high speed USB device number 6 using ehci_hcd
[ 6541.210515] scsi10 : usb-storage 2-4:1.0
[ 6542.209486] scsi 10:0:0:0: Direct-Access     WD       Elements 1048    
1025 PQ: 0 ANSI: 6
[ 6542.233160] sd 10:0:0:0: Attached scsi generic sg2 type 0
[ 6542.233386] sd 10:0:0:0: [sdc] 1953519616 512-byte logical blocks: 
(1.00 TB/931 GiB)
[ 6542.235266] sd 10:0:0:0: [sdc] Write Protect is off
[ 6542.235276] sd 10:0:0:0: [sdc] Mode Sense: 47 00 10 08
[ 6542.237116] sd 10:0:0:0: [sdc] No Caching mode page present
[ 6542.237126] sd 10:0:0:0: [sdc] Assuming drive cache: write through
[ 6542.239882] sd 10:0:0:0: [sdc] No Caching mode page present
[ 6542.239890] sd 10:0:0:0: [sdc] Assuming drive cache: write through
[ 6542.792326] usb 2-4: reset high speed USB device number 6 using 
ehci_hcd
[ 6542.916226] usb 2-4: device descriptor read/64, error -71
[ 6543.144049] usb 2-4: device descriptor read/64, error -71
[ 6543.360052] usb 2-4: reset high speed USB device number 6 using 
ehci_hcd
[ 6543.484059] usb 2-4: device descriptor read/64, error -71
[ 6543.712077] usb 2-4: device descriptor read/64, error -71
[ 6543.928221] usb 2-4: reset high speed USB device number 6 using 
ehci_hcd
[ 6544.344307] usb 2-4: device not accepting address 6, error -71
[ 6544.456234] usb 2-4: reset high speed USB device number 6 using 
ehci_hcd
[ 6544.872227] usb 2-4: device not accepting address 6, error -71
[ 6544.872285] usb 2-4: USB disconnect, device number 6
[ 6544.872782] sd 10:0:0:0: [sdc] Unhandled error code
[ 6544.872790] sd 10:0:0:0: [sdc]  Result: hostbyte=DID_NO_CONNECT 
driverbyte=DRIVER_OK
[ 6544.872800] sd 10:0:0:0: [sdc] CDB: Read(10): 28 00 00 00 00 00 00 00 
08 00
[ 6544.872826] end_request: I/O error, dev sdc, sector 0
[ 6544.872835] Buffer I/O error on device sdc, logical block 0
[ 6544.873884] ldm_validate_partition_table(): Disk read failed.
[ 6544.874083] Dev sdc: unable to read RDB block 0
[ 6544.874463]  sdc: unable to read partition table
[ 6544.874787] sd 10:0:0:0: [sdc] READ CAPACITY failed
[ 6544.874794] sd 10:0:0:0: [sdc]  Result: hostbyte=DID_NO_CONNECT 
driverbyte=DRIVER_OK
[ 6544.874804] sd 10:0:0:0: [sdc] Sense not available.
[ 6544.874861] sd 10:0:0:0: [sdc] Asking for cache data failed
[ 6544.874868] sd 10:0:0:0: [sdc] Assuming drive cache: write through
[ 6544.874876] sd 10:0:0:0: [sdc] Attached SCSI disk

umounting and remounting clears it up.

I would have expected to find a msg in dmesg or /var/log/messages that 
said something like "power control suspending usb power"  but I can't 
find anything like that.  Am I looking in the wrong place?

Back to comp.os.linux.hardware | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

usb external drives not reliable for linux? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2014-06-21 16:34 +0000
  Re: usb external drives not reliable for linux? Stef <not@this.address.com> - 2014-06-22 01:26 +0000
    Re: usb external drives not reliable for linux? "Ralf S. Hellersen" <schneiderxr@arcor.de> - 2014-08-08 19:59 +0000
      Re: usb external drives not reliable for linux? Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2014-08-08 15:35 -0700
  Re: usb external drives not reliable for linux? Clark Smith <noaddress@nowhere.net> - 2014-06-22 01:28 +0000
    Re: usb external drives not reliable for linux? JEDIDIAH <jedi@nomad.mishnet> - 2014-06-23 09:42 -0500
      Re: usb external drives not reliable for linux? Eric Pozharski <whynot@pozharski.name> - 2014-06-24 10:18 +0300
        Re: usb external drives not reliable for linux? Baho Utot <baho-utot@invalid.com> - 2014-06-24 07:36 -0400
          Re: usb external drives not reliable for linux? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2014-06-24 18:32 +0000
            Re: usb external drives not reliable for linux? Baho Utot <baho-utot@invalid.com> - 2014-06-24 16:47 -0400
  Re: usb external drives not reliable for linux? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2014-06-22 13:41 +0000
    Re: usb external drives not reliable for linux? Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2014-06-23 05:13 +0000
    Re: usb external drives not reliable for linux? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2014-06-24 20:10 +0000
      Re: usb external drives not reliable for linux? Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> - 2014-06-25 06:04 +0000
        Re: usb external drives not reliable for linux? "Charles T. Smith" <cts.private.yahoo@gmail.com> - 2014-06-25 19:04 +0000

csiph-web