1 .\" Copyright 1992, 1993, 1994 Rickard E. Faith (faith@cs.unc.edu)
2 .\" May be freely distributed.
3 .\" " for emacs hilit19 mode
4 .TH MKFS 8 "2 July 1996" "Util-linux 2.6" "Linux System Administrator's Manual"
6 mkfs \- make a Linux MINIX filesystem
8 .BR "mkfs [ \-c | \-l filename ] [ \-n"
19 creates a Linux MINIX file-system on a device (usually a disk partition).
23 is usually of the following form:
27 /dev/hda[1-8] (IDE disk 1)
28 /dev/hdb[1-8] (IDE disk 2)
29 /dev/sda[1-8] (SCSI disk 1)
30 /dev/sdb[1-8] (SCSI disk 2)
36 parameter is the desired size of the file system, in blocks. This
37 information can be determined from the
41 program. If omitted it will be determined automaticaly. Only block
42 counts strictly greater than 10 and strictly less than 65536 are
47 Check the device for bad blocks before creating the file system. If any
48 are found, the count is printed.
51 Specify the maximum length of filenames. No space is allowed between the
54 .IR namelength. Currently, the only allowable
59 Specify the number of inodes for the filesystem.
62 Read the bad blocks list from
64 The file has one bad block number per line. The count of bad blocks read
68 Make a Minix version 2 filesystem.
70 The exit code returned by
72 is one of the following:
85 Stared by Linus Torvalds (torvalds@cs.helsinki.fi).
87 Error code values by Rik Faith (faith@cs.unc.edu)
89 Inode request feature by Scott Heavner (sdh@po.cwru.edu)
91 Support for the file system valid flag by Dr. Wettstein
92 (greg%wind.uucp@plains.nodak.edu)
94 Check to prevent mkfs of mounted filesystem and boot sector clearing
95 by Daniel Quinlan (quinlan@yggdrasil.com)
97 Minix v2 support by Andreas Schwab
98 (schwab@issan.informatik.uni-dortmund.de), updated by Nicolai
99 Langfeldt (janl@math.uio.no)
101 Portability patch by Russell King.