question

NanaSutisna-7928 avatar image
0 Votes"
NanaSutisna-7928 asked VuDo-7158 answered

Change Bytes per Physical Sector

Dear All,

I find "Bytes per Physical Sector" on fsutil info is 512, I want to change it to be 4K, how to do that?


Regards,
Nana Sutisna

windows-server
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered

You can't change the sector size of a hard drive, the sectors are created when the hard drive is manufactured and can't be changed. You can change the NTFS cluster size (allocation unit size} of the file system using Disk Management when you format the disk.

97127-image.png



--please don't forget to Accept as answer if the reply is helpful--









image.png (84.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JennyFeng-MSFT avatar image
0 Votes"
JennyFeng-MSFT answered NanaSutisna-7928 commented

Hi,
The sector size is an inherent characteristic of the drive and cannot be changed. 512 bytes was the most common size but many newer drives are now 4096 bytes (4 K).
The drives are physically a 4k block storage, but the firmware in them is presenting the drive as 512 byte sectors, which is why you see a physical and logical sector size that are different. this is primarily for backwards compatibility with systems that don't recognize the 4k sector format.

There is no need to modify any settings on your system.
For your reference:
Advanced format (4K) disk compatibility update
https://docs.microsoft.com/en-us/windows/compatibility/advanced-format-disk-compatibility-update

Hope above information can help you.


If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

How to find logical sector?
If I run fsutil, I got below:

Bytes Per Sector : 512
Bytes Per Physical Sector : 512
Bytes Per Cluster : 65536
Bytes Per FileRecord Segment : 1024
Clusters Per FileRecord Segment : 0

Oh ya, I need change Bytes Per Physical Sector to 4k, because it is SQL Server. I already ask it on my other post https://docs.microsoft.com/en-us/answers/questions/398547/sql-server-downgrade-performance.html

Regards,
Nana Sutisna

0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered

You can change the allocation unit size when formatting the disk. There are third party utilities that you can use without format.







5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

VuDo-7158 avatar image
0 Votes"
VuDo-7158 answered

I know this sounds really weird... I'm using Win11 and have a Samsung SSD 980 NVME hard drive. If I use the storage controller driver "Samsung NVME Controller" from Samsung, the Bytes Per Physical Sector on the Samsung 980 SSD is 512. If I change the storage controller driver to "Standard NVM Express Controller" from Microsoft, the Bytes Per Physical Sector on the Samsung 980 SSD become 4096. Despites the changes, the data stored on the SSD is still functional(app can be run and files can be read,...)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.