debugfs.reiser4(8)
π debugfs.reiser4 β the reiser4 filesystem detective π
okay bestie so this is debugfs.reiser4, and it lives in the reiser4progs manual, section 8 (that's the "system admin commands" section, iykyk). it's basically the debug program for the reiser4 filesystem and it is literally the backstage pass to your filesystem's internal drama.
β¨ SYNOPSIS β¨
debugfs.reiser4 [ options ] FILE
πΈ DESCRIPTION πΈ
so debugfs.reiser4 is the reiser4 filesystem debug program. you can disscover (yes, that's the original spelling, we're keeping the vibe intact π«Ά) the internal reiser4 filesystem structures by using it. that's it, that's the whole job. it's giving microscope but for bytes. π¬
π COMMON OPTIONS π
-V,--versionβ prints the program version. that's it, that's the tea. π-?,-h,--helpβ prints program help. use this when you're lost, which, same. π-y,--yesβ assumes the answer 'yes' to all questions. it just says yes to everything, no thoughts, head empty. β-f,--forceβ forcesdebugfsto use the whole disk, not a block device or a mounted partition. bold. very main character energy. π-c,--cache Nβ sets the tree cache node number to the value you pass in. this affects very much behavior of libreiser4. it affects speed, tree allocation, etc. so like, lowkey a big deal. π₯
π¦ BROWSING OPTIONS π¦
-k,--catβ browses the passed file like the standardcatandlsprograms. cute, familiar, cozy. π
β¨ PRINT OPTIONS β¨
-t,--print-treeβ prints the internal tree. the whole tree. not a summary, bestie, the tree. π³-b,--print-block Nβ prints the block associated with the block number you passed. one block, one moment. π-n,--print-nodes FILEβ prints all the nodes that the passed file lies in. where does the file live? now you know. π-i,--print-fileβ prints all the items that the passed file consists of. it's giving "show me your receipts". π§Ύ-s,--print-superβ prints both super blocks: the master super block and the format specific one. two icons, one flag. ππ-j,--print-journalβ prints the journal with not yet commited transactions (if any). if there are none, well, nothing to see here. π-a,--print-allocβ prints the block allocator data. π¦-d,--print-oidβ prints the oid allocator data. π’
π METADATA OPTIONS π
-P,--pack-metadataβ fetches the filesystem metadata and writes them to the standard output. packing it up like a lil care package. π-U,--unpack-metadataβ reads a filesystem metadata stream from the stdandard input (original spelling, no cap, we respect the ancestors π«Ά) and constructs a new filesystem based on that metadata.
and here's the iconic round-trip trick they show you:
debugfs.reiser4 --pack-metadata <FS1> | debugfs.reiser4 --unpack-metadata <FS2>
and then:
debugfs.reiser4 --pack-metadata <FS2>
produces a stream equivalent to the first one. the way that it's a perfect circle?? πβ¨
π PLUGIN OPTIONS π
-p,--print-profileβ prints the plugin profile. this is the set of default plugins used for all parts of a filesystem β format, nodes, files, directories, hashes, etc. and if--overrideis specified, then it prints the modified plugins instead. π-l,--print-pluginsβ prints all pluginslibreiser4knows about. the full roster, the whole squad. π-o,--override TYPE=PLUGIN, ...β overrides the default plugin of the type"TYPE"with the plugin"PLUGIN"in the plugin profile. swap it out, glow up the profile. β¨
πΈ Examples πΈ
okay so here's the example, served fresh:
debugfs.reiser4 -o nodeptr=nodeptr41,hash=rupasov_hash /dev/hda2
see how nodeptr got swapped to nodeptr41 and hash got swapped to rupasov_hash? that's the override doing its thing. periodt. π
π REPORTING BUGS π
found a bug? Report bugs to <reiserfs-devel@vger.kernel.org>. don't suffer in silence bestie, tell the devs. π«Ά
π SEE ALSO π
go read those too, they're the rest of the friend group. π
π§ AUTHOR π§
This manual page was written by Yury Umanets <umka@namesys.com>. iconic behavior honestly, thank you for your service. π
and that's the whole page, bestie! this came out of the reiser4progs manual and it's dated 02 Oct, 2002 β yes, a vintage icon, we stan a legacy. now go debug something and slay. πβ¨ππ¦
π¦ where this page comes from
- debian bookworm: reiser4progs 1.2.2-1+b1
- ubuntu jammy: reiser4progs 1.2.2-1build1
- ubuntu noble: reiser4progs 1.2.2-1build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms