reiserfsck, reiserfstune, and debugreiserfs

Despite its name, reiserfsck does not perform a traditional filesystem check, but rather replays transactions that might not have not been completed since the last unmount. This is usually done when the system boots (that’s why the hard link fsck.reiserfs is also present), but system administrators can manually invoke reiserfsck in the following manner:

# reiserfsck /dev/sdb1

By default, reiserfsck performs a check and reports any errors found, but does not fix them. If no errors are detected, reiserfsck exits cleanly. To fix any fixable errors, try:

# reiserfsck --fix-fixable /dev/sdb1

reiserfstune and debugreiserfs perform additional administrative tasks on a filesystem. reiserfstune can be used to modify the filesystem’s journal size and maximum transaction size (the number of journal updates possible without a commitment to disk). It’s also useful for relocating a journal to another device. debugreiserfs displays the parameters of a ReiserFS and its journal. Without options, debugreiserfs displays the filesystem superblock. For further details, options, and examples, please refer to the reiserfsck(8), reiserfstune(8), and debugreiserfs(8) manual pages.

Get Managing RAID on Linux now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.