In addition to the filesystem creator (mke2fs ) and checker (e2fsck ) accessible directly or via the filesystem type independent front ends, the ext2 filesystem has some additional tools that can be useful.
tune2fs adjusts filesystem parameters. Some of the more interesting parameters are:
dumpe2fs shows information about an ext2 filesystem, mostly from the superblock. Figure 3.5 shows a sample output. Some of the information in the output is technical and requires understanding of how the filesystem works (see appendix ), but much of it is readily understandable even for layadmins.
Figure 3.5: Sample output from dumpe2fs
debugfs is a filesystem debugger. It allows direct access to the filesystem data structures stored on disk and can thus be used to repair a disk that is so broken that fsck can't fix it automatically. It has also been known to be used to recover deleted files. However, debugfs very much requires that you understand what you're doing; a failure to understand can destroy all your data.
dump and restore can be used to back up an ext2 filesystem. They are ext2 specific versions of the traditional UNIX backup tools. See chapter 7 for more information on backups.