Build a filesystem of a specified type and check for bad blocks

mkfs

  • Build a Linux filesystem on a hard disk partition.
    This command is deprecated in favor of filesystem specific mkfs.<type> utils.
    More information: <https://manned.org/mkfs>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

mkfs -c -t {{ntfs}} {{path/to/partition}}

click the source code to copy install mkfs on any operating system with command-not-found.com