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/sdb1By 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/sdb1reiserfstune 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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access