← Back to team overview

kernel-packages team mailing list archive

[Bug 997021] Re: USB storage device capacity is incorrect and device is not writeable

 

The patch that closed the upstream bug report [0] landed in Quantal with
3.5-rc5 - so please confirm that this issue is fixed.

[0]
commit 6a0bdffa0073857870a4ed1b4489762146359eb4
Author: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
Date:   Wed Jun 20 16:04:19 2012 -0400

    SCSI & usb-storage: add try_rc_10_first flag

** Changed in: linux (Ubuntu)
       Status: Fix Committed => Incomplete

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/997021

Title:
  USB storage device capacity is incorrect and device is not writeable

Status in The Linux Kernel:
  Fix Released
Status in “linux” package in Ubuntu:
  Incomplete

Bug description:
  Description:    Ubuntu quantal (development branch)
  Release:        12.10
  Kernel Package Version: linux-image-3.4.0-1-generic  3.4.0-1.3

  I am having serious problems with an Intenso Rainbow Line 16 GB USB
  storage device on my Hewlett-Packard HP Compaq 6710b (Intel Centrino)
  notebook with kernel 3.4.0-1-generic x86_64.

  On kernel 3.2.0-24-generic x86_64 the device works as expected, the
  capacity is reported correct and the raw speed is within manufacturer
  specifications (~30 Mbyte/s read, 8 Mbyte/s write).

  On kernel 3.4.0-1-generic x86_64 the device capacity is reported as 18
  Exabytes instead of 16 Gigabytes, and I can only read the device, but
  not write to it. Every write attempt ends in "Device not seekable"
  and/or "No space left on device":

  
  sturmflut@cloud:~/tmp/bug$ sudo dd_rescue /dev/zero /dev/sdb
  dd_rescue: (warning): output file is not seekable!
  dd_rescue: (warning): Invalid argument
  dd_rescue: (warning): Don't use sparse writes for non-seekable output
  dd_rescue: (info): ipos:         0.0k, opos:         0.0k, xferd:         0.0k
                     errs:      0, errxfer:         0.0k, succxfer:         0.0k
               +curr.rate:        0kB/s, avg.rate:        0kB/s, avg.load:  0.0%

  dd_rescue: (warning): write /dev/sdb (0.0k): No space left on device
  dd_rescue: (warning): assumption rd(65536) == wr(0) failed! 
  dd_rescue: (fatal): write /dev/sdb (64.0k): No space left on device!

  dd_rescue: (info): Summary for /dev/zero -> /dev/sdb:
  dd_rescue: (info): ipos:        64.0k, opos:        64.0k, xferd:        64.0k
                     errs:      1, errxfer:         0.0k, succxfer:         0.0k
               +curr.rate:   178273kB/s, avg.rate:   153846kB/s, avg.load:  0.0%

             
  sturmflut@cloud:~/tmp/bug$ sudo fdisk /dev/sdb
  fdisk: unable to seek on /dev/sdb: Invalid argument

  
  This clearly is a regression introduced by kernel 3.4 itself. Other USB storage devices work as expected, on both kernels.

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/997021/+subscriptions