Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 1 | .\" -*- nroff -*- |
Theodore Ts'o | a418d3a | 1997-04-26 14:00:26 +0000 | [diff] [blame] | 2 | .\" Copyright 1993, 1994, 1995 by Theodore Ts'o. All Rights Reserved. |
| 3 | .\" This file may be copied under the terms of the GNU Public License. |
| 4 | .\" |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 5 | .TH MKE2FS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@" |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 6 | .SH NAME |
| 7 | mke2fs \- create a Linux second extended file system |
| 8 | .SH SYNOPSIS |
| 9 | .B mke2fs |
| 10 | [ |
| 11 | .B \-c |
| 12 | | |
| 13 | .\" .B \-t |
| 14 | .\" test |
| 15 | .\" | |
| 16 | .B \-l |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 17 | .I filename |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 18 | ] |
| 19 | [ |
| 20 | .B \-b |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 21 | .I block-size |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 22 | ] |
| 23 | [ |
| 24 | .B \-f |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 25 | .I fragment-size |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 26 | ] |
| 27 | [ |
| 28 | .B \-i |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 29 | .I bytes-per-inode |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 30 | ] |
| 31 | [ |
| 32 | .B \-m |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 33 | .I reserved-blocks-percentage |
| 34 | ] |
| 35 | [ |
| 36 | .B \-o |
| 37 | .I creator-os |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 38 | ] |
| 39 | [ |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 40 | .B \-q |
| 41 | ] |
| 42 | [ |
Theodore Ts'o | a29f4d3 | 1997-04-29 21:26:48 +0000 | [diff] [blame] | 43 | .B \-r fs-revision-level |
| 44 | ] |
| 45 | [ |
| 46 | .B -R raid_options |
| 47 | ] |
| 48 | [ |
Theodore Ts'o | 521e368 | 1997-04-29 17:48:10 +0000 | [diff] [blame] | 49 | .B -s sparse-super-flag |
| 50 | ] |
| 51 | [ |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 52 | .B \-v |
| 53 | ] |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 54 | [ |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 55 | .B \-F |
| 56 | ] |
| 57 | [ |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 58 | .B \-L |
| 59 | .I volume-label |
| 60 | ] |
| 61 | [ |
| 62 | .B \-M |
| 63 | .I last-mounted-directory |
| 64 | ] |
| 65 | [ |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 66 | .B \-S |
| 67 | ] |
Theodore Ts'o | 818180c | 1998-06-27 05:11:14 +0000 | [diff] [blame] | 68 | [ |
| 69 | .B \-V |
| 70 | ] |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 71 | .I device |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 72 | [ |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 73 | .I blocks-count |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 74 | ] |
| 75 | .SH DESCRIPTION |
| 76 | .B mke2fs |
| 77 | is used to create a Linux second extended file system on a device (usually |
| 78 | a disk partition). |
| 79 | .br |
| 80 | .I device |
| 81 | is the special file corresponding to the device (e.g /dev/hdXX). |
| 82 | .br |
| 83 | .I blocks-count |
| 84 | is the number of blocks on the device. If omitted, |
| 85 | .B mke2fs |
| 86 | automagically figures the file system size. |
| 87 | .SH OPTIONS |
| 88 | .TP |
| 89 | .I -b block-size |
| 90 | Specify the size of blocks in bytes. |
| 91 | .TP |
| 92 | .I -c |
| 93 | Check the device for bad blocks before creating the file system, using a |
| 94 | fast read-only test. |
| 95 | .TP |
| 96 | .I -f fragment-size |
| 97 | Specify the size of fragments in bytes. |
| 98 | .TP |
| 99 | .I -i bytes-per-inode |
| 100 | Specify the bytes/inode ratio. |
| 101 | .B mke2fs |
| 102 | creates an inode for every |
| 103 | .I bytes-per-inode |
| 104 | bytes of space on the disk. This value defaults to 4096 bytes. |
| 105 | .I bytes-per-inode |
| 106 | must be at least 1024. |
| 107 | .TP |
| 108 | .I -l filename |
| 109 | Read the bad blocks list from |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 110 | .I filename. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 111 | \. |
| 112 | .TP |
| 113 | .I -m reserved-blocks-percentage |
| 114 | Specify the percentage of reserved blocks for the super-user. This value |
| 115 | defaults to 5%. |
| 116 | .\" .TP |
| 117 | .\" .I -t test |
| 118 | .\" Check the device for bad blocks before creating the file system |
| 119 | .\" using the specified test. |
| 120 | .TP |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 121 | .I -o |
| 122 | Manually override the default value of the "creator os" field of the |
| 123 | filesystem. Normally the creator field is set by default to the native OS |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 124 | of the |
| 125 | .B mke2fs |
| 126 | executable. |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 127 | .TP |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 128 | .I -q |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 129 | Quiet execution. Useful if |
| 130 | .B mke2fs |
| 131 | is run in a script. |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 132 | .TP |
Theodore Ts'o | 521e368 | 1997-04-29 17:48:10 +0000 | [diff] [blame] | 133 | .I -s sparse-super-flag |
| 134 | If sparse-super-flag is 1, then turn on the sparse superblock flag. |
| 135 | If 0, then turn off the sparse superblock flag. (Currently, the sparse |
Theodore Ts'o | a29f4d3 | 1997-04-29 21:26:48 +0000 | [diff] [blame] | 136 | superblock flag defaults to off.) |
| 137 | .B Warning: |
| 138 | The Linux 2.0 kernel does not properly support this feature. Neither do |
| 139 | all Linux 2.1 kernels; please don't use this unless you know what you're |
| 140 | doing! |
Theodore Ts'o | 521e368 | 1997-04-29 17:48:10 +0000 | [diff] [blame] | 141 | .TP |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 142 | .I -v |
| 143 | Verbose execution. |
Theodore Ts'o | 7f88b04 | 1997-04-26 14:48:50 +0000 | [diff] [blame] | 144 | .TP |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 145 | .I -F |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 146 | Force |
| 147 | .B mke2fs |
| 148 | to run, even if the specified device is not a |
Theodore Ts'o | 7f88b04 | 1997-04-26 14:48:50 +0000 | [diff] [blame] | 149 | block special device. |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 150 | .TP |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 151 | .I -L |
| 152 | Set the volume label for the filesystem. |
| 153 | .TP |
| 154 | .I -M |
| 155 | Set the last mounted directory for the filesystem. This might be useful |
| 156 | for the sake of utilities that key off of the last mounted directory to |
| 157 | determine where the filesytem should be mounted. |
| 158 | .TP |
Theodore Ts'o | a29f4d3 | 1997-04-29 21:26:48 +0000 | [diff] [blame] | 159 | .I -r revision |
| 160 | Set the filesystem revision for the new filesystem. Note that 1.2 |
| 161 | kernels only support revision 0 filesystems. |
| 162 | .TP |
| 163 | .I -R raid_options |
| 164 | Set raid-related options for the filesystem. Raid options are common |
| 165 | separated, and may take an argument using the equals ('=') sign. |
| 166 | Currently the only supported argument is |
| 167 | .I stride |
| 168 | which takes as its argument the number of blocks in a RAID stripe. |
| 169 | .TP |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 170 | .I -S |
| 171 | Write superblock and group descriptors only. This is useful if all of |
| 172 | the superblock and backup superblocks are corrupted, and a last-ditch |
Theodore Ts'o | 583ccdc | 1997-05-09 03:06:31 +0000 | [diff] [blame] | 173 | recovery method is desired. It causes |
| 174 | .B mke2fs |
| 175 | to reinitialize the |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 176 | superblock and group descriptors, while not touching the inode table |
| 177 | and the block and inode bitmaps. The |
| 178 | .B e2fsck |
| 179 | program should be run immediately after this option is used, and there |
Theodore Ts'o | 7f88b04 | 1997-04-26 14:48:50 +0000 | [diff] [blame] | 180 | is no guarantee that any data will be salvageable. |
Theodore Ts'o | 818180c | 1998-06-27 05:11:14 +0000 | [diff] [blame] | 181 | .TP |
| 182 | .I -V |
| 183 | print the version number of |
| 184 | .B mke2fs |
| 185 | and exit. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 186 | .SH AUTHOR |
| 187 | This version of |
| 188 | .B mke2fs |
Theodore Ts'o | a418d3a | 1997-04-26 14:00:26 +0000 | [diff] [blame] | 189 | has been written by Theodore Ts'o <tytso@mit.edu>. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 190 | .SH BUGS |
| 191 | .B mke2fs |
| 192 | accepts the -f option but currently ignores it because the second |
| 193 | extended file system does not support fragments yet. |
| 194 | .br |
| 195 | There may be some other ones. Please, report them to the author. |
| 196 | .SH AVAILABILITY |
| 197 | .B mke2fs |
Theodore Ts'o | a789d84 | 1998-03-30 01:20:55 +0000 | [diff] [blame] | 198 | is part of the e2fsprogs package and is available for anonymous |
| 199 | ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 200 | .SH SEE ALSO |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 201 | .BT badblocks (8), |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 202 | .BR dumpe2fs (8), |
| 203 | .BR e2fsck (8), |
| 204 | .BR tune2fs (8) |