{
    "mode": "man",
    "parameter": "MKFS.MINIX",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/MKFS.MINIX/8/json",
    "generated": "2026-06-03T03:48:35Z",
    "synopsis": "mkfs.minix [options] device [size-in-blocks]",
    "sections": {
        "NAME": {
            "content": "mkfs.minix - make a Minix filesystem\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "mkfs.minix [options] device [size-in-blocks]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "mkfs.minix creates a Linux MINIX filesystem on a device (usually a disk partition).\n\nThe device is usually of the following form:\n\n/dev/hda[1-8] (IDE disk 1)\n/dev/hdb[1-8] (IDE disk 2)\n/dev/sda[1-8] (SCSI disk 1)\n/dev/sdb[1-8] (SCSI disk 2)\n\nThe device may be a block device or an image file of one, but this is not enforced. Expect\nnot much fun on a character device :-).\n\nThe size-in-blocks parameter is the desired size of the file system, in blocks. It is present\nonly for backwards compatibility. If omitted the size will be determined automatically. Only\nblock counts strictly greater than 10 and strictly less than 65536 are allowed.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-c --check",
                    "content": "Check the device for bad blocks before creating the filesystem. If any are found, the\ncount is printed.\n",
                    "flag": "-c",
                    "long": "--check"
                },
                {
                    "name": "-n --namelength",
                    "content": "Specify the maximum length of filenames. Currently, the only allowable values are 14 and\n30 for file system versions 1 and 2. Version 3 allows only value 60. The default is 30.\n\n--lock[=mode]\nUse exclusive BSD lock for device or file it operates. The optional argument mode can be\nyes, no (or 1 and 0) or nonblock. If the mode argument is omitted, it defaults to \"yes\".\nThis option overwrites environment variable $LOCKBLOCKDEVICE. The default is not to use\nany lock at all, but it’s recommended to avoid collisions with udevd or other tools.\n",
                    "flag": "-n",
                    "long": "--namelength"
                },
                {
                    "name": "-i --inodes",
                    "content": "Specify the number of inodes for the filesystem.\n",
                    "flag": "-i",
                    "long": "--inodes"
                },
                {
                    "name": "-l --badblocks",
                    "content": "Read the list of bad blocks from filename. The file has one bad-block number per line.\nThe count of bad blocks read is printed.\n",
                    "flag": "-l",
                    "long": "--badblocks"
                },
                {
                    "name": "-1",
                    "content": "Make a Minix version 1 filesystem. This is the default.\n",
                    "flag": "-1"
                },
                {
                    "name": "-2 -v",
                    "content": "Make a Minix version 2 filesystem.\n",
                    "flag": "-v"
                },
                {
                    "name": "-3",
                    "content": "Make a Minix version 3 filesystem.\n",
                    "flag": "-3"
                },
                {
                    "name": "-V --version",
                    "content": "Display version information and exit. The long option cannot be combined with other\noptions.\n",
                    "flag": "-V",
                    "long": "--version"
                },
                {
                    "name": "-h --help",
                    "content": "Display help text and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                }
            ]
        },
        "ENVIRONMENT": {
            "content": "LOCKBLOCKDEVICE=<mode>\nuse exclusive BSD lock. The mode is \"1\" or \"0\". See --lock for more details.\n",
            "subsections": []
        },
        "EXIT STATUS": {
            "content": "The exit status returned by mkfs.minix is one of the following:\n\n0\nNo errors\n\n8\nOperational error\n\n16\nUsage or syntax error\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "fsck(8), mkfs(8), reboot(8)\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "For bug reports, use the issue tracker at https://github.com/karelzak/util-linux/issues.\n",
            "subsections": []
        },
        "AVAILABILITY": {
            "content": "The mkfs.minix command is part of the util-linux package which can be downloaded from Linux\nKernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.\n\n\n\nutil-linux 2.37.2                            2021-06-02                                MKFS.MINIX(8)",
            "subsections": []
        }
    },
    "summary": "mkfs.minix - make a Minix filesystem",
    "flags": [
        {
            "flag": "-c",
            "long": "--check",
            "arg": null,
            "description": "Check the device for bad blocks before creating the filesystem. If any are found, the count is printed."
        },
        {
            "flag": "-n",
            "long": "--namelength",
            "arg": null,
            "description": "Specify the maximum length of filenames. Currently, the only allowable values are 14 and 30 for file system versions 1 and 2. Version 3 allows only value 60. The default is 30. --lock[=mode] Use exclusive BSD lock for device or file it operates. The optional argument mode can be yes, no (or 1 and 0) or nonblock. If the mode argument is omitted, it defaults to \"yes\". This option overwrites environment variable $LOCKBLOCKDEVICE. The default is not to use any lock at all, but it’s recommended to avoid collisions with udevd or other tools."
        },
        {
            "flag": "-i",
            "long": "--inodes",
            "arg": null,
            "description": "Specify the number of inodes for the filesystem."
        },
        {
            "flag": "-l",
            "long": "--badblocks",
            "arg": null,
            "description": "Read the list of bad blocks from filename. The file has one bad-block number per line. The count of bad blocks read is printed."
        },
        {
            "flag": "-1",
            "long": null,
            "arg": null,
            "description": "Make a Minix version 1 filesystem. This is the default."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": "Make a Minix version 2 filesystem."
        },
        {
            "flag": "-3",
            "long": null,
            "arg": null,
            "description": "Make a Minix version 3 filesystem."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "Display version information and exit. The long option cannot be combined with other options."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Display help text and exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "fsck",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/fsck/8/json"
        },
        {
            "name": "mkfs",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/mkfs/8/json"
        },
        {
            "name": "reboot",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/reboot/8/json"
        }
    ]
}