From 0fe1466e0597ff4f4c422068d759ece32b945f2c Mon Sep 17 00:00:00 2001 From: John Curcio Date: Mon, 30 Sep 2019 23:46:23 -0300 Subject: [PATCH 1/3] mkfs: add page --- 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 0000000000000..b2629a1488be5 --- /dev/null +++ b/pages/linux/mkfs.md @@ -0,0 +1,16 @@ +# mkfs + +> Build a Linux filesystem on a hard disk partition. +> mkfs is deprecated in favour 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 {{filesystem_type}} {{path/to/partition}}` + +- Build a filesystem of a specified type and check for bad blocks: + +`mkfs -c -t {{filesystem_type}} {{path/to/partition}}` From a2ab7a2fd399a4458d7dae180ac7fa7f9a1b78f6 Mon Sep 17 00:00:00 2001 From: John Curcio Date: Mon, 30 Sep 2019 23:50:25 -0300 Subject: [PATCH 2/3] Fix linting issues --- pages/linux/mkfs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/mkfs.md b/pages/linux/mkfs.md index b2629a1488be5..86d54c948dc1b 100644 --- a/pages/linux/mkfs.md +++ b/pages/linux/mkfs.md @@ -1,7 +1,7 @@ # mkfs > Build a Linux filesystem on a hard disk partition. -> mkfs is deprecated in favour of filesystem specific mkfs. utils. +> This mkfs frontend is deprecated in favour of filesystem specific mkfs. utils. - Build a Linux ext2 filesystem on a partition: From b4eb3ac59511fd5c414986f0d341e7d42a3f03c8 Mon Sep 17 00:00:00 2001 From: John Curcio Date: Wed, 2 Oct 2019 10:22:48 -0300 Subject: [PATCH 3/3] Add examples of filesystem type Add examples of filesystem type ext4 and ntfs Enhance deprecated description of mkfs --- pages/linux/mkfs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/linux/mkfs.md b/pages/linux/mkfs.md index 86d54c948dc1b..40715330d2d23 100644 --- a/pages/linux/mkfs.md +++ b/pages/linux/mkfs.md @@ -1,7 +1,7 @@ # mkfs > Build a Linux filesystem on a hard disk partition. -> This mkfs frontend is deprecated in favour of filesystem specific mkfs. utils. +> This command is deprecated in favor of filesystem specific mkfs. utils. - Build a Linux ext2 filesystem on a partition: @@ -9,8 +9,8 @@ - Build a filesystem of a specified type: -`mkfs -t {{filesystem_type}} {{path/to/partition}}` +`mkfs -t {{ext4}} {{path/to/partition}}` - Build a filesystem of a specified type and check for bad blocks: -`mkfs -c -t {{filesystem_type}} {{path/to/partition}}` +`mkfs -c -t {{ntfs}} {{path/to/partition}}`