Menu

#91 `set-sector-size` out of range

v1.0 (example)
closed
nobody
None
5
2022-08-23
2022-08-23
copyliu
No

I have a WD HC550 (WUH721816ALE6L4) disk with hdparm -I like this

        Logical  Sector size:                   512 bytes [ Supported: 2048 256 ]
        Physical Sector size:                  4096 bytes

then I ran hdparm --set-sector-size 2048 can set the sector size to 4096

        Logical  Sector size:                  4096 bytes [ Supported: 2048 256 ]
        Physical Sector size:                  4096 bytes

fdisk -l result:

Disk /dev/sdc: 14.55 TiB, 16000900661248 bytes, 3906469888 sectors
Disk model: WUH721816ALE6L4 
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes

now I want to change the sector size to 512,
I ran hdparm --set-sector-size 512 return ERROR: unsupported sector size: 512
I assume we must run hdparm --set-sector-size 256 but return --set-sector-size: sector size out of range.

here is some question, is that [ Supported: 2048 256 ] a normal thing? can set-sector-size support 256 for this disk?

Discussion

  • copyliu

    copyliu - 2022-08-23

    oh , debian stable provided hdparm version is 9.60, update to newest hdparm everything is good :)

     
  • Mark Lord

    Mark Lord - 2022-08-23
    • status: open --> closed
     
  • Mark Lord

    Mark Lord - 2022-08-23

    Yes, that got fixed ages ago! :)

     

Log in to post a comment.