[ -f cmd_file ] [ -R command ] [ -V ] [ -w [device ] ]
Examine and debug an ext2 filesystem. Note that this is an interactive command; once invoked, you get a debugfs prompt that can be fiddled with indefinitely. The filesystem should be unmounted before you run debugfs. Use debugfs with extreme caution; you can destroy the filesystem with this command. Note that the default if for debugfs to be run in read-only mode.
Example: To run debugfs on the filesystem in /dev/hda6 in read/ write mode, use
debugfs -w /dev/hda6
Example: To use debugfs to display the contents of the superblock of /dev/hda6 and exit, enterdebugfs -R show_super_stats ...