Reply
Occasional Contributor
Malvineous
Posts: 4
Registered: ‎06-11-2011
0

4k sector drive reporting 512 byte sectors to OS - why?

Hi all, I have just purchased two Western Digital WD20EARS disks and discovered that they incorrectly report their physical sector size to the OS as 512 bytes, even though the specs suggest they are using 4k sectors internally:
/sys/block/sdh/device/model: WDC WD20EARS-00M
/sys/block/sdh/queue/physical_block_size: 512
/sys/block/sdh/queue/logical_block_size: 512
/sys/block/sdh/alignment_offset: 0
I am worried that the OS kernel is going to think the drive writes only need to be aligned on 512-byte boundaries instead of 4k. Is there some way I can make the drive correctly report its physical sector size, as apparently some other WD drives (and many non-WD drives) do?
Frequent Advisor
rtguille
Posts: 65
Registered: ‎03-26-2011
0

Re: 4k sector drive reporting 512 byte sectors to OS - why?

it is ok, that's 'advanced format', the firmware emulates a 512 byte sector disk.

thw WD20EARS is a 512 byte logical / 4K physical harware sector drive, that's it.

 

just do not forget to align the partitions in order to avoid the performance penality of having

the partitions not aligned.

Occasional Contributor
Malvineous
Posts: 4
Registered: ‎06-11-2011
0

Re: 4k sector drive reporting 512 byte sectors to OS - why?

Yes, that's my problem - it *emulates* a 512-byte sector disk. How do I turn that off, and make it behave like a real 4k sector disk? (i.e. with a lower maximum LBA)
Honored Contributor
fzabkar
Posts: 1,785
Registered: ‎02-06-2010
0

Re: 4k sector drive reporting 512 byte sectors to OS - why?

A drive reports its Advanced Format capabilities via the ATA Identify Device command.

See these threads for examples:

http://community.wdc.com/t5/Desktop/WD20EARS-Windows-7-partitioning-and-formatting/m-p/181530#M5325
http://community.wdc.com/t5/Other-Internal-Drives/WD3200BEKT-Dell-E6410-Win7-x64-sp1-slow-disk/td-p/...

The following thread explains how to access your drive's Identify Device data in Linux:
http://forum.hddguru.com/need-read-hdd-identify-data-t17036.html

Occasional Contributor
Malvineous
Posts: 4
Registered: ‎06-11-2011
0

Re: 4k sector drive reporting 512 byte sectors to OS - why?

[ Edited ]

Thanks for the info! I used smartctl under Linux and viewed the IDENTIFY DEVICE hex data. The model number correctly appears in words 27-46 as per the ATA8 spec, so it would seem I am looking at the correct data.

 

However word 106 (physical/logical sector size) is zero, as are words 117-118 (words per logical sector).

 

You mentioned in the linked thread that this information is optional, so I guess WD chose to omit it from these drives for some reason. This is a shame, as one of the reasons why I chose this drive was because I wanted to try out these 4k sectors to see how my system behaved. Maybe I should just return the drive? Seems a shame when there's nothing mechanically wrong with it, but I'm guessing there's not much likelihood of getting a firmware update any time soon to fix this... :-(

Forums | Ideas | News and Announcements | Register | Sign in | Help | Forum Guidelines
Copyright © 2001 - 2014 Western Digital Technologies, Inc. All rights reserved. | Trademarks | Privacy | Community Terms of Service | Site Terms of Use | Copyright | Contact WD