Hi ,
Thanks for reaching out to Microsoft Q&A.
You are facing an issue where Azure disks enforce a physical sector size of 4096 bytes, which overrides your attempt to set a smaller block size (1024 bytes). The problem is that Azure-managed disks are based on SSDs, and most modern SSDs use 4K sectors natively, which makes it difficult to force a smaller block size.
Workarounds & Solutions:
Use a Loopback Device with a Smaller Blocksize
Instead of formatting the disk directly, you can create a file-backed loop device that supports a 1024-byte block size
Consider XFS Instead of EXT4
If your goal is efficient storage of small files, XFS might be a better choice than EXT4 with a smaller block size, since it handles small files better due to its inode clustering.
Use Filesystem-Level Optimizations
If your goal is to store many small files efficiently, you can also tweak inode settings while formatting. This will optimize for smaller file sizes without changing the block size.
Please feel free to click the 'Upvote' (Thumbs-up) button and 'Accept as Answer'. This helps the community by allowing others with similar queries to easily find the solution.