On Tue, 28 Oct 2014, Dave Jones wrote: > I had a USB2 enclosure that I put a disk into and used for a few years. > It reports my 3TB drive like so.. > > usb 1-3.1: New USB device found, idVendor=152d, idProduct=2329 > usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=5 > usb 1-3.1: Product: USB to ATA/ATAPI bridge > usb 1-3.1: Manufacturer: JMicron > usb 1-3.1: SerialNumber: DC11017369FF > usb-storage 1-3.1:1.0: USB Mass Storage device detected > usb-storage 1-3.1:1.0: Quirks match for vid 152d pid 2329: 8020 > scsi10 : usb-storage 1-3.1:1.0 > usbcore: registered new interface driver usb-storage > usbcore: registered new interface driver uas > scsi 10:0:0:0: Direct-Access WDC WD30 EFRX-68AX9N0 PQ: 0 ANSI: 2 CCS > sd 10:0:0:0: Attached scsi generic sg3 type 0 > sd 10:0:0:0: [sdc] Very big device. Trying to use READ CAPACITY(16). > sd 10:0:0:0: [sdc] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB) > sd 10:0:0:0: [sdc] Write Protect is off > sd 10:0:0:0: [sdc] Mode Sense: 28 00 00 00 > sd 10:0:0:0: [sdc] No Caching mode page found > sd 10:0:0:0: [sdc] Assuming drive cache: write through > sd 10:0:0:0: [sdc] Very big device. Trying to use READ CAPACITY(16). > sdc: sdc1 > sd 10:0:0:0: [sdc] Very big device. Trying to use READ CAPACITY(16). > sd 10:0:0:0: [sdc] Attached SCSI disk > > I just bought a new USB3 enclosure, and put the same 3TB disk in and saw this instead.. > > usb 1-1: New USB device found, idVendor=174c, idProduct=5106 > usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1 > usb 1-1: Product: AS2105 > usb 1-1: Manufacturer: ASMedia > usb 1-1: SerialNumber: WD-WMC1T1017369 > usb-storage 1-1:1.0: USB Mass Storage device detected > usb-storage 1-1:1.0: Quirks match for vid 174c pid 5106: 800000 > scsi11 : usb-storage 1-1:1.0 > scsi 11:0:0:0: Direct-Access WDC WD30 EFRX-68AX9N0 80.0 PQ: 0 ANSI: 5 > sd 11:0:0:0: Attached scsi generic sg3 type 0 > sd 11:0:0:0: [sdc] 732566646 4096-byte logical blocks: (3.00 TB/2.72 TiB) > sd 11:0:0:0: [sdc] Write Protect is off > sd 11:0:0:0: [sdc] Mode Sense: 23 00 00 00 > sd 11:0:0:0: [sdc] No Caching mode page found > sd 11:0:0:0: [sdc] Assuming drive cache: write through > sd 11:0:0:0: [sdc] 732566646 4096-byte logical blocks: (3.00 TB/2.72 TiB) > sdc: unknown partition table > sd 11:0:0:0: [sdc] 732566646 4096-byte logical blocks: (3.00 TB/2.72 TiB) > sd 11:0:0:0: [sdc] Attached SCSI disk > > > The difference in sector size reporting means it can't read the partition table. > Is this a bug, or a hardware flaw ? It's probably neither one, but a difference in the way the two enclosures buffer their data. It's hard to imagine how an enclosure could claim to use 512-byte sectors if the drive itself had 4-KB sectors, but the reverse is entirely possible. > The quirk listed for the newer enclosure > tells it not to use UAS, but is that a prerequisite for READ CAPACITY(16)? No, that has nothing to do with it. UAS is merely the transport; the commands that get sent are the same either way. > I'd rather not reformat & sync 3TB if I can avoid it. Am I screwed ? You could always try to get a different enclosure that worked better. :-) Still, even with the existing enclosure you might be able to work around the problem. Just rewrite the partition table, dividing all the starting-block and number-of-blocks values by 8. (Better keep a copy of the original partition table lying around, just in case!) On the other hand, I don't know if the filesystem will work after that. If it uses physical sector sizes to record where things are located, it won't work. Easy enough to try it and see, though... Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html