- The resize has to be done whilst the file system is not mounted.
Resize the filesystem using the resize_reiserfs command. To shrink the filesystem at a given device node by 65GB:
tony@omega:~$ sudo resize_reiserfs -s -65G /dev/mapper/data-media resize_reiserfs 3.6.19 (2003 www.namesys.com) You are running BETA version of reiserfs shrinker. This version is only for testing or VERY CAREFUL use. Backup of you data is recommended. Do you want to continue? [y/N]:y
- Take heed of the warnings about this being BETA software!
To grow a ReiserFS filesystem by 65GB, for example, use: -s +65G
Alternatively you can specify a new size using, for example: -s 100G
To expand a ReiserFS filesystem to use all the available space (in a partition or logical volume) run the resize_reiserfs command with only the device node as an argument:
tony@omega:~$ sudo resize_reiserfs /dev/mapper/data-media resize_reiserfs 3.6.19 (2003 www.namesys.com) [[ReiserFS]] report: blocksize 4096 block count 26214400 (9175040) free blocks 19341445 (2302605) bitmap block count 800 (280) Syncing..done resize_reiserfs: Resizing finished successfully.