MKFS.MINIX(8)
๐พ MKFS.MINIX(8) โ the system administration glow-up ๐พ
okay bestie, sit down, we're doing mkfs.minix today and it's genuinely one of my faves ๐ it lives in the System Administration corner of the manual, section 8, and it's the girl who makes Minix filesystems happen. no cap.
โจ NAME โจ
mkfs.minix โ make a Minix filesystem ๐
๐ธ SYNOPSIS ๐ธ
mkfs.minix [options] device [size-in-blocks]
๐ฆ DESCRIPTION ๐ฆ
so like, mkfs.minix creates a Linux MINIX filesystem on a device โ and by "device" we usually mean a disk partition, iykyk ๐ซถ
the device is usually shaped like one of these lil cuties:
/dev/hda[1-8] (IDE disk 1)
/dev/hdb[1-8] (IDE disk 2)
/dev/sda[1-8] (SCSI disk 1)
/dev/sdb[1-8] (SCSI disk 2)
the device can be a block device, or an image file of one โ but honestly that's not enforced, so the tool isn't out here vibe-checking you. and on a character device? expect not much fun :-). literally. ๐
the size-in-blocks parameter is the size you want the filesystem to be, measured in blocks. it's only still here for backwards compatibility โ main character energy from a previous era, we respect it. if you leave it out, the size gets determined automatically โจ and just so you know, only block counts strictly greater than 10 and strictly less than 65536 are allowed. that's the range, periodt.
๐ OPTIONS ๐
-c,--checkโ check the device for bad blocks before creating the filesystem. if any show up, the count gets printed. ๐ต๏ธโโ๏ธ-n,--namelengthlength โ set the max length of filenames. rn the only allowable values are14and30, for file system versions 1 and 2 respectively. version 3 allows only the value60. the default is30. โจ--lock[=mode]โ use an exclusive BSD lock for the device or file being operated upon. the optional mode argument can beyes(1),no(0), ornonblock. if you omit the mode argument, it defaults toyes. this option overrides the environment variable$LOCK_BLOCK_DEVICE. the default is to not use any lock at all โ but ngl, using a lock is recommended so you don't collide withsystemd-udevd(8)or other tools. be a good citizen bestie ๐ซถ-i,--inodesnumber โ specify the number of inodes for the filesystem. ๐ข-l,--badblocksfilename โ read the list of bad blocks from filename. the file has one bad-block number per line. the count of bad blocks read gets printed. ๐-1โ make a Minix version 1 filesystem. this is the default, so if you do nothing, this is the girl you get. ๐-2,-vโ make a Minix version 2 filesystem.-3โ make a Minix version 3 filesystem.-h,--helpโ display help text and exit. classic.-V,--versionโ display version and exit. โ ๏ธ the long option cannot be combined with other options โ it's a solo act, main character only, no plus-ones. ๐
๐ ENVIRONMENT ๐
LOCK_BLOCK_DEVICE=<mode>โ use exclusive BSD lock. the mode is"1"or"0". see--lockfor more details. ๐
โญ EXIT STATUS โญ
the exit status returned by mkfs.minix is one of the following:
0โ no errors ๐8โ operational error ๐ญ16โ usage or syntax error ๐
๐ SEE ALSO ๐
๐ REPORTING BUGS ๐
for bug reports, use the issue tracker at <https://github.com/util-linux/util-linux/issues>. tell them everything, bestie, they wanna know ๐
๐ง AVAILABILITY ๐ง
the mkfs.minix command is part of the util-linux package, which can be downloaded from the Linux Kernel Archive at <https://www.kernel.org/pub/linux/utils/util-linux/>. ๐ธ
and that's the whole page, bestie โ this one's from util-linux 2.42.4, dated 2026-09-21, and it's filed under MKFS.MINIX(8) so you can always find your way back. go make a filesystem, you're gonna slay ๐โจ๐
๐ฆ where this page comes from
- arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms