1RESIZE_REISERFS(8)          System Manager's Manual         RESIZE_REISERFS(8)
2
3
4

NAME

6       resize_reiserfs - resizer tool for the ReiserFS filesystem
7

SYNOPSIS

9       resize_reiserfs [ -s [+|-]size[K|M|G] ] [ -j dev ] [ -fqv ] device
10

DESCRIPTION

12       The resize_reiserfs tool resizes an unmounted reiserfs file system.  It
13       enlarges or shrinks an reiserfs file system located on a device so that
14       it  will have size bytes or size=old_size +(-) size bytes if the + or -
15       prefix is used.  If the -s option is not specified, the filesystem will
16       be  resized  to fill the given device.  The size parameter may have one
17       of the optional modifiers K, M, G, which means the  size  parameter  is
18       given in kilo-, mega-, gigabytes respectively.
19
20       The resize_reiserfs program does not manipulate the size of the device.
21       If you wish to enlarge a filesystem, you must make sure you expand  the
22       underlying  device  first.  This can be done using cfdisk(8) for parti‐
23       tions, by deleting the partition and recreating it with a  larger  size
24       (assuming  there  is free space after the partition in question).  Make
25       sure you re-create it with the same starting disk cylinder  as  before!
26       Otherwise,  the  resize  operation will certainly not work, and you may
27       lose your entire filesystem.
28
29       The resize_reiserfs program allows to grow a reiserfs on-line if  there
30       is a free space on block device.
31
32
33       If  you  wish to shrink a reiserfs partition, first use resize_reiserfs
34       to shrink the file system. You may then use  cfdisk(8)  to  shrink  the
35       device.  When  shrinking  the  size of the device, make sure you do not
36       make it smaller than the reduced size of the reiserfs filesystem.
37
38

OPTIONS

40       -s [+|-]size
41              Set the new size in bytes.
42
43       -j dev Set the journal device name.
44
45       -f     Force, do not perform checks.
46
47       -q     Do not print anything but error messages.
48
49       -v     Turn on extra progress status messages (default).
50
51

RETURN VALUES

53       0    Resizing successful.
54
55       -1   Resizing not successful.
56
57

EXAMPLES

59       The following example shows how to test resize_reiserfs.   Suppose  2Gb
60       reiserfs  filesystem  is created on the device /dev/hda8 and is mounted
61       on /mnt.  For shrinking the device we need to unmount  it  first,  then
62       run resize_reiserfs with a size  parameter (in this case -1Gb):
63
64            df
65            umount /mnt
66            resize_reiserfs -s -1G /dev/hda8
67            mount /dev/hda8 /mnt
68            df /mnt
69
70

AUTHOR

72       This   version   of  resize_reiserfs  has  been  written  by  Alexander
73       Zarochentcev <zam@namesys.com>.
74

BUGS

76       Please report bugs to the ReiserFS developers <reiserfs-devel@vger.ker‐
77       nel.org>,  providing  as  much  information as possible--your hardware,
78       kernel, patches, settings, all printed messages; check the syslog  file
79       for any related information.
80

SEE ALSO

82       cfdisk(8), reiserfsck(8), debugreiserfs(8)
83
84
85
86Reiserfsprogs-3.6.27             January 2009               RESIZE_REISERFS(8)
Impressum