---
name: "resize_reiserfs"
section: "8"
platform: "linux"
package: "reiserfsprogs"
version: "1:3.6.27-9"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/resize_reiserfs"
---

# resize\_reiserfs(8)

resizer tool for the ReiserFS filesystem

## NAME

resize\_reiserfs - resizer tool for the ReiserFS filesystem

## SYNOPSIS

**resize\_reiserfs** \[ **-s** *\[**+**\|**-***\]*size***\[K**\|**M**\|**G**\] \] \[ **-j** *dev* \] \[ **-fqv** \] *device*

## DESCRIPTION

The **resize\_reiserfs** tool resizes an unmounted reiserfs file system.  It enlarges or shrinks an reiserfs file system located on a *device* so that it will have *size* bytes or size=old\_size +(-) *size* bytes if the + or - prefix is used. If the **-s** option is not specified, the filesystem will be resized to fill the given device. The *size* parameter may have one of the optional modifiers **K**, **M**, **G**, which means the *size* parameter is given in kilo-, mega-, gigabytes respectively.

The **resize\_reiserfs** program does not manipulate the size of the device. If you wish to enlarge a filesystem, you must make sure you expand the underlying device first. This can be done using [**cfdisk**(8)](/cfdisk/8.md) for partitions, by deleting the partition and recreating it with a larger size (assuming there is free space *after* the partition in question).  Make sure you re-create it with the same starting disk cylinder as before!  Otherwise, the resize operation will certainly not work, and you may lose your entire filesystem.

The **resize\_reiserfs** program allows to grow a reiserfs on-line if there is a free space on block *device.*

If you wish to shrink a reiserfs partition, first use **resize\_reiserfs** to shrink the file system. You may then use [**cfdisk**(8)](/cfdisk/8.md) to shrink the device. When shrinking the size of the device, make sure you do not make it smaller than the reduced size of the reiserfs filesystem.

## OPTIONS

- **-s \[+\|-\]*size***

  Set the new size in bytes.

- **-j *dev***

  Set the journal device name.

- **-f**

  Force, do not perform checks.

- **-q**

  Do not print anything but error messages.

- **-v**

  Turn on extra progress status messages (default).

## RETURN VALUES

0	Resizing successful.

- \-1 Resizing not successful.

  ## EXAMPLES

The following example shows how to test **resize\_reiserfs.** Suppose 2Gb reiserfs filesystem is created on the device /dev/hda8 and is mounted on /mnt.  For shrinking the device we need to unmount it first, then run **resize\_reiserfs** with a *size  parameter (in this case -1Gb):*

	df\
 	umount /mnt\
 	resize\_reiserfs -s -1G /dev/hda8\
 	mount /dev/hda8 /mnt\
 	df /mnt

## AUTHOR

This version of **resize\_reiserfs** has been written by Alexander Zarochentcev \<zam@namesys.com\>.

## BUGS

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

## SEE ALSO

[**cfdisk**(8)](/cfdisk/8.md), [**reiserfsck**(8)](/reiserfsck/8.md), [**debugreiserfs**(8)](/debugreiserfs/8.md)
