|RESIZE_REISERFS(8)||System Manager's Manual||RESIZE_REISERFS(8)|
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 a 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.
- -s [+|-]size
- Set the new size in bytes.
- -j dev
- Set the journal device name.
- Force, do not perform checks.
- Do not print anything but error messages.
- Turn on extra progress status messages (default).
- -1 Resizing not successful.
resize_reiserfs -s -1G /dev/hda8
mount /dev/hda8 /mnt