#159 closed enhancement (fixed)
Support for Verbatim Pocket Hard Drive (4KiB LLS)
Reported by: | astf | Owned by: | Christian Franke |
---|---|---|---|
Priority: | minor | Milestone: | Release 5.41 |
Component: | drivedb | Version: | 5.40 |
Keywords: | Cc: |
Description
Using "-d usbjmicron" the device (USB ID 0x18a5:0x0227) works so far, but there are three small problems:
- The reported capacity is too low (it is a 250 GB drive):
User Capacity: 137.438.952.960 bytes
- A warning is printed:
255 Unknown_Attribute 0x000a 252 252 --- Old_age Always - 0 255 Unknown_Attribute <== Data Page | WARNING: PREVIOUS ATTRIBUTE HAS TWO 254 Free_Fall_Sensor <== Threshold Page | INCONSISTENT IDENTITIES IN THE DATA
- The device works with "-d usbjmicron,x" too, but then an error is reported:
General Purpose Logging (GPL) feature set supported ATA_READ_LOG_EXT (addr=0x00:0x00, page=0, n=1) failed: scsi error medium or hardware error (serious) Read GP Log Directory failed.
I already added the device to wiki:Supported_USB-Devices.
Attachments (1)
Change History (8)
comment:1 by , 14 years ago
Milestone: | → Release 5.41 |
---|
by , 14 years ago
comment:2 by , 14 years ago
112-127: 3f 00 10 fc fb 00 00 00 ff ff ff 0f 00 00 07 00 |?...............| word 60-61...^^ ^^ ^^ ^^ ... 192-207: 00 00 00 00 00 00 00 00 2e 8b a3 03 00 00 00 00 |................| word 100-103...^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^
This drive apparently returns bogus information in word 100-103 ("Total Number of User Addressable Logical Sectors for 48-bit commands"). Legacy info in word 60-61 is set to max 28-bit value which is OK:
word 60-61 = 0xfffffff = 268,435,455 sectors = 137,438,952,960 bytes word 100-103 = 0x0003a38b2e = 61,049,646 sectors = 31,257,418,752 bytes
smartctl prints the larger value in this case.
Possibly disk firmware bug hidden behind SCSI->ATA translation in USB bridge.
comment:3 by , 14 years ago
61,049,646 sectors = 31,257,418,752 bytes
These values actually make sense, if you assume 4096 bytes per sector instead of 512 bytes. This sector size is confirmed by this Samsung document (page 30).
comment:4 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
Summary: | Support for Verbatim Pocket Hard Drive → Support for Verbatim Pocket Hard Drive (4KiB LLS) |
"Sector Size 4K" in the specs typically means 4KiB physical sectors (LPS) but 512B logical sectors.
But this drive actually reports 4KiB physical and logical sectors in words 106 and 117-118. Interestingly it also reports a false LBA28 size and ATA support for only ATA-6 revision 1 (2000). ATA-6 defined words 104-126 as "Reserved". LLS was added later in ATA-7 revision 3a (2003).
Thanks for this very first testcase for LLS. I will fix reported capacity soon.
comment:6 by , 14 years ago
Please test current SVN if possible. Should work now without "-d usbjmicron".
comment:7 by , 14 years ago
works :)
smartctl 5.41 2011-04-05 r3310 [x86_64-unknown-linux-gnu-2.6.37-ARCH] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Model Family: SAMSUNG SpinPoint N3U-3 (USB, 4KiB LLS) ... User Capacity: 250.059.350.016 bytes [250 GB] Sector Size: 4096 bytes logical/physical
Interesting...
1024B LLS (Long Logical Sectors)?
DCO (Device Configuration Overlay) active?
HPA (Host Protected Area) active?
Please provide output of "
smartctl -d usbjmicron -r ataioctl,2 -q noserial -i /dev/ice
" for further diagnostics (as attachment).This should be fixed since r3132.
Apparently 48-bit ATA commands do not work and ",x" should not be used.