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
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.\" .I test
|
1997-04-26 21:21:57 +08:00
|
|
|
.\" |
|
|
|
|
.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
|
|
|
]
|
|
|
|
[
|
2000-10-25 03:33:45 +08:00
|
|
|
.B \-j
|
2000-11-17 12:55:24 +08:00
|
|
|
.I journal-options
|
2000-10-25 03:33:45 +08:00
|
|
|
]
|
|
|
|
[
|
1999-01-05 15:25:06 +08:00
|
|
|
.B \-N
|
|
|
|
.I number-of-inodes
|
|
|
|
]
|
|
|
|
[
|
1999-09-15 04:11:19 +08:00
|
|
|
.B -n
|
|
|
|
]
|
|
|
|
[
|
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
|
|
|
]
|
|
|
|
[
|
1999-10-23 09:04:50 +08:00
|
|
|
.B \-O
|
|
|
|
.IR feature [,...]
|
|
|
|
]
|
|
|
|
[
|
1997-04-26 21:34:30 +08:00
|
|
|
.B \-q
|
|
|
|
]
|
|
|
|
[
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-r
|
|
|
|
.I fs-revision-level
|
1997-04-30 05:26:48 +08:00
|
|
|
]
|
|
|
|
[
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-R
|
|
|
|
.I raid_options
|
1997-04-30 05:26:48 +08:00
|
|
|
]
|
|
|
|
[
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-s
|
|
|
|
.I sparse-super-flag
|
1997-04-30 01:48:10 +08:00
|
|
|
]
|
|
|
|
[
|
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
|
|
|
|
]
|
ChangeLog, debugfs.8.in, debugfs.c:
Add a -V option which displays the current version.
ChangeLog, unix.c:
unix.c (e2fsck_update_progress): Remove unused variables.
ChangeLog, inode.c:
inode.c (get_next_blockgroup): Fix bug where if get_next_blockgroup()
is called early because of a missing inode table in a block group, the
current_inode counter wasn't incremented correctly.
ChangeLog, tst_uuid.c:
tst_uuid.c (main): Fixed bogus declaration of the main's argv parameter.
ChangeLog, test_icount.c:
test_icount.c (main): Fix main() declaration so that it returns int,
not void.
Many files:
fsck.c (ignore): Remove unused variable cp.
chattr.c (fatal_error):
tune2fs.c (usage):
lsattr.c (usage):
dumpe2fs.c (usage):
badblocks.c (usage): Remove volatile from declaration.
fsck.c: Change use of strdup to be string_copy, since we don't trust
what glibc is doing with strdup. (Whatever it is, it isn't pretty.)
1998-06-27 13:11:14 +08:00
|
|
|
[
|
1999-07-19 23:30:21 +08:00
|
|
|
.B \-T
|
|
|
|
.I filesystem-type
|
|
|
|
]
|
|
|
|
[
|
ChangeLog, debugfs.8.in, debugfs.c:
Add a -V option which displays the current version.
ChangeLog, unix.c:
unix.c (e2fsck_update_progress): Remove unused variables.
ChangeLog, inode.c:
inode.c (get_next_blockgroup): Fix bug where if get_next_blockgroup()
is called early because of a missing inode table in a block group, the
current_inode counter wasn't incremented correctly.
ChangeLog, tst_uuid.c:
tst_uuid.c (main): Fixed bogus declaration of the main's argv parameter.
ChangeLog, test_icount.c:
test_icount.c (main): Fix main() declaration so that it returns int,
not void.
Many files:
fsck.c (ignore): Remove unused variable cp.
chattr.c (fatal_error):
tune2fs.c (usage):
lsattr.c (usage):
dumpe2fs.c (usage):
badblocks.c (usage): Remove volatile from declaration.
fsck.c: Change use of strdup to be string_copy, since we don't trust
what glibc is doing with strdup. (Whatever it is, it isn't pretty.)
1998-06-27 13:11:14 +08:00
|
|
|
.B \-V
|
|
|
|
]
|
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).
|
|
|
|
.I device
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
is the special file corresponding to the device (e.g
|
|
|
|
.IR /dev/hdXX ).
|
1997-04-26 21:21:57 +08:00
|
|
|
.I blocks-count
|
|
|
|
is the number of blocks on the device. If omitted,
|
|
|
|
.B mke2fs
|
|
|
|
automagically figures the file system size.
|
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.BI \-b " block-size"
|
1999-09-15 04:11:19 +08:00
|
|
|
Specify the size of blocks in bytes. Valid block size vales are 1024,
|
1999-10-23 11:17:10 +08:00
|
|
|
2048 and 4096 bytes per block. If omitted,
|
|
|
|
.B mke2fs
|
|
|
|
block-size is determined by the file system size and the expected usage
|
|
|
|
of the filesystem (see the
|
|
|
|
.B \-T
|
|
|
|
option).
|
1997-04-26 21:21:57 +08:00
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-c
|
1997-04-26 21:21:57 +08:00
|
|
|
Check the device for bad blocks before creating the file system, using a
|
|
|
|
fast read-only test.
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.BI \-f " fragment-size"
|
1997-04-26 21:21:57 +08:00
|
|
|
Specify the size of fragments in bytes.
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.BI \-i " bytes-per-inode"
|
1997-04-26 21:21:57 +08:00
|
|
|
Specify the bytes/inode ratio.
|
|
|
|
.B mke2fs
|
|
|
|
creates an inode for every
|
|
|
|
.I bytes-per-inode
|
1999-07-19 23:30:21 +08:00
|
|
|
bytes of space on the disk.
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
The larger the
|
|
|
|
.I bytes-per-inode
|
|
|
|
ratio, the fewer inodes will be created.
|
1999-07-19 23:30:21 +08:00
|
|
|
This value generally shouldn't be smaller than
|
|
|
|
the blocksize of the filesystem, since then too many inodes will be made.
|
|
|
|
Be warned that is not possible to expand the number of inodes on a
|
|
|
|
filesystem after it is created, so be careful decided the correct
|
|
|
|
value for this parameter.
|
1997-04-26 21:21:57 +08:00
|
|
|
.TP
|
2000-11-17 12:55:24 +08:00
|
|
|
.BI \-j " journal options"
|
2000-10-25 03:33:45 +08:00
|
|
|
Build the ext2 filesystem with the ext3 journaling feature enabled.
|
2000-11-17 12:55:24 +08:00
|
|
|
Journal options are comma
|
|
|
|
separated, and may take an argument using the equals ('=') sign.
|
|
|
|
Currently two options are supported,
|
|
|
|
.I size
|
|
|
|
and
|
|
|
|
.IR device .
|
2000-12-31 11:21:56 +08:00
|
|
|
One these two options must be specified when
|
|
|
|
building the journal.
|
2000-11-17 12:55:24 +08:00
|
|
|
The
|
|
|
|
.I size
|
|
|
|
option takes a numerical argument which specifies the size of the
|
|
|
|
journal in MB (1024*1024 bytes). Any size between 4MB and 100MB may be used.
|
|
|
|
Use of this option implies that the journal will be stored in the
|
|
|
|
filesystem, so it must be small enough to fit into the filesystem.
|
|
|
|
The
|
|
|
|
.I device
|
2000-12-31 11:21:56 +08:00
|
|
|
option takes a filename which specifies a block device (external
|
|
|
|
to the filesystem) which will contain the external journal.
|
2000-10-25 03:33:45 +08:00
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-n
|
1999-09-15 04:11:19 +08:00
|
|
|
causes mke2fs to not actually create a filesystem, but display what it
|
|
|
|
would do if it were to create a filesystem.
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.BI \-N " number-of-inodes"
|
1999-01-05 15:25:06 +08:00
|
|
|
overrides the default calculation of the number of inodes that should be
|
|
|
|
reserved for the filesystem (which is based on the number of blocks and
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
the
|
|
|
|
.I bytes-per-inode
|
|
|
|
ratio). This allows the user to specify the number
|
1999-01-05 15:25:06 +08:00
|
|
|
of desired inodes directly.
|
|
|
|
.TP
|
1999-10-23 09:04:50 +08:00
|
|
|
.BI \-O " feature\fR[,...]"
|
|
|
|
Create the filesystem with the listed set of features
|
|
|
|
(filesystem options). The following features are supported:
|
ChangeLog, e2fsck.h, pass1.c, pass2.c, pass3.c, problem.c, problem.h, util.c:
pass1.c (e2fsck_pass1): If the filesystem does not support imagic
inodes, if an inode has the imagic flag set, offer to clear the imagic
flag. If a valid device/fifo/socket has the immutable flag set, call
the new helper function check_immutable() to offerto clear the
immutable flag.
pass2.c (check_filetype): Use the new ext2_file_type() helper function
instead of calculating the file_type information manually.
pass3.c (e2fsck_reconnect_file): When adding a link to lost+found,
calculate the filetype information so that ext2fs_link() can use the
information if applicable. (get_lost_and_found): Create the
/lost+found directory with the correct filetype information if
applicable.
util.c (ext2_file_type), e2fsck.h: New function which returns the
directory entry file type information given the inode's mode bits.
problem.c, problem.h: Added new problem codes PR_1_SET_IMAGIC and
PR_1_SET_IMMUTABLE.
ChangeLog, mke2fs.8.in:
mke2fs.8.in: Update manual page so that the sparse_option filesystem
option is properly named.
1999-11-10 21:34:40 +08:00
|
|
|
.IR sparse_super ,
|
1999-10-23 09:04:50 +08:00
|
|
|
which cause the filesystem to use sparse superblocks, and
|
|
|
|
.IR filetype ,
|
|
|
|
which will cause the filesystem to store file type information in
|
|
|
|
directory entries. Currently, both features are turned on by default
|
|
|
|
unless
|
|
|
|
.B mke2fs
|
|
|
|
is run on a system with a pre-2.2 Linux kernel.
|
|
|
|
.B Warning:
|
|
|
|
Pre-2.2 Linux kernels do not properly
|
|
|
|
support the filesystems that use either of these two features. Filesystems
|
|
|
|
that may need to mounted on pre-2.2 kernels should be created with
|
|
|
|
.B -O
|
|
|
|
.I none
|
|
|
|
which will disable both of these features, even if
|
|
|
|
.B mke2fs
|
|
|
|
is run on a system which can support these features.
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.BI \-l " filename"
|
1997-04-26 21:21:57 +08:00
|
|
|
Read the bad blocks list from
|
1997-05-09 11:06:31 +08:00
|
|
|
.I filename.
|
1997-04-26 21:21:57 +08:00
|
|
|
\.
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.BI -m " reserved-blocks-percentage"
|
1997-04-26 21:21:57 +08:00
|
|
|
Specify the percentage of reserved blocks for the super-user. This value
|
|
|
|
defaults to 5%.
|
|
|
|
.\" .TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.\" .BI \-t " test"
|
1997-04-26 21:21:57 +08:00
|
|
|
.\" Check the device for bad blocks before creating the file system
|
|
|
|
.\" using the specified test.
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-o
|
1997-04-29 22:53:37 +08:00
|
|
|
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
|
1997-05-09 11:06:31 +08:00
|
|
|
of the
|
|
|
|
.B mke2fs
|
|
|
|
executable.
|
1997-04-29 22:53:37 +08:00
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-q
|
1997-05-09 11:06:31 +08:00
|
|
|
Quiet execution. Useful if
|
|
|
|
.B mke2fs
|
|
|
|
is run in a script.
|
1997-04-26 21:34:30 +08:00
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.BI \-s " sparse-super-flag"
|
|
|
|
If
|
|
|
|
.I sparse-super-flag
|
|
|
|
is 1, then turn on the sparse superblock flag in the superblock.
|
1999-10-23 09:04:50 +08:00
|
|
|
.B Note:
|
|
|
|
This option is deprecated; use the
|
|
|
|
.B \-O
|
|
|
|
option instead.
|
1997-04-30 01:48:10 +08:00
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-v
|
1997-04-26 21:21:57 +08:00
|
|
|
Verbose execution.
|
1997-04-26 22:48:50 +08:00
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-F
|
1997-05-09 11:06:31 +08:00
|
|
|
Force
|
|
|
|
.B mke2fs
|
|
|
|
to run, even if the specified device is not a
|
1999-06-29 22:37:35 +08:00
|
|
|
block special device, or appears to be mounted.
|
1997-04-26 21:34:30 +08:00
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-L
|
1997-04-29 22:53:37 +08:00
|
|
|
Set the volume label for the filesystem.
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-M
|
1997-04-29 22:53:37 +08:00
|
|
|
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
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.BI -r " revision"
|
1997-04-30 05:26:48 +08:00
|
|
|
Set the filesystem revision for the new filesystem. Note that 1.2
|
|
|
|
kernels only support revision 0 filesystems.
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.BI \-R " raid_options"
|
1998-12-08 10:21:29 +08:00
|
|
|
Set raid-related options for the filesystem. Raid options are comma
|
1997-04-30 05:26:48 +08:00
|
|
|
separated, and may take an argument using the equals ('=') sign.
|
|
|
|
Currently the only supported argument is
|
|
|
|
.I stride
|
|
|
|
which takes as its argument the number of blocks in a RAID stripe.
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-S
|
1997-04-26 21:34:30 +08:00
|
|
|
Write superblock and group descriptors only. This is useful if all of
|
|
|
|
the superblock and backup superblocks are corrupted, and a last-ditch
|
1997-05-09 11:06:31 +08:00
|
|
|
recovery method is desired. It causes
|
|
|
|
.B mke2fs
|
|
|
|
to reinitialize the
|
1997-04-26 21:34:30 +08:00
|
|
|
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.
|
ChangeLog, debugfs.8.in, debugfs.c:
Add a -V option which displays the current version.
ChangeLog, unix.c:
unix.c (e2fsck_update_progress): Remove unused variables.
ChangeLog, inode.c:
inode.c (get_next_blockgroup): Fix bug where if get_next_blockgroup()
is called early because of a missing inode table in a block group, the
current_inode counter wasn't incremented correctly.
ChangeLog, tst_uuid.c:
tst_uuid.c (main): Fixed bogus declaration of the main's argv parameter.
ChangeLog, test_icount.c:
test_icount.c (main): Fix main() declaration so that it returns int,
not void.
Many files:
fsck.c (ignore): Remove unused variable cp.
chattr.c (fatal_error):
tune2fs.c (usage):
lsattr.c (usage):
dumpe2fs.c (usage):
badblocks.c (usage): Remove volatile from declaration.
fsck.c: Change use of strdup to be string_copy, since we don't trust
what glibc is doing with strdup. (Whatever it is, it isn't pretty.)
1998-06-27 13:11:14 +08:00
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.BI \-T " fs-type"
|
1999-07-19 23:30:21 +08:00
|
|
|
Specify how the filesystem is going to be used, so that mke2fs can
|
|
|
|
automatically determine the optimal filesystem parameters. The only
|
|
|
|
filesystem type which is currently supported is "news".
|
|
|
|
.TP
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
.B \-V
|
1999-07-19 23:30:21 +08:00
|
|
|
Print the version number of
|
ChangeLog, debugfs.8.in, debugfs.c:
Add a -V option which displays the current version.
ChangeLog, unix.c:
unix.c (e2fsck_update_progress): Remove unused variables.
ChangeLog, inode.c:
inode.c (get_next_blockgroup): Fix bug where if get_next_blockgroup()
is called early because of a missing inode table in a block group, the
current_inode counter wasn't incremented correctly.
ChangeLog, tst_uuid.c:
tst_uuid.c (main): Fixed bogus declaration of the main's argv parameter.
ChangeLog, test_icount.c:
test_icount.c (main): Fix main() declaration so that it returns int,
not void.
Many files:
fsck.c (ignore): Remove unused variable cp.
chattr.c (fatal_error):
tune2fs.c (usage):
lsattr.c (usage):
dumpe2fs.c (usage):
badblocks.c (usage): Remove volatile from declaration.
fsck.c: Change use of strdup to be string_copy, since we don't trust
what glibc is doing with strdup. (Whatever it is, it isn't pretty.)
1998-06-27 13:11:14 +08:00
|
|
|
.B mke2fs
|
|
|
|
and exit.
|
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
|
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
format (bold option flags and italicized variables), as suggested by
Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update man page to use a more standard format (bold
option flags and italicized variables), as suggested by Andreas Dilger
(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
uuid_generate.8.in: Update man page to use a more standard format
(bold option flags and italicized variables), as suggested by Andreas
Dilger (adilger@enel.ucalgary.ca)
1999-10-22 03:56:34 +08:00
|
|
|
accepts the
|
|
|
|
.B \-f
|
|
|
|
option but currently ignores it because the second
|
1997-04-26 21:21:57 +08:00
|
|
|
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
|
1998-03-30 09:20:55 +08:00
|
|
|
is part of the e2fsprogs package and is available for anonymous
|
|
|
|
ftp from tsx-11.mit.edu in /pub/linux/packages/ext2fs.
|
1997-04-26 21:21:57 +08:00
|
|
|
.SH SEE ALSO
|
ChangeLog, e2fsck.h, pass1.c, pass2.c, pass4.c, swapfs.c:
e2fsck.h:
pass1.c (pass1_get_blocks, pass1_read_inode, pass1_write_inode,
pass1_check_directory, e2fsck_use_inode_shortcuts): Make pass1_* be
private static functions, and create new function
e2fsck_use_inode_shortcuts which sets and clears the inode shortcut
functions in the fs structure.
e2fsck.h:
pass2.c (e2fsck_process_bad_inode): Make process_bad_inode() an
exported function.
pass4.c (e2fsck_pass4): Call e2fsck_process_bad_inode to check if a
disconnected inode has any problems before connecting it to
/lost+found. Bug and suggested fix by Pavel Machek <pavel@bug.ucw.cz>
ChangeLog, swapfs.c:
swapfs.c (ext2fs_swap_inode): Add compatibility for Linux 2.3 kernels
that use i_generation instead of i_version. Patch supplied by Jon
Bright <sircus@sircus.demon.co.uk>.
ChangeLog, mke2fs.8.in:
mke2fs.8.in: Fix typo in man page which caused the badblocks command
to not show up in the "SEE ALSO" section.
ChangeLog, expect.1, expect.2, image.gz, name:
f_recnect_bad: New test which checks the case where a disconnect inode
also bad inode fields; we need to make sure e2fsck offers to fix the
inode (or clear the inode, as necessary).
1999-06-25 23:40:18 +08:00
|
|
|
.BR badblocks (8),
|
1997-04-26 21:21:57 +08:00
|
|
|
.BR dumpe2fs (8),
|
|
|
|
.BR e2fsck (8),
|
|
|
|
.BR tune2fs (8)
|