2 .\" Copyright 1993, 1994, 1995 by Theodore Ts'o. All Rights Reserved.
3 .\" This file may be copied under the terms of the GNU Public License.
5 .TH DEBUGFS 8 "@E2FSPROGS_MONTH@ @E2FSPROGS_YEAR@" "E2fsprogs version @E2FSPROGS_VERSION@"
7 debugfs \- ext2 file system debugger
18 is a file system debugger. It can be used to examine and change the
19 state of an ext2 file system.
22 is the special file corresponding to the device containing the ext2
23 file system (e.g /dev/hdXX).
27 Specify that the file system should be open in read-write mode. Without this
28 option, the file system is open in read-only mode.
31 is an interactive debugger. It understands a number of commands.
34 Dump the contents of an inode to stdout.
37 Change the current working directory to specified directory
40 Change the root directory to be the specified inode.
43 Close the currently open file system.
46 Clear the contents of the inode corresponding to
49 .I dump <file> <out_file>
50 Dump the contents of an inode to a file.
55 .I find_free_block [goal]
56 Find the first free block, starting from
60 .I find_free_inode [dir [mode]]
61 Find a free inode and allocates it.
64 Mark the block as not allocated.
67 Free the inode corresponding to
71 Print a list of commands understood by
75 Do block->inode translation.
78 Print the file name corresponding to
80 (currently not implemented - see ncheck).
82 .I initialize <device> <blocksize>
83 Create an ext2 file system on
87 Remove a file and deallocates its blocks.
89 .I ln <source_file> <dest_file>
97 .I modify_inode <file>
98 Modify the contents of the inode corresponding to
104 .I mknod <file> [p|[[c|b] <major> <minor>]]
105 Create a special device file
108 Do inode->name translation.
110 .I open [-w] <device>
114 Print the current working directory.
127 Mark the block as allocated.
130 Mark in use the inode corresponding to
134 List the contents of the super block.
137 Dump the contents of the inode corresponding to
141 Test if the block is marked as allocated.
144 Test if the inode correponding to
146 is marked as allocated.
151 .I write source_file <file>
152 Create a file in the filesystem named
154 and copy the contents of
156 into the destination file.
159 was written by Theodore Ts'o <tytso@mit.edu>.