Commands
debugfs
[ -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/hda6Example: To use debugfs to display the contents of the superblock of /dev/hda6 and exit, enter
debugfs -R show_super_stats ...Get Linux® Desk Reference, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.