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 | 521e368 | 1997-04-29 17:48:10 +0000 | [diff] [blame^] | 43 | .B -s sparse-super-flag |
| 44 | ] |
| 45 | [ |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 46 | .B \-v |
| 47 | ] |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 48 | [ |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 49 | .B \-F |
| 50 | ] |
| 51 | [ |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 52 | .B \-L |
| 53 | .I volume-label |
| 54 | ] |
| 55 | [ |
| 56 | .B \-M |
| 57 | .I last-mounted-directory |
| 58 | ] |
| 59 | [ |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 60 | .B \-S |
| 61 | ] |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 62 | .I device |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 63 | [ |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 64 | .I blocks-count |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 65 | ] |
| 66 | .SH DESCRIPTION |
| 67 | .B mke2fs |
| 68 | is used to create a Linux second extended file system on a device (usually |
| 69 | a disk partition). |
| 70 | .br |
| 71 | .I device |
| 72 | is the special file corresponding to the device (e.g /dev/hdXX). |
| 73 | .br |
| 74 | .I blocks-count |
| 75 | is the number of blocks on the device. If omitted, |
| 76 | .B mke2fs |
| 77 | automagically figures the file system size. |
| 78 | .SH OPTIONS |
| 79 | .TP |
| 80 | .I -b block-size |
| 81 | Specify the size of blocks in bytes. |
| 82 | .TP |
| 83 | .I -c |
| 84 | Check the device for bad blocks before creating the file system, using a |
| 85 | fast read-only test. |
| 86 | .TP |
| 87 | .I -f fragment-size |
| 88 | Specify the size of fragments in bytes. |
| 89 | .TP |
| 90 | .I -i bytes-per-inode |
| 91 | Specify the bytes/inode ratio. |
| 92 | .B mke2fs |
| 93 | creates an inode for every |
| 94 | .I bytes-per-inode |
| 95 | bytes of space on the disk. This value defaults to 4096 bytes. |
| 96 | .I bytes-per-inode |
| 97 | must be at least 1024. |
| 98 | .TP |
| 99 | .I -l filename |
| 100 | Read the bad blocks list from |
| 101 | .I filename |
| 102 | \. |
| 103 | .TP |
| 104 | .I -m reserved-blocks-percentage |
| 105 | Specify the percentage of reserved blocks for the super-user. This value |
| 106 | defaults to 5%. |
| 107 | .\" .TP |
| 108 | .\" .I -t test |
| 109 | .\" Check the device for bad blocks before creating the file system |
| 110 | .\" using the specified test. |
| 111 | .TP |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 112 | .I -o |
| 113 | Manually override the default value of the "creator os" field of the |
| 114 | filesystem. Normally the creator field is set by default to the native OS |
| 115 | of the mke2fs executable. |
| 116 | .TP |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 117 | .I -q |
| 118 | Quiet execution. Useful if mke2fs is run in a script. |
| 119 | .TP |
Theodore Ts'o | 521e368 | 1997-04-29 17:48:10 +0000 | [diff] [blame^] | 120 | .I -s sparse-super-flag |
| 121 | If sparse-super-flag is 1, then turn on the sparse superblock flag. |
| 122 | If 0, then turn off the sparse superblock flag. (Currently, the sparse |
| 123 | superblock flag defaults to off.) |
| 124 | .TP |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 125 | .I -v |
| 126 | Verbose execution. |
Theodore Ts'o | 7f88b04 | 1997-04-26 14:48:50 +0000 | [diff] [blame] | 127 | .TP |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 128 | .I -F |
Theodore Ts'o | 7f88b04 | 1997-04-26 14:48:50 +0000 | [diff] [blame] | 129 | Force mke2fs to run, even if the specified device is not a |
| 130 | block special device. |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 131 | .TP |
Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 132 | .I -L |
| 133 | Set the volume label for the filesystem. |
| 134 | .TP |
| 135 | .I -M |
| 136 | Set the last mounted directory for the filesystem. This might be useful |
| 137 | for the sake of utilities that key off of the last mounted directory to |
| 138 | determine where the filesytem should be mounted. |
| 139 | .TP |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 140 | .I -S |
| 141 | Write superblock and group descriptors only. This is useful if all of |
| 142 | the superblock and backup superblocks are corrupted, and a last-ditch |
| 143 | recovery method is desired. It causes mke2fs to reinitialize the |
| 144 | superblock and group descriptors, while not touching the inode table |
| 145 | and the block and inode bitmaps. The |
| 146 | .B e2fsck |
| 147 | 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] | 148 | is no guarantee that any data will be salvageable. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 149 | .SH AUTHOR |
| 150 | This version of |
| 151 | .B mke2fs |
Theodore Ts'o | a418d3a | 1997-04-26 14:00:26 +0000 | [diff] [blame] | 152 | has been written by Theodore Ts'o <tytso@mit.edu>. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 153 | .SH BUGS |
| 154 | .B mke2fs |
| 155 | accepts the -f option but currently ignores it because the second |
| 156 | extended file system does not support fragments yet. |
| 157 | .br |
| 158 | There may be some other ones. Please, report them to the author. |
| 159 | .SH AVAILABILITY |
| 160 | .B mke2fs |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 161 | is available for anonymous ftp from ftp.ibp.fr and tsx-11.mit.edu in |
| 162 | /pub/linux/packages/ext2fs. |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 163 | .SH SEE ALSO |
Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 164 | .BT badblocks (8), |
Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 165 | .BR dumpe2fs (8), |
| 166 | .BR e2fsck (8), |
| 167 | .BR tune2fs (8) |