Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 2014 05:54:38 -0500
From:      Wes Morgan <morganw@chemikals.org>
To:        freebsd-usb@freebsd.org
Subject:   LBA Error on 128GB Flash Drive
Message-ID:  <CALCz5MHdpxmkBE23-Vj%2BZLfzTaZZT6FpKW7jJT_NZbiqDQ%2BBzg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I've got an ADATA 128gb USB3 flash drive (
http://www.newegg.com/Product/Product.aspx?Item=N82E16820211819) that is
giving me LBA errors. It appears that the drive is being mis-identified and
reporting the wrong number of sectors. Camcontrol says the last block
is 246960127, which I believe to be correct because any attempt to write to
a block after that fails. However, the kernel thinks that the device
has 247484416 sectors and pretty much everything fails to use the device
properly because partition tables and filesystems like to store things at
the end of devices. This is the second one of these I've had and both have
the same error. My laptop is fairly old and USB2 only, but I've got some
newer machines with USB3 ports and they have the same problem. Attaching
the drive to a Linux machine reports the correct number of blocks.

All my FreeBSD machines are running 10-stable.

Camcontrol output:
[morganw@mercury:~$]: camcontrol readcap da0
Last Block: 246960127, Block Length: 512 bytes

dmesg output:
ugen0.5: <ADATA> at usbus0
umass0: <ADATA ADATA USB Flash Drive, class 0/0, rev 2.10/10.75, addr 5> on
usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x0100
umass0:4:0:-1: Attached to scbus4
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
da0: <ADATA USB Flash Drive 1.00> Removable Direct Access SCSI-6 device
da0: Serial Number 1411216542340002
da0: 40.000MB/s transfers
da0: 120842MB (247484416 512 byte sectors: 255H 63S/T 15405C)
da0: quirks=0x2<NO_6_BYTE>
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 0e c0 4f ff 00 00 01 00
(da0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI status: Check Condition
(da0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:21,0 (Logical block
address out of range)
(da0:umass-sim0:0:0:0): Error 22, Unretryable error
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 0e c0 4f ff 00 00 01 00
(da0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI status: Check Condition
(da0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:21,0 (Logical block
address out of range)
(da0:umass-sim0:0:0:0): Error 22, Unretryable error
(da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 0e c0 4f ff 00 00 01 00
(da0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI status: Check Condition
(da0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:21,0 (Logical block
address out of range)
(da0:umass-sim0:0:0:0): Error 22, Unretryable error


Linux output:

[662425.835482] usb 4-4: new SuperSpeed USB device number 2 using xhci_hcd
[662425.851796] usb 4-4: New USB device found, idVendor=125f, idProduct=de7a
[662425.851802] usb 4-4: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[662425.851814] usb 4-4: Product: ADATA USB Flash Drive
[662425.851815] usb 4-4: Manufacturer: ADATA
[662425.851816] usb 4-4: SerialNumber: 1411216542340002
[662425.857974] usb-storage 4-4:1.0: USB Mass Storage device detected
[662425.858093] scsi6 : usb-storage 4-4:1.0
[662425.858723] usbcore: registered new interface driver usb-storage
[662426.856074] scsi 6:0:0:0: Direct-Access     ADATA    USB Flash Drive
 1.00 PQ: 0 ANSI: 6
[662426.856267] sd 6:0:0:0: Attached scsi generic sg1 type 0
[662426.856513] sd 6:0:0:0: [sdb] 246960128 512-byte logical blocks: (126
GB/117 GiB)
[662426.857069] sd 6:0:0:0: [sdb] Write Protect is off
[662426.857073] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
[662426.857543] sd 6:0:0:0: [sdb] Write cache: disabled, read cache:
disabled, doesn't support DPO or FUA
[662426.860162]  sdb: sdb1
[662426.860889] sd 6:0:0:0: [sdb] Attached SCSI removable disk



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALCz5MHdpxmkBE23-Vj%2BZLfzTaZZT6FpKW7jJT_NZbiqDQ%2BBzg>