From dc7c28a5d55c74c0d3b97591d89d6e3510fab8a2 Mon Sep 17 00:00:00 2001 From: John Curcio Date: Wed, 2 Oct 2019 13:06:35 -0300 Subject: [PATCH] mkfs: add page (#3284) --- pages/linux/mkfs.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/linux/mkfs.md diff --git a/pages/linux/mkfs.md b/pages/linux/mkfs.md new file mode 100644 index 0000000000..40715330d2 --- /dev/null +++ b/pages/linux/mkfs.md @@ -0,0 +1,16 @@ +# mkfs + +> Build a Linux filesystem on a hard disk partition. +> This command is deprecated in favor of filesystem specific mkfs. utils. + +- Build a Linux ext2 filesystem on a partition: + +`mkfs {{path/to/partition}}` + +- Build a filesystem of a specified type: + +`mkfs -t {{ext4}} {{path/to/partition}}` + +- Build a filesystem of a specified type and check for bad blocks: + +`mkfs -c -t {{ntfs}} {{path/to/partition}}`