]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - resize/resize2fs.8.in
ChangeLog, message.c, pass2.c, pass3.c:
[thirdparty/e2fsprogs.git] / resize / resize2fs.8.in
CommitLineData
24b2c7a7
TT
1.\" -*- nroff -*-
2.\" Copyright 1997 by Theodore Ts'o. All Rights Reserved.
3.\"
4.TH RESIZE2FS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
5.SH NAME
6resize2fs \- ext2 file system resizer
7.SH SYNOPSIS
8.B resize2fs
9[
c762c8e6
TT
10.B \-d
11.I debug-flags
24b2c7a7 12]
c762c8e6 13[
f4b2a6db 14.B \-f
c762c8e6
TT
15]
16[
17.B \-F
18]
f4b2a6db
TT
19[
20.B \-p
21]
c762c8e6 22.I device
f4b2a6db 23[
c762c8e6 24.I size
f4b2a6db 25]
24b2c7a7
TT
26.SH DESCRIPTION
27The
c762c8e6 28.B resize2fs
24b2c7a7 29program will resize ext2 file systems. It can be used to enlarge or
f4b2a6db
TT
30shrink an ext2 file system located on
31.I device
32so that it will have
c762c8e6
TT
33.I size
34blocks.
f4b2a6db
TT
35If the
36.I size
37parameter is not specified, it will default to the size of the partition.
38The
39.I size
40parameter may never be larger than the size of the partition.
41.PP
42The
43.B resize2fs
44program does not manipulate the size of partitions. If you wish to enlarge
45a filesystem, you must first make sure you can expand the size of the
46underlying partition first. This can be done using
47.BR fdisk (8)
48by deleting the partition and recreating it with a larger size. When
49recreating the partition, make sure you create it with the same starting
50disk cylinder as before! Otherwise, the resize operation will
51certainly not work, and you may lose your entire filesystem.
52.PP
53If you wish to shrink the an ext2 partition, first use
54.B resize2fs
55to shrink the size of filesystem. Then you may use
56.BR fdisk (8)
57to shrink the size of the partition. When shrinking the size of
58the partition, make sure you do not make it smaller than the new size
59of the ext2 filesystem!
24b2c7a7
TT
60.SH OPTIONS
61.TP
c762c8e6 62.I \-d debug-flags
f4b2a6db
TT
63Turns on various resize2fs debugging features, if they have been compiled
64into the binary.
c762c8e6
TT
65.I debug-flags
66should be computed by adding the numbers of the desired features
67from the following list:
68.br
69\ 1\ \-\ Print out all disk I/O
70.br
71\ 2\ \-\ Debug block relocations
72.br
73\ 8\ \-\ Debug inode relocations
74.br
75\ 16\ \-\ Debug moving the inode table
76.TP
77.I \-p
78Prints out a percentage completion bars for each
79.B resize2fs
80operation, so that the user can keep track of what
81the program is doing.
82.TP
f4b2a6db
TT
83.I \-f
84Forces resize2fs to proceed with the filesystem resize operation, overriding
85some safety checks which resize2fs normally enforces.
86.TP
c762c8e6
TT
87.I \-F
88Flush the filesystem device's buffer caches before beginning. Only
89really useful for doing
90.B resize2fs
91time trials.
24b2c7a7 92.SH AUTHOR
c762c8e6 93.B resize2fs
24b2c7a7 94was written by Theodore Ts'o <tytso@mit.edu>.
fac9c206
TT
95.SH COPYRIGHT
96Resize2fs is Copyright 1998 by Theodore Ts'o and PowerQuest, Inc. All
97rights reserved.
98.B Resize2fs
99may not be redistributed without the prior
100consent of PowerQuest. This version of
101.B resize2fs
102is available to licensed
103users of Partition Magic(tm).
24b2c7a7 104.SH SEE ALSO
f4b2a6db 105.BR fdisk (8),
24b2c7a7
TT
106.BR e2fsck (8),
107.BR mke2fs (8)