next up previous contents index
Next: Disks without filesystems Up: Filesystems Previous: Other tools for all

Other tools for the ext2 filesystem

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:

See the tune2fs  manual page for more information.

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 gif), but much of it is readily understandable even for layadmins.

  figure1378
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.


next up previous contents index
Next: Disks without filesystems Up: Filesystems Previous: Other tools for all

Lars Wirzenius
Sun May 4 14:08:43 EEST 1997