2 .\" Copyright 1996-2004 Hans Reiser.
4 .TH RESIZE_REISERFS 8 "January 2004" "Reiserfsprogs-3.6.19"
6 resize_reiserfs \- resizer tool for the ReiserFS filesystem
11 .IR \fR[\fB+\fR|\fB\- ]\fIsize\fB[\fBK\fR|\fBM\fR|\fBG\fR]
22 tool resizes an unmounted reiserfs file system. It enlarges or shrinks an
23 reiserfs file system located on a
27 bytes or size=old_size +(\-)
29 bytes if the + or \- prefix is used.
32 option is not specified, the filesystem will be resized to fill the
36 parameter may have one of the optional modifiers
40 parameter is given in kilo\-, mega\-, gigabytes respectively.
44 program does not manipulate the size of the device. If you wish to
45 enlarge a filesystem, you must make sure you expand the underlying
46 device first. This can be done using
48 for partitions, by deleting the partition and recreating it with a
49 larger size (assuming there is free space
51 the partition in question). Make sure you re\-create it with the
52 same starting disk cylinder as before! Otherwise, the resize operation
53 will certainly not work, and you may lose your entire filesystem.
57 program allows to grow a reiserfs on-line if there is a free
62 If you wish to shrink a reiserfs partition, first use
64 to shrink the file system. You may then use
66 to shrink the device. When shrinking the size of the device, make sure
67 you do not make it smaller than the reduced size of the reiserfs filesystem.
71 .BR \-s\ [+|\-]\fIsize
72 Set the new size in bytes.
75 Set the journal device name.
78 Force, do not perform checks.
81 Do not print anything but error messages.
84 Turn on extra progress status messages (default).
87 0 Resizing successful.
89 \-1 Resizing not successful.
92 The following example shows how to test
93 .B resize_reiserfs\fR.
94 Suppose 2Gb reiserfs filesystem is created on the device /dev/hda8
95 and is mounted on /mnt.
96 For shrinking the device we need to unmount it first, then run
99 .I size \fR parameter (in this case -1Gb):
105 \ resize_reiserfs -s -1G /dev/hda8
107 \ mount /dev/hda8 /mnt
114 has been written by Alexander Zarochentcev <zam@namesys.com>.
116 Please report bugs to the ReiserFS developers <reiserfs-dev@namesys.com>, providing
117 as much information as possible--your hardware, kernel, patches, settings, all printed
118 messages; check the syslog file for any related information.
122 .BR debugreiserfs (8)