Product SiteDocumentation Site

Chapter 4. mkfs

4.1. Creating XFS Filesystems
4.2. mkfs - Allocation Block Size
4.3. mkfs - Allocation groups
4.4. mkfs - Stripe Alignment
4.5. mkfs - Inode Options
4.6. mkfs - Extended Attributes
4.7. mkfs - Naming options
4.8. mkfs - External Log
4.9. mkfs - Realtime
4.10. mkfs - Filesystem Image
4.11. mkfs - Sector Size
4.12. mkfs - Filesystem Label
4.13. mkfs - Prototype Filesystem

4.1. Creating XFS Filesystems

mkfs.xfs supports a large number of options for configuring many different XFS filesystems
  • See mkfs.xfs(8)
Units
  • 100s = 100 sectors = 100 x 512 bytes*
  • 100b = 100 blocks = 100 x 4 kilobytes*
  • 100k = 100 * 1024 bytes
  • Assuming 512 bytes sectors and 4 KB filesystem block size
-N option can be used to show filesystem parameters without creating a filesystem
Also provides the capability to pre-initialise the filesystem with directories and inodes, which is useful for testing