Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

resize_reiserfs(8) [redhat man page]

RESIZE_REISERFS(8)					      System Manager's Manual						RESIZE_REISERFS(8)

resize_reiserfs - Reiserfs filesystem resizer 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) 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 an reiserfs partition, first use resize_reiserfs to shrink the file system. You may then use cfdisk(8) 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 In another case. 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 WARNING
Note that this is a BETA program and may corrupt filesystems. AUTHOR
This version of resize_reiserfs has been written by Alexander Zarochentcev <>. BUGS
Please, report about the bugs to Alexander Zarochentcev <> or to Hans Reiser <>. SEE ALSO
cfdisk(8), reiserfsck(8), debugreiserfs(8) Reiserfsprogs-3.6.4 January 2002 RESIZE_REISERFS(8)

Check Out this Related Man Page

DEBUGREISERFS(8)					      System Manager's Manual						  DEBUGREISERFS(8)

debugreiserfs - The debugging tool for the ReiserFS filesystem. SYNOPSIS
debugreiserfs [ -dDJmoqpuSV ] [ -j device ] [ -B file ] [ -1 N ] device DESCRIPTION
debugreiserfs sometimes helps to solve problems with reiserfs filesystems. When run without options it prints the super block of the Reis- erFS filesystem found on the device. device is the special file corresponding to the device (e.g /dev/hdXX for an IDE disk partition or /dev/sdXX for a SCSI disk partition). OPTIONS
-j device prints the contents of the journal. The option -p allows it to pack the journal with other metadata into the archive. -J prints the journal header. -d prints the formatted nodes of the internal tree of the filesystem. -D prints the formatted nodes of all used blocks of the filesystem. -m prints the contents of the bitmap (slightly useful). -o prints the objectid map (slightly useful). -B file takes the list of bad blocks stored in the internal ReiserFS tree and translates it into an ascii list written to the specified file. -1 blocknumber prints the specified block of the filesystem. -p extracts the filesystem's metadata with debugreiserfs -p /dev/xxx | gzip -c > xxx.gz. None of your data are packed unless a filesys- tem corruption presents when the whole block having this corruption is packed. You send us the output, and we use it to create a filesystem with the same strucure as yours using debugreiserfs -u. When the data file is not too large, this usually allows us to quickly reproduce and debug the problem. -u builds the ReiserFS filesystem image with gunzip -c xxx.gz | debugreiserfs -u /dev/image of the previously packed metadata with debugreiserfs -p. The result image is not the same as the original filesystem, because mostly only metadata were packed with debu- greiserfs -p, but the filesystem structure is completely recreated. -S When -S is not specified -p deals with blocks marked used in the filesystem bitmap only. With this option set debugreiserfs will work with the entire device. -q When -p is in use, suppress showing the speed of progress. AUTHOR
This version of debugreiserfs has been written by Vitaly Fertman <>. BUGS
Please report bugs to the ReiserFS developers <>, providing as much information as possible--your hardware, kernel, patches, settings, all printed messages; check the syslog file for any related information. SEE ALSO
reiserfsck(8), mkreiserfs(8) Reiserfsprogs 3.6.21 January 2009 DEBUGREISERFS(8)

Featured Tech Videos