Question: how does mkfs work linux?
Answer: The mkfs (i.e., make filesystem) command is used to create a filesystem (i.e., a system for organizing a hierarchy of directories, subdirectories and files) on a formatted storage device or media, usually a partition on a hard disk drive (HDD), A partition is a logically independent section of a HDD.