1997-04-26 21:21:57 +08:00
|
|
|
.\" -*- nroff -*-
|
1997-04-26 22:00:26 +08:00
|
|
|
.\" Copyright 1993, 1994, 1995 by Theodore Ts'o. All Rights Reserved.
|
|
|
|
.\" This file may be copied under the terms of the GNU Public License.
|
|
|
|
.\"
|
1997-04-26 22:37:06 +08:00
|
|
|
.TH MKE2FS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
|
1997-04-26 21:21:57 +08:00
|
|
|
.SH NAME
|
|
|
|
mke2fs \- create a Linux second extended file system
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B mke2fs
|
|
|
|
[
|
|
|
|
.B \-c
|
|
|
|
|
|
|
|
|
.\" .B \-t
|
|
|
|
.\" test
|
|
|
|
.\" |
|
|
|
|
.B \-l
|
1997-04-29 22:53:37 +08:00
|
|
|
.I filename
|
1997-04-26 21:21:57 +08:00
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-b
|
1997-04-29 22:53:37 +08:00
|
|
|
.I block-size
|
1997-04-26 21:21:57 +08:00
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-f
|
1997-04-29 22:53:37 +08:00
|
|
|
.I fragment-size
|
1997-04-26 21:21:57 +08:00
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-i
|
1997-04-29 22:53:37 +08:00
|
|
|
.I bytes-per-inode
|
1997-04-26 21:21:57 +08:00
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-m
|
1997-04-29 22:53:37 +08:00
|
|
|
.I reserved-blocks-percentage
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-o
|
|
|
|
.I creator-os
|
1997-04-26 21:21:57 +08:00
|
|
|
]
|
|
|
|
[
|
1997-04-26 21:34:30 +08:00
|
|
|
.B \-q
|
|
|
|
]
|
|
|
|
[
|
1997-04-26 21:21:57 +08:00
|
|
|
.B \-v
|
|
|
|
]
|
1997-04-26 21:34:30 +08:00
|
|
|
[
|
1997-04-26 22:37:06 +08:00
|
|
|
.B \-F
|
|
|
|
]
|
|
|
|
[
|
1997-04-29 22:53:37 +08:00
|
|
|
.B \-L
|
|
|
|
.I volume-label
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B \-M
|
|
|
|
.I last-mounted-directory
|
|
|
|
]
|
|
|
|
[
|
1997-04-26 21:34:30 +08:00
|
|
|
.B \-S
|
|
|
|
]
|
1997-04-29 22:53:37 +08:00
|
|
|
.I device
|
1997-04-26 21:21:57 +08:00
|
|
|
[
|
1997-04-29 22:53:37 +08:00
|
|
|
.I blocks-count
|
1997-04-26 21:21:57 +08:00
|
|
|
]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B mke2fs
|
|
|
|
is used to create a Linux second extended file system on a device (usually
|
|
|
|
a disk partition).
|
|
|
|
.br
|
|
|
|
.I device
|
|
|
|
is the special file corresponding to the device (e.g /dev/hdXX).
|
|
|
|
.br
|
|
|
|
.I blocks-count
|
|
|
|
is the number of blocks on the device. If omitted,
|
|
|
|
.B mke2fs
|
|
|
|
automagically figures the file system size.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.I -b block-size
|
|
|
|
Specify the size of blocks in bytes.
|
|
|
|
.TP
|
|
|
|
.I -c
|
|
|
|
Check the device for bad blocks before creating the file system, using a
|
|
|
|
fast read-only test.
|
|
|
|
.TP
|
|
|
|
.I -f fragment-size
|
|
|
|
Specify the size of fragments in bytes.
|
|
|
|
.TP
|
|
|
|
.I -i bytes-per-inode
|
|
|
|
Specify the bytes/inode ratio.
|
|
|
|
.B mke2fs
|
|
|
|
creates an inode for every
|
|
|
|
.I bytes-per-inode
|
|
|
|
bytes of space on the disk. This value defaults to 4096 bytes.
|
|
|
|
.I bytes-per-inode
|
|
|
|
must be at least 1024.
|
|
|
|
.TP
|
|
|
|
.I -l filename
|
|
|
|
Read the bad blocks list from
|
|
|
|
.I filename
|
|
|
|
\.
|
|
|
|
.TP
|
|
|
|
.I -m reserved-blocks-percentage
|
|
|
|
Specify the percentage of reserved blocks for the super-user. This value
|
|
|
|
defaults to 5%.
|
|
|
|
.\" .TP
|
|
|
|
.\" .I -t test
|
|
|
|
.\" Check the device for bad blocks before creating the file system
|
|
|
|
.\" using the specified test.
|
|
|
|
.TP
|
1997-04-29 22:53:37 +08:00
|
|
|
.I -o
|
|
|
|
Manually override the default value of the "creator os" field of the
|
|
|
|
filesystem. Normally the creator field is set by default to the native OS
|
|
|
|
of the mke2fs executable.
|
|
|
|
.TP
|
1997-04-26 21:34:30 +08:00
|
|
|
.I -q
|
|
|
|
Quiet execution. Useful if mke2fs is run in a script.
|
|
|
|
.TP
|
1997-04-26 21:21:57 +08:00
|
|
|
.I -v
|
|
|
|
Verbose execution.
|
1997-04-26 22:48:50 +08:00
|
|
|
.TP
|
1997-04-26 22:37:06 +08:00
|
|
|
.I -F
|
1997-04-26 22:48:50 +08:00
|
|
|
Force mke2fs to run, even if the specified device is not a
|
|
|
|
block special device.
|
1997-04-26 21:34:30 +08:00
|
|
|
.TP
|
1997-04-29 22:53:37 +08:00
|
|
|
.I -L
|
|
|
|
Set the volume label for the filesystem.
|
|
|
|
.TP
|
|
|
|
.I -M
|
|
|
|
Set the last mounted directory for the filesystem. This might be useful
|
|
|
|
for the sake of utilities that key off of the last mounted directory to
|
|
|
|
determine where the filesytem should be mounted.
|
|
|
|
.TP
|
1997-04-26 21:34:30 +08:00
|
|
|
.I -S
|
|
|
|
Write superblock and group descriptors only. This is useful if all of
|
|
|
|
the superblock and backup superblocks are corrupted, and a last-ditch
|
|
|
|
recovery method is desired. It causes mke2fs to reinitialize the
|
|
|
|
superblock and group descriptors, while not touching the inode table
|
|
|
|
and the block and inode bitmaps. The
|
|
|
|
.B e2fsck
|
|
|
|
program should be run immediately after this option is used, and there
|
1997-04-26 22:48:50 +08:00
|
|
|
is no guarantee that any data will be salvageable.
|
1997-04-26 21:21:57 +08:00
|
|
|
.SH AUTHOR
|
|
|
|
This version of
|
|
|
|
.B mke2fs
|
1997-04-26 22:00:26 +08:00
|
|
|
has been written by Theodore Ts'o <tytso@mit.edu>.
|
1997-04-26 21:21:57 +08:00
|
|
|
.SH BUGS
|
|
|
|
.B mke2fs
|
|
|
|
accepts the -f option but currently ignores it because the second
|
|
|
|
extended file system does not support fragments yet.
|
|
|
|
.br
|
|
|
|
There may be some other ones. Please, report them to the author.
|
|
|
|
.SH AVAILABILITY
|
|
|
|
.B mke2fs
|
1997-04-26 21:34:30 +08:00
|
|
|
is available for anonymous ftp from ftp.ibp.fr and tsx-11.mit.edu in
|
|
|
|
/pub/linux/packages/ext2fs.
|
1997-04-26 21:21:57 +08:00
|
|
|
.SH SEE ALSO
|
1997-04-26 21:34:30 +08:00
|
|
|
.BT badblocks (8),
|
1997-04-26 21:21:57 +08:00
|
|
|
.BR dumpe2fs (8),
|
|
|
|
.BR e2fsck (8),
|
|
|
|
.BR tune2fs (8)
|