O'Reilly logo

Linux® Desk Reference, Second Edition by Scott Hawkins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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/hda6

Example: To use debugfs to display the contents of the superblock of /dev/hda6 and exit, enter

debugfs -R show_super_stats ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required