Re: sd_mod or usb-storage fails to read a single good block (was: ehci_hcd fails to read a single good block)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 29 Mar 2012, Norman Diamond wrote:

> Alan Stern wrote:
> > On Wed, 28 Mar 2012, Norman Diamond wrote:
> > 
> >> I don't want to manhandle that old notebook's fragile vendor proprietary IDE cable again, but I'll try to find another way to test that drive again without going though USB.
> > 
> > You don't have to worry about that.� sg_dd works fine over USB.
> > 
> >>> The USB-to-IDE bridge is vendor 067b, product 2507, Prolific Technology Inc., and usb-storage matches it for quirk 110.
> > 
> > What is the bcdDevice value?
> 
> Is that different from 2507?

It is a separate value from the product ID.  It appears in the output 
from "lsusb -v" or in /sys/kernel/debug/usb/devices (where it is 
labelled "Rev=").

> Now, if a combination of zeroing the readahead and proper user input of an sg_dd command will succeed in reading a single valid block next door to the bad block, then it won't even be necessary to unplug and replug the USB bridge.  That will be good news.
> 
> >>> Digression:  Someone adjusts the number of blocks from the reported 39070080 (which I think is correct) to 39070079 (which I think is wrong).  I'll have to install the drive in an old notebook to check if the reported number of blocks is really correct.
> >> 
> >> Further on this digression:� The number of blocks really is 39070080.� Today libata made no adjustment and the number of blocks was correct.� So some USB component makes a misadjustment to screw up the number of blocks.
> > 
> > usb-storage does this, because in the past Prolific's bridges have reported the wrong number of blocks.� In fact, I'm surprised that it seems to work correctly with your drive.
> 
> It is hard to imagine a USB bridge adding 1 to the number of blocks.  Did that really happen?

No.  What happened was that the bridge reported the number of blocks,
but SCSI's READ CAPACITY command requires the device to report the
highest available block number (which is one smaller since blocks are
numbered starting from 0).

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux