]>
Commit | Line | Data |
---|---|---|
6dbe3af9 | 1 | .\" -*- nroff -*- |
726f69e2 | 2 | .TH MKFS 8 "Jun 1995" "Version 1.9" |
6dbe3af9 | 3 | .SH NAME |
726f69e2 | 4 | mkfs \- build a Linux file system |
6dbe3af9 | 5 | .SH SYNOPSIS |
726f69e2 | 6 | .B mkfs |
6dbe3af9 KZ |
7 | [ |
8 | .B \-V | |
9 | ] | |
10 | [ | |
11 | .B \-t | |
12 | .I fstype | |
13 | ] | |
14 | [ | |
15 | .B fs-options | |
16 | ] | |
17 | .I filesys | |
726f69e2 KZ |
18 | [ |
19 | .I blocks | |
20 | ] | |
6dbe3af9 | 21 | .SH DESCRIPTION |
726f69e2 KZ |
22 | .B mkfs |
23 | is used to build a Linux file system on a device, usually | |
24 | a hard disk partition. | |
6dbe3af9 KZ |
25 | .I filesys |
26 | is either the device name (e.g. /dev/hda1, /dev/sdb2) or | |
27 | the mount point (e.g. /, /usr, /home) for the file system. | |
726f69e2 KZ |
28 | .I blocks |
29 | is the number of blocks to be used for the file system. | |
6dbe3af9 KZ |
30 | .PP |
31 | The exit code returned by | |
726f69e2 KZ |
32 | .B mkfs |
33 | is 0 on success and 1 on failure. | |
6dbe3af9 KZ |
34 | .PP |
35 | In actuality, | |
726f69e2 KZ |
36 | .B mkfs |
37 | is simply a front-end for the various file system builders | |
38 | (\fBmkfs\fR.\fIfstype\fR) | |
6dbe3af9 | 39 | available under Linux. |
726f69e2 | 40 | The file system-specific builder is searched for in /etc/fs first, |
6dbe3af9 | 41 | then in /etc and finally in the directories listed in the PATH |
726f69e2 KZ |
42 | enviroment variable. |
43 | Please see the file system-specific builder manual pages for | |
6dbe3af9 KZ |
44 | further details. |
45 | .SH OPTIONS | |
46 | .TP | |
6dbe3af9 KZ |
47 | .B -V |
48 | Produce verbose output, including all file system-specific commands | |
49 | that are executed. | |
50 | Specifying this option more than once inhibits execution of any | |
51 | file system-specific commands. | |
52 | This is really only useful for testing. | |
53 | .TP | |
54 | .BI -t \ fstype | |
726f69e2 | 55 | Specifies the type of file system to be built. |
6dbe3af9 KZ |
56 | If not specified, the type is deduced by searching for |
57 | .I filesys | |
58 | in | |
59 | .I /etc/fstab | |
60 | and using the corresponding entry. | |
61 | If the type can not be deduced, the default file system type | |
62 | (currently minix) is used. | |
63 | .TP | |
64 | .B fs-options | |
65 | File system-specific options to be passed to the real file | |
726f69e2 | 66 | system builder. |
6dbe3af9 | 67 | Although not guaranteed, the following options are supported |
726f69e2 | 68 | by most file system builders. |
6dbe3af9 | 69 | .TP |
726f69e2 KZ |
70 | .B -c |
71 | Check the device for bad blocks before building the file system. | |
6dbe3af9 | 72 | .TP |
726f69e2 KZ |
73 | .BI -l \ filename |
74 | Read the bad blocks list from | |
75 | .I filename | |
6dbe3af9 | 76 | .TP |
726f69e2 | 77 | .B -v |
6dbe3af9 KZ |
78 | Produce verbose output. |
79 | .SH BUGS | |
80 | All generic options must precede and not be combined with | |
81 | file system-specific options. | |
82 | Some file system-specific programs do not support the | |
83 | .I -v | |
84 | (verbose) option, nor return meaningful exit codes. | |
726f69e2 KZ |
85 | Also, some file system-specific programs do not automatically |
86 | detect the device size and require the | |
87 | .I blocks | |
88 | parameter to be specified. | |
6dbe3af9 KZ |
89 | .SH AUTHORS |
90 | David Engel (david@ods.com) | |
91 | .br | |
92 | Fred N. van Kempen (waltje@uwalt.nl.mugnet.org) | |
93 | .br | |
726f69e2 KZ |
94 | Ron Sommeling (sommel@sci.kun.nl) |
95 | .br | |
6dbe3af9 KZ |
96 | The manual page was shamelessly adapted from Remy Card's version |
97 | for the ext2 file system. | |
98 | .SH SEE ALSO | |
726f69e2 KZ |
99 | .BR fsck (8), |
100 | .BR mkfs.minix (8), | |
101 | .BR mkfs.ext (8), | |
102 | .BR mkfs.ext2 (8), | |
103 | .BR mkfs.xiafs (8). |