[PLUG] Hard drive: size discrepancy

Galen Seitz galens at seitzassoc.com
Mon Nov 12 17:56:31 UTC 2018


On 11/12/2018 09:45 AM, Rich Shepard wrote:
> On Mon, 12 Nov 2018, Galen Seitz wrote:
> 
>> The 32 bit limit that was mentioned in an Ubuntu forum relates to some
>> USB<->SATA converters. Apparently some controllers have internal sector
>> registers that are only 32 bits.
>>
>> Number of 512 byte sectors in 3 TB drive
>> 3e12 / 512 = 5.9e9 sectors
>>
>> Assuming 32 bit wrapping (modulo 2^32)
>> 5.9e9 - 2^32 = 1.6e9 sectors
>>
>> Drive size after wrapping
>> 1.6e9 * 512 = 801 GB
> 
> Galen,
> 
>    So the sector size should be increased?

No, you can't change the sector size.  If you have the disk directly 
connected to your system using SATA, I can't explain why you are having 
this problem.

If you can, connect the disk via SATA and post the output of this command:
sudo parted /dev/my_disk print


galen
-- 
Galen Seitz
galens at seitzassoc.com



More information about the PLUG mailing list