Product SiteDocumentation Site

4.11. mkfs - Sector Size

Specifies the fundamental sector size of the filesystem.
Default value is 512 bytes.
The minimum value for sector size is 512; the maximum is 32768 (32 KB) or the filesystem block size (whichever is smaller).
To create a filesystem on a device that has a sector size of 1KB you would use:
mkfs.xfs -s size=1024 device

Note

xfsprogs 3.1.0 and newer will automatically detect the appropriate sector size for a device