{"id":4801,"date":"2023-01-30T11:00:22","date_gmt":"2023-01-30T11:00:22","guid":{"rendered":"https:\/\/linuxsimply.com\/?p=4801"},"modified":"2023-08-30T07:09:37","modified_gmt":"2023-08-30T07:09:37","slug":"mkfs-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/","title":{"rendered":"The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]"},"content":{"rendered":"<p style=\"text-align: justify;\">The <strong>mkfs <\/strong>command in <strong>Linux <\/strong>stands for \u201c<strong>M<\/strong>a<strong>k<\/strong>e <strong>F<\/strong>ile <strong>S<\/strong>ystem\u201d. It creates a filesystem in the specified disk space\/partition passed as an argument. In this article, I will demonstrate how you can utilize the <strong>mkfs <\/strong>command with practical examples.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#A_Description\" >A. Description<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#B_File_Systems\" >B. File Systems<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#Useful_Filesystems\" >Useful Filesystems<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#C_Syntax\" >C. Syntax<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#D_Options\" >D. Options<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#Useful_Options\" >Useful Options<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#Prerequisites_for_Using_the_%E2%80%9Cmkfs%E2%80%9D_Command_in_Linux\" >Prerequisites for Using the \u201cmkfs\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#Practical_Examples_of_the_%E2%80%9Cmkfs%E2%80%9D_Command_in_Linux\" >Practical Examples of the \u201cmkfs\u201d Command in Linux<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#Example_1_Creating_a_File_System_Using_the_%E2%80%9Cmkfs%E2%80%9D_Command_in_Linux\" >Example 1: Creating a File System Using the \u201cmkfs\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#Example_2_Creating_a_File_System_of_Specified_Size_Using_the_%E2%80%9Cmkfs%E2%80%9D_Command_in_Linux\" >Example 2: Creating a File System of Specified Size Using the \u201cmkfs\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#Example_3_Creating_a_File_System_of_Specified_Type_Using_the_%E2%80%9Cmkfs%E2%80%9D_Command_in_Linux\" >Example 3: Creating a File System of Specified Type Using the \u201cmkfs\u201d Command in Linux<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#Example_4_Checking_for_Bad_Blocks_While_Creating_a_File_System_Using_the_%E2%80%9Cmkfs%E2%80%9D_Command\" >Example 4: Checking for Bad Blocks While Creating a File System Using the \u201cmkfs\u201d Command<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#Miscellaneous_Creating_a_Mount_Point_for_the_Newly_Created_File_System\" >Miscellaneous: Creating a Mount Point for the Newly Created File System<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"A_Description\"><\/span>A. Description<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The <strong>mkfs <\/strong>command in <strong>Linux <\/strong>is actually a frontend for the various filesystems available in <strong>Linux<\/strong>. It builds a filesystem of the specified type.<\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"B_File_Systems\"><\/span>B. File Systems<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">There are a number of filesystems that can be created using the <strong>mkfs<\/strong> command in <strong>Linux<\/strong>. The filesystem is basically the structure of how the data is stored and retrieved. You can list the available filesystems under <strong>Linux <\/strong>by typing the <strong>mkfs <\/strong>command and then pressing the <strong>TAB <\/strong>button <strong>twice<\/strong>. For clarity, follow the instruction to generate the list of the filesystems.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">mkfs<\/code><\/pre>\n<p style=\"text-align: justify;\">\u278c Now, press the <strong>TAB<\/strong> button <strong>twice<\/strong>.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the image below, you can see a list of filesystems related to the <strong>mkfs <\/strong>command has been generated.<img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-4810\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-1.png\" alt=\"List of filesystems to be created using mkfs command.\" width=\"825\" height=\"70\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-1.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-1-300x25.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-1-766x65.png 766w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h4 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Useful_Filesystems\"><\/span><span style=\"color: #800080;\"><strong>Useful Filesystems<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\">Below are the descriptions of some useful filesystems in <strong>Linux<\/strong>.<\/p>\n<div class=\"su-list\" style=\"margin-left:20px\">\n<ul>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>EXT2: <\/strong>The first file system used in <strong>Linux <\/strong>distributions. It tends to lose data in case of power failure.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>EXT3: <\/strong>An improved version of the ext2 that includes journaling support. In case of power failure, it can check and repair the file system.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>EXT4: <\/strong>The ext4 file system is a further improvement of the ext3. Introduced new and robust integral features offering better performance and support for larger filesystems.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>BFS: <\/strong>It stands for the <strong>Boot File System (BFS) <\/strong>on <strong>Linux<\/strong>, originally developed for the BeOS operating system. Used for boot partition of the system.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>FAT: <\/strong>The<strong> File Allocation Table<\/strong> <strong>(FAT)<\/strong> was developed to use on floppy disks. This is a non-journaling filesystem and is not compatible with different operating systems. However, It is used for USB drives and other removable devices.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>CRAMFS: <\/strong>A compressed filesystem designed for read-only uses. It is a small and fast filesystem for embedded systems and bootable Linux images.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>MSDOS: <\/strong>A variant of the FAT that stands for <strong>Microsoft Disk Operating System<\/strong>. It is a compatible filesystem for both <strong>Windows<\/strong> and <strong>Linux<\/strong> operating systems.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>VFAT: <\/strong>The <strong>Virtual File Allocation Table (VFAT) <\/strong>is an extended version of the <strong>FAT<\/strong>. It supports long file names and is compatible with other operating systems.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>MINIX: <\/strong>Found on older<strong> Linux<\/strong> distributions. It was a \u201cmini-Unix\u201d operating system designed for a simplified version of the Unix OS.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>NTFS: <\/strong>The default file system for <strong>Windows NT<\/strong> that offers several advanced features. It is a Microsoft journaling filesystem and stands for The <strong>New Technology File System<\/strong>.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><\/div>\n<p style=\"text-align: justify;\"><div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<strong>NOTE: Journaling<\/strong> in <strong>Filesystems <\/strong>is a feature that maintains the consistency of the filesystem by recovering the data in case of power failure. The technique avoids data loss by keeping a record or journal of the changes made and restores the filesystem to a stable state.<br \/>\n<\/div><\/div>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"C_Syntax\"><\/span>C. Syntax<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">The syntax of the <strong>mkfs <\/strong>command in <strong>Linux <\/strong>can contain multiple <strong>options<\/strong> and <strong>arguments<\/strong>. The <strong>DEVICE<\/strong> is an <strong>argument<\/strong> that usually refers to a hard disk partition or, a regular file where the desired filesystem should be created. The <strong>SIZE <\/strong>is another argument referring to the <strong>number of Blocks <\/strong>specified to build a filesystem. Enclosed by the square brackets, it is an optional parameter. However, some programs may not automatically detect the device&#8217;s <strong>SIZE <\/strong>and require the parameter to be specified.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">mkfs [option]... [fs-option]... device [size]<\/code><\/pre>\n<p style=\"text-align: justify;\"><div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<strong>Note: <\/strong>In the above syntax, the terms enclosed by the <strong>square brackets<\/strong> are not mandatory and the <strong>3 dots<\/strong> indicate that multiple <strong>options<\/strong> can be utilized at the same time. Furthermore, keep in mind that the generic <strong>options <\/strong>should precede and not be combined with the <strong>fs-options.<\/strong><br \/>\n<\/div><\/div>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"D_Options\"><\/span>D. Options<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">There are several options for the <strong>mkfs <\/strong>command in <strong>Linux<\/strong>. Some of the most useful options are described below. However, you can look at the <strong>man page<\/strong> for more details.<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">man mkfs<\/code><\/pre>\n<h4 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Useful_Options\"><\/span><span style=\"color: #800080;\"><strong>Useful Options<\/strong><\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p style=\"text-align: justify;\"><div class=\"su-list\" style=\"margin-left:20px\">\n<ul style=\"text-align: justify;\">\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-b block-size: <\/strong>Specifies the size of blocks in bytes. The value ranges from 1024-65536 and must be a power of 2.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-c: <\/strong>Checks the device space for bad blocks.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>fs-options: <\/strong>Passes filesystem-specific options.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-t type: <\/strong>Specifies the type of filesystem to be created.<\/li>\n<li><i class=\"sui sui-arrow-right\" style=\"color:#000000\"><\/i> <strong>-V: <\/strong>Displays verbose output including filesystem-specific commands.<\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><\/div>\n<p style=\"text-align: justify;\"><div class=\"su-note\"  style=\"border-color:#cedfe2;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#E8F9FC;border-color:#ffffff;color:#333333;\">\n<strong>NB:<\/strong> The <strong>options<\/strong> in <strong>Linux<\/strong> <a href=\"https:\/\/linuxsimply.com\/cli-in-linux\/\" target=\"_blank\" rel=\"noopener\"><strong>CLI (Command Line Interface)<\/strong><\/a> are all <strong>case-sensitive<\/strong>, So be cautious while using them.<br \/>\n<\/div><\/div>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Prerequisites_for_Using_the_%E2%80%9Cmkfs%E2%80%9D_Command_in_Linux\"><\/span>Prerequisites for Using the \u201cmkfs\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">The <strong>mkfs <\/strong>command can be destructive since it creates a new filesystem on the mentioned device space. If you mistakenly specify a wrong partition the existing data will be overwritten. Therefore, while exercising this command it is recommended to apply the commands to a backup <strong>image file<\/strong>. Performing <strong>mkfs <\/strong>commands in a backup file mitigates the risk of data loss. Follow the steps below to create the <strong>image file<\/strong> for further experimentation.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">dd if=\/dev\/zero of=~\/backup.img bs=1M count=100<\/code><\/pre>\n<p style=\"text-align: justify;\">\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the image below, you can see that I have created an image file using the <strong>dd<\/strong> command in <strong>Linux<\/strong>. I used <strong>100 blocks (count = 100) <\/strong>of size <strong>1MB<\/strong> <strong>(bs = 1MB)<\/strong> which generated an image file of size <strong>100MB<\/strong>.<img decoding=\"async\" class=\"aligncenter size-full wp-image-4817\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-7.png\" alt=\"Creating disk image to work with mkfs command.\" width=\"825\" height=\"107\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-7.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-7-300x39.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-7-763x99.png 763w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Practical_Examples_of_the_%E2%80%9Cmkfs%E2%80%9D_Command_in_Linux\"><\/span>Practical Examples of the \u201cmkfs\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">You will be able to create various filesystems in <strong>Linux <\/strong>using the <strong>mkfs <\/strong>command. In this section, I will present some practical uses of the command to modify your experience with the <strong>Linux <\/strong>filesystem.<\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Example_1_Creating_a_File_System_Using_the_%E2%80%9Cmkfs%E2%80%9D_Command_in_Linux\"><\/span>Example 1: Creating a File System Using the \u201cmkfs\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can create a file system using the <strong>mkfs <\/strong>command in <strong>Linux<\/strong>. By default, the command will create an <strong>ext2 <\/strong>file system. In this example, I will create a filesystem in the <strong>backup.img <\/strong>disk space. To do the same you can follow the steps below.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">mkfs ~\/backup.img<\/code><\/pre>\n<p style=\"text-align: justify;\">\u278c Now, press the <strong>ENTER<\/strong> button.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the image below, you can see that I have created a file system using the <strong>mkfs <\/strong>command in <strong>Linux<\/strong>.<img decoding=\"async\" class=\"aligncenter size-full wp-image-4811\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-2.png\" alt=\"Creating a file system using the mkfs command in Linux.\" width=\"825\" height=\"392\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-2.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-2-300x143.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-2-766x364.png 766w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Example_2_Creating_a_File_System_of_Specified_Size_Using_the_%E2%80%9Cmkfs%E2%80%9D_Command_in_Linux\"><\/span>Example 2: Creating a File System of Specified Size Using the \u201cmkfs\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can create a file system of a specified block size using the <strong>mkfs <\/strong>command in <strong>Linux<\/strong>. You will need to use option <strong>-b <\/strong>and mention the desired block size. In this example, I will create a file system of block size <strong>1024<\/strong>. You can do the same by following the given instructions.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">mkfs -b 1024 ~\/backup.img<\/code><\/pre>\n<p style=\"text-align: justify;\">\u278c Press <strong>ENTER<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u2779 Now, type the below command to display the file size on the terminal:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">tune2fs -l ~\/backup.img | grep &quot;Block size&quot;<\/code><\/pre>\n<p style=\"text-align: justify;\">\u277a Again, hit <strong>ENTER.<\/strong><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have created a file system of a specified block size. You can use the <strong>tune2fs<\/strong> command to verify the size of the newly created file system.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8066\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-3-1.png\" alt=\"Creating a file system of a specified block size using the mkfs command in Linux.\" width=\"700\" height=\"379\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-3-1.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-3-1-300x162.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-3-1-766x415.png 766w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Example_3_Creating_a_File_System_of_Specified_Type_Using_the_%E2%80%9Cmkfs%E2%80%9D_Command_in_Linux\"><\/span>Example 3: Creating a File System of Specified Type Using the \u201cmkfs\u201d Command in Linux<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can specify the filesystem type you want to create using the <strong>mkfs <\/strong>command in <strong>Linux<\/strong>. You will need to use the option <strong>-t <\/strong>along with the file type. In this example, I will create a filesystem of the type <strong>FAT<\/strong>. You can do the same by following the steps below.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u278a Open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">mkfs -t fat ~\/backup.img<\/code><\/pre>\n<p style=\"text-align: justify;\">\u278c Press the <strong>ENTER<\/strong> button.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the below image, you can see that\u00a0 I have created a <strong>fat<\/strong> file system. You can use the <strong>file <\/strong>command to view the type of the filesystem.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4813\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-4.png\" alt=\"Specifying the filesystem type you want to create using the mkfs command in Linux.\" width=\"825\" height=\"144\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-4.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-4-300x52.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-4-768x134.png 768w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h3 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Example_4_Checking_for_Bad_Blocks_While_Creating_a_File_System_Using_the_%E2%80%9Cmkfs%E2%80%9D_Command\"><\/span>Example 4: Checking for Bad Blocks While Creating a File System Using the \u201cmkfs\u201d Command<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: justify;\">You can check for a bad block while creating a file using the <strong>mkfs <\/strong>command in <strong>Linux<\/strong>. To do so you will need to use option <strong>-c<\/strong>. In this example, I will look for bad blocks while creating a file system. Follow the steps below to do the same.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u278a At first, launch the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u278b Type the following command in the command prompt:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">mkfs -c ~\/backup.img<\/code><\/pre>\n<p style=\"text-align: justify;\">\u278c Hit the <strong>ENTER<\/strong> button.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the given image, you can see that I have checked for bad blocks while creating the file system.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4814\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-5.png\" alt=\"Checking for a bad block while creating a file using the mkfs command.\" width=\"825\" height=\"292\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-5.png 825w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-5-300x106.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-5-766x271.png 766w\" sizes=\"(max-width: 825px) 100vw, 825px\" \/><\/p>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Miscellaneous_Creating_a_Mount_Point_for_the_Newly_Created_File_System\"><\/span>Miscellaneous: Creating a Mount Point for the Newly Created File System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In the above examples, I have created filesystems with temporary setup points. Besides this, you can also create a mount point for the desired filesystem. In this example, I will first create a directory named <strong>mybackup<\/strong> to use as the mount point of the filesystem <strong>backup.img<\/strong>. Then, I will give permission to my current user \u201c<strong>anonnya<\/strong>\u201d to access the mount point. You can follow the steps below to do the same.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Steps to Follow &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">\u278a At first, open the <strong>Ubuntu Terminal<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u278b Then, type the command below to create a directory:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo mkdir \/mnt\/mybackup<\/code><\/pre>\n<p style=\"text-align: justify;\">\u278c Hit <strong>ENTER<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u2779 Type your <strong>Password<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u277a Again, hit <strong>ENTER<\/strong><\/p>\n<p style=\"text-align: justify;\">\u277b Write the given command to mount the filesystem:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo mount ~\/backup.img \/mnt\/mybackup<\/code><\/pre>\n<p style=\"text-align: justify;\">\u277c Press <strong>ENTER<\/strong>.<\/p>\n<p style=\"text-align: justify;\">\u277d After that, type the following command to set user permissions:<\/p>\n<pre><code class=\"language-bash\" data-line=\"\">sudo chown anonnya:users \/mnt\/mybackup<\/code><\/pre>\n<p style=\"text-align: justify;\">\u277e Finally, press <strong>ENTER<\/strong>.<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #800080;\"><strong>Output &gt;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\">In the following image, you can see that I have mounted the filesystem to the <strong>mybackup<\/strong> directory. Furthermore, you can use the <strong>ls <\/strong>command with <strong>-l <\/strong>option to view the updated user permissions.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8065\" src=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-6-1.png\" alt=\"Creating a Mount Point for the Newly Created File System.\" width=\"700\" height=\"199\" srcset=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-6-1.png 700w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-6-1-300x85.png 300w, https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux-6-1-767x218.png 767w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/p>\n<h2 style=\"text-align: justify;\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: justify;\">In this article, I have illustrated the most common uses of the <strong>mkfs <\/strong>command in <strong>Linux.<\/strong> Learning these practical examples will help you create different filesystems from the <strong>command line<\/strong>. I hope the completion of the given tasks helps you with your experience in <strong>Linux <\/strong>and makes you a power user.<\/p>\n<hr \/>\n<p><span style=\"color: #000080; font-size: 18pt;\"><strong>Similar Readings<\/strong><\/span><\/p>\n<ul>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/shred-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cshred\u201d Command in Linux [9 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/dd-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cdd\u201d Command in Linux [7+ Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/du-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cdu\u201d Command in Linux [14 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/mount-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cmount\u201d Command in Linux [15 Practical Examples]<\/a><\/strong><\/li>\n<li><strong><a class=\"in-cell-link\" href=\"https:\/\/linuxsimply.com\/mke2fs-command-in-linux\/\" target=\"_blank\" rel=\"noopener\">The \u201cmke2fs\u201d Command in Linux [10 Practical Examples]<\/a><\/strong><\/li>\n<\/ul>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;4801&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The mkfs command in Linux stands for \u201cMake File System\u201d. It creates a filesystem in the specified disk space\/partition passed &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]\" class=\"read-more button\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#more-4801\" aria-label=\"Read more about The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]\">Read more<\/a><\/p>\n","protected":false},"author":314896,"featured_media":4816,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[61],"class_list":["post-4801","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands","tag-disc-management-commands","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]<\/title>\n<meta name=\"description\" content=\"The mkfs command in Linux is the abbreviation for &quot;Make File Systems&quot;. Users can create various types of filesystems using this command.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]\" \/>\n<meta property=\"og:description\" content=\"The mkfs command in Linux is the abbreviation for &quot;Make File Systems&quot;. Users can create various types of filesystems using this command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxSimply\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/profile.php?id=100005994046772&amp;mibextid=ZbWKwL\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-30T11:00:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-30T07:09:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Anonnya Ghosh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anonnya Ghosh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/\"},\"author\":{\"name\":\"Anonnya Ghosh\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/b53a69b64755f081b3c5951d72ba9c7c\"},\"headline\":\"The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]\",\"datePublished\":\"2023-01-30T11:00:22+00:00\",\"dateModified\":\"2023-08-30T07:09:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/\"},\"wordCount\":1677,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/mkfs-command-in-linux.png\",\"keywords\":[\"disc management commands\"],\"articleSection\":[\"Linux Commands\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/\",\"name\":\"The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/mkfs-command-in-linux.png\",\"datePublished\":\"2023-01-30T11:00:22+00:00\",\"dateModified\":\"2023-08-30T07:09:37+00:00\",\"description\":\"The mkfs command in Linux is the abbreviation for \\\"Make File Systems\\\". Users can create various types of filesystems using this command.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/mkfs-command-in-linux.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/mkfs-command-in-linux.png\",\"width\":400,\"height\":400,\"caption\":\"mkfs command in linux.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/mkfs-command-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxsimply.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#website\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"name\":\"LinuxSimply\",\"description\":\"All About Linux\",\"publisher\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxsimply.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#organization\",\"name\":\"LinuxSimply\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/LinuxSimply-New-Logo-Without-Icon.png\",\"width\":355,\"height\":48,\"caption\":\"LinuxSimply\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/#\\\/schema\\\/person\\\/b53a69b64755f081b3c5951d72ba9c7c\",\"name\":\"Anonnya Ghosh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"url\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"contentUrl\":\"https:\\\/\\\/linuxsimply.com\\\/wp-content\\\/uploads\\\/2023\\\/09\\\/Anonnya-Ghosh-II-96x96.png\",\"caption\":\"Anonnya Ghosh\"},\"description\":\"Hello there! I am Anonnya Ghosh, a Computer Science and Engineering graduate from Ahsanullah University of Science and Technology (AUST). Currently, I am working as a Linux Content Developer Executive at SOFTEKO. The strong bond between Linux and cybersecurity drives me to explore this world of open-source architecture. I aspire to learn new things further and contribute to the field of CS with my experience. Read Full Bio\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/profile.php?id=100005994046772&mibextid=ZbWKwL\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/anonnya-ghosh-6a934b211\"],\"url\":\"https:\\\/\\\/linuxsimply.com\\\/author\\\/anonya\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]","description":"The mkfs command in Linux is the abbreviation for \"Make File Systems\". Users can create various types of filesystems using this command.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]","og_description":"The mkfs command in Linux is the abbreviation for \"Make File Systems\". Users can create various types of filesystems using this command.","og_url":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/","og_site_name":"LinuxSimply","article_author":"https:\/\/www.facebook.com\/profile.php?id=100005994046772&mibextid=ZbWKwL","article_published_time":"2023-01-30T11:00:22+00:00","article_modified_time":"2023-08-30T07:09:37+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux.png","type":"image\/png"}],"author":"Anonnya Ghosh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Anonnya Ghosh","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/"},"author":{"name":"Anonnya Ghosh","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/b53a69b64755f081b3c5951d72ba9c7c"},"headline":"The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]","datePublished":"2023-01-30T11:00:22+00:00","dateModified":"2023-08-30T07:09:37+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/"},"wordCount":1677,"commentCount":0,"publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"image":{"@id":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux.png","keywords":["disc management commands"],"articleSection":["Linux Commands"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/","url":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/","name":"The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]","isPartOf":{"@id":"https:\/\/linuxsimply.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux.png","datePublished":"2023-01-30T11:00:22+00:00","dateModified":"2023-08-30T07:09:37+00:00","description":"The mkfs command in Linux is the abbreviation for \"Make File Systems\". Users can create various types of filesystems using this command.","breadcrumb":{"@id":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxsimply.com\/mkfs-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#primaryimage","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/01\/mkfs-command-in-linux.png","width":400,"height":400,"caption":"mkfs command in linux."},{"@type":"BreadcrumbList","@id":"https:\/\/linuxsimply.com\/mkfs-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxsimply.com\/"},{"@type":"ListItem","position":2,"name":"The \u201cmkfs\u201d Command in Linux [4+ Practical Examples]"}]},{"@type":"WebSite","@id":"https:\/\/linuxsimply.com\/#website","url":"https:\/\/linuxsimply.com\/","name":"LinuxSimply","description":"All About Linux","publisher":{"@id":"https:\/\/linuxsimply.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxsimply.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/linuxsimply.com\/#organization","name":"LinuxSimply","url":"https:\/\/linuxsimply.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/LinuxSimply-New-Logo-Without-Icon.png","width":355,"height":48,"caption":"LinuxSimply"},"image":{"@id":"https:\/\/linuxsimply.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/linuxsimply.com\/#\/schema\/person\/b53a69b64755f081b3c5951d72ba9c7c","name":"Anonnya Ghosh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","url":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","contentUrl":"https:\/\/linuxsimply.com\/wp-content\/uploads\/2023\/09\/Anonnya-Ghosh-II-96x96.png","caption":"Anonnya Ghosh"},"description":"Hello there! I am Anonnya Ghosh, a Computer Science and Engineering graduate from Ahsanullah University of Science and Technology (AUST). Currently, I am working as a Linux Content Developer Executive at SOFTEKO. The strong bond between Linux and cybersecurity drives me to explore this world of open-source architecture. I aspire to learn new things further and contribute to the field of CS with my experience. Read Full Bio","sameAs":["https:\/\/www.facebook.com\/profile.php?id=100005994046772&mibextid=ZbWKwL","https:\/\/www.linkedin.com\/in\/anonnya-ghosh-6a934b211"],"url":"https:\/\/linuxsimply.com\/author\/anonya\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/4801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/users\/314896"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/comments?post=4801"}],"version-history":[{"count":0,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/posts\/4801\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media\/4816"}],"wp:attachment":[{"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/media?parent=4801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/categories?post=4801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxsimply.com\/wp-json\/wp\/v2\/tags?post=4801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}