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, --namelength length โ€” set the max length of filenames. rn the only allowable values are 14 and 30, for file system versions 1 and 2 respectively. version 3 allows only the value 60. the default is 30. โœจ
  • --lock[=mode] โ€” use an exclusive BSD lock for the device or file being operated upon. the optional mode argument can be yes (1), no (0), or nonblock. if you omit the mode argument, it defaults to yes. 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 with systemd-udevd(8) or other tools. be a good citizen bestie ๐Ÿซถ
  • -i, --inodes number โ€” specify the number of inodes for the filesystem. ๐Ÿ”ข
  • -l, --badblocks filename โ€” 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 --lock for 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 ๐ŸŽ€

fsck(8), mkfs(8), reboot(8)


๐Ÿ› 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