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 .\" Japanese Version Copyright 1998 by MATSUMOTO Shoji. All Rights Reserved.
6 .\" Translated Fri Mar 13 03:10:18 JST 1998 by MATSUMOTO Shoji.
7 .\" Updated Sat 23 Oct 1999 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
8 .\" Updated Tue 16 Nov 1999 by NAKANO Takeo
9 .\" Updated & Modified Thu Aug 16 00:10:30 JST 2001
10 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>
11 .\" Updated Thu 3 Oct 2002 by NAKANO Takeo
12 .\" Updated & Modified Sat Apr 17 13:18:42 JST 2004
13 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
14 .\" Updated & Modified Tue May 3 03:13:30 JST 2005 by Yuichi SATO
15 .\" Updated & Modified Sat Oct 28 04:28:52 JST 2006 by Yuichi SATO
17 .\"WORD: allocate ¥¢¥í¥±¡¼¥È (¤¹¤ë)
18 .\"WORD: interactive ÂÐÏÃŪ
19 .\"WORD: stdout ɸ½à½ÐÎÏ
20 .\"WORD: dump ¥À¥ó¥×¤¹¤ë
21 .\"WORD: current working directory ¥«¥ì¥ó¥È¥ï¡¼¥¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê
22 .\"WORD: open ¥ª¡¼¥×¥ó¤¹¤ë
23 .\"WORD: close ¥¯¥í¡¼¥º¤¹¤ë
24 .\"WORD: owner ½êͼÔ(owner)
25 .\"WORD: group ½êÍ¥°¥ë¡¼¥×(group)
26 .\"WORD: permission ¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó(permission)
27 .\"WORD: free block ¶õ¤¥Ö¥í¥Ã¥¯(free block)
28 .\"WORD: directory entry ¥Ç¥£¥ì¥¯¥È¥ê¥¨¥ó¥È¥ê
30 .\"WORD: reference counts »²¾È¿ô(reference counts)
31 .\"WORD: structure ¹½Â¤ÂÎ
32 .\"WORD: pathname ¥Ñ¥¹Ì¾
33 .\"WORD: SPECIFING FILES ¥Õ¥¡¥¤¥ë»ØÄê
35 .TH DEBUGFS 8 "May 2006" "E2fsprogs version 1.39"
38 .\"O debugfs \- ext2/ext3 file system debugger
39 debugfs \- ext2/ext3 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥Ç¥Ð¥Ã¥¬
73 .\"O program is an interactive file system debugger. It can be used to
74 .\"O examine and change the state of an ext2 file system.
76 ¤ÏÂÐÏÃŪ¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ç¥Ð¥Ã¥¬¤Ç¤¢¤ë¡£
77 ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¾õÂÖ¤ÎÄ´ºº¡¦Êѹ¹¤ËÍøÍѤǤ¤ë¡£
80 .\"O is the special file corresponding to the device containing the ext2
81 .\"O file system (e.g /dev/hdXX).
83 ¤Ï¡¢ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò´Þ¤à¥Ç¥Ð¥¤¥¹¤ËÂбþ¤¹¤ë
84 ¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¡£(Îã: /dev/hdXX)
89 .\"O Specifies that the file system should be opened in read-write mode.
90 .\"O Without this option, the file system is opened in read-only mode.
91 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò read/write ¥â¡¼¥É¤Ç¥ª¡¼¥×¥ó¤¹¤ë¡£
92 ¤³¤Î¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤Ê¤¤¾ì¹ç¤Ï¡¢
93 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï read-only ¥â¡¼¥É¤Ç¥ª¡¼¥×¥ó¤µ¤ì¤ë¡£
96 .\"O Specifies that the file system should be opened in catastrophic mode, in
97 .\"O which the inode and group bitmaps are not read initially. This can be
98 .\"O useful for filesystems with significant corruption, but because of this,
99 .\"O catastrophic mode forces the filesystem to be opened read-only.
100 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò catastrophic
101 (¿ÓÂç¤ÊÇË»¤¬µ¯¤³¤Ã¤¿¾ì¹ç¤Î) ¥â¡¼¥É¤Ç¥ª¡¼¥×¥ó¤¹¤ë¡£
102 ¤³¤Î¥â¡¼¥É¤Ç¤Ï inode ¤È¥°¥ë¡¼¥×¥Ó¥Ã¥È¤òºÇ½é¤ËÆɤ߹þ¤Þ¤Ê¤¤¡£
103 ¤³¤ì¤Ï½ÅÅÙ¤ËÇË»¤·¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÂФ·¤Æ¤Ï͸ú¤Ê¤³¤È¤¬¤¢¤ë¤¬¡¢
104 °ìÊý¤³¤Î¤¿¤á catastrophic ¥â¡¼¥É¤Ç¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò
105 read-only ¤Ç¤·¤«¥ª¡¼¥×¥ó¤Ç¤¤Ê¤¤¡£
110 .\"O represents an ext2 image file created by the
112 .\"O program. Since the ext2 image file only contains the superblock, block
113 .\"O group descriptor, block and inode allocation bitmaps, and
114 .\"O the inode table, many
116 .\"O commands will not function properly.
120 ¥×¥í¥°¥é¥à¤Ë¤è¤Ã¤ÆºîÀ®¤µ¤ì¤¿ ext2 ¥¤¥á¡¼¥¸¥Õ¥¡¥¤¥ë¤Ç¤¢¤ë¤³¤È¤ò»ØÄꤹ¤ë¡£
121 ext2 ¥¤¥á¡¼¥¸¥Õ¥¡¥¤¥ë¤Ï¡¢¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¡¦
122 ¥Ö¥í¥Ã¥¯¥°¥ë¡¼¥×¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¦¥Ö¥í¥Ã¥¯¥¢¥í¥±¡¼¥·¥ç¥ó¥Ó¥Ã¥È¥Þ¥Ã¥×¡¦
123 inode ¥¢¥í¡¼¥±¥·¥ç¥ó¥Ó¥Ã¥È¥Þ¥Ã¥×¡¦inode ¥Æ¡¼¥Ö¥ë¤·¤«»ý¤¿¤Ê¤¤¤Î¤Ç¡¢
125 ¤Î¿¤¯¤Î¥³¥Þ¥ó¥É¤¬Àµ¤·¤¯µ¡Ç½¤·¤Ê¤¤¡£
127 .\"O no safety checks are in place, and
129 .\"O may fail in interesting ways if commands such as
130 .\"O .IR ls ", " dump ", "
131 .\"O etc. are tried without specifying the
132 .\"O .I data_source_device
137 .\"O is a debugging tool. It has rough edges!
139 °ÂÁ´À¤Î¥Á¥§¥Ã¥¯¤Ï¹Ô¤ï¤Ê¤¤¡£
143 .I data_source_device
146 ¤Ê¤É¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤¿¾ì¹ç¤Ë¤Ï
148 ¤ÏÊѤÊÉ÷¤Ë¼ºÇÔ¤¹¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
150 ¤Ï¥Ç¥Ð¥Ã¥°ÍѤΥġ¼¥ë¤Ê¤Î¤Ç¡¢ÀöÎý¤µ¤ì¤¿Éôʬ¤Î¤ß¤Ç¤¢¤ë¤È¤Ï¸Â¤é¤Ê¤¤!
152 .I -d data_source_device
155 .\"O option, specifies that
156 .\"O .I data_source_device
157 .\"O should be used when reading blocks not found in the ext2 image file.
159 ¥ª¥×¥·¥ç¥ó¤È¶¦¤Ë»ÈÍѤµ¤ì¡¢
160 Æɤ߹þ¤ß¥Ö¥í¥Ã¥¯¤¬ ext2 ¥¤¥á¡¼¥¸¥Õ¥¡¥¤¥ë¤Ë¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢
162 .I data_source_device
164 .\"O This includes data, directory, and indirect blocks.
165 ¤³¤Î¥Ç¥Ð¥¤¥¹¤Ë¤Ï¥Ç¡¼¥¿¡¦¥Ç¥£¥ì¥¯¥È¥ê¡¦´ÖÀÜ (indirect) ¥Ö¥í¥Ã¥¯¤¬´Þ¤Þ¤ì¤ë¡£
168 .\"O Forces the use of the given block size for the file system, rather than
169 .\"O detecting the correct block size as normal.
170 Ä̾ï¤Î¤è¤¦¤ËÀµ¤·¤¤¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò¸¡½Ð¤¹¤ëÆ°ºî¤ò¹Ô¤ï¤º¡¢
171 »ØÄꤷ¤¿¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò¤½¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ËÍѤ¤¤ë¡£
174 .\"O Causes the file system superblock to be read from the given block number,
175 .\"O rather than the default (1). If you give a
177 .\"O option, you must also give a
180 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤ò¡¢¥Ç¥Õ¥©¥ë¥È¤Î 1 ¤Ç¤Ï¤Ê¤¯¡¢
181 »ØÄꤷ¤¿¥Ö¥í¥Ã¥¯Èֹ椫¤éÆɤޤ»¤ë¡£
183 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤¿¾ì¹ç¡¢
185 ¥ª¥×¥·¥ç¥ó¤â»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
190 .\"O to read in commands from
192 .\"O and execute them. When
194 .\"O is finished executing those commands, it will exit.
198 ¤«¤é¥³¥Þ¥ó¥É¤òÆɤ߹þ¤Þ¤»¡¢¼Â¹Ô¤µ¤»¤ë¡£
199 ¥³¥Þ¥ó¥É¤Î¼Â¹Ô¤ò½ªÎ»¤¹¤ë¤È¡¢
206 .\"O to execute the single command
210 ¤È¤¤¤¦¤Ò¤È¤Ä¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¡¢½ªÎ»¤¹¤ë¡£
213 .\"O print the version number of
217 ¤Î¥Ð¡¼¥¸¥ç¥ó¤òɽ¼¨¤·¤Æ½ªÎ»¤¹¤ë¡£
218 .\"O .SH SPECIFYING FILES
224 .\"O as an argument to specify an inode (as opposed to a pathname)
225 .\"O in the filesystem which is currently opened by
229 .\"O argument may be specified in two forms. The first form is an inode
230 .\"O number surrounded by angle brackets, e.g.,
232 .\"O The second form is a pathname; if the pathname is prefixed by a forward slash
233 .\"O ('/'), then it is interpreted relative to the root of the filesystem
234 .\"O which is currently opened by
236 .\"O If not, the pathname is
237 .\"O interpreted relative to the current working directory as maintained by
239 .\"O This may be modified by using the
245 debugfs ¤¬¸½ºß¥ª¡¼¥×¥ó¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë¤ª¤±¤ë
246 inode (¥Ñ¥¹Ì¾¤Ç¤Ï¤Ê¤¤) ¤ò¼¨¤¹
250 ¤Ë¤Ï 2 ¼ïÎà¤ÎɽµË¡¤¬¤¢¤ë¡£¤Ò¤È¤Ä¤Ï¡¢inode ÈÖ¹æ¤ò <> ¤Ç°Ï¤àÊýË¡¤Ç¤¢¤ë
253 ¤â¤¦¤Ò¤È¤Ä¤Ï¥Ñ¥¹Ì¾¤Ç»ØÄꤹ¤ëÊýË¡¤Ç¤¢¤ë¡£
254 ¥Ñ¥¹Ì¾¤¬¡Ö/ (¥¹¥é¥Ã¥·¥å)¡×¤Ç¤Ï¤¸¤Þ¤ë¾ì¹ç¡¢
256 ¤¬¸½ºß¥ª¡¼¥×¥ó¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥ë¡¼¥È¤«¤é¤ÎÁêÂХѥ¹¤òɽ¤¹¡£
257 ¡Ö/¡×¤Ç»Ï¤Þ¤é¤Ê¤¤¾ì¹ç¡¢¥«¥ì¥ó¥È¥ï¡¼¥¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹¤òɽ¤¹¡£
258 ¥«¥ì¥ó¥È¥ï¡¼¥¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤Ï
262 ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÊѹ¹¤Ç¤¤ë¡£
268 .\"O This is a list of the commands which
272 ¤¬¥µ¥Ý¡¼¥È¤¹¤ë¥³¥Þ¥ó¥É¤Î°ìÍ÷¤ò°Ê²¼¤Ë¼¨¤¹¡£
274 .I bmap filespec logical_block
275 .\"O Print the physical block number corresponding to the logical block number
276 .\"O .I logical_block
280 ¤Ç»ØÄꤷ¤¿ inode ¤Ë¤ª¤±¤ëÏÀÍý¥Ö¥í¥Ã¥¯ÈÖ¹æ
282 ¤ËÂбþ¤¹¤ëʪÍý¥Ö¥í¥Ã¥¯ÈÖ¹æ¤òɽ¼¨¤¹¤ë¡£
285 .\"O Dump the contents of the inode
289 ¤Ç»ØÄꤷ¤¿ inode ¤ÎÆâÍƤòɸ½à½ÐÎϤإÀ¥ó¥×¤¹¤ë¡£
292 .\"O Change the current working directory to
294 ¥«¥ì¥ó¥È¥ï¡¼¥¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤ò
296 ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ËÊѹ¹¤¹¤ë¡£
299 .\"O Change the root directory to be the directory
303 ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ËÊѹ¹¤¹¤ë¡£
306 .\"O Close the currently open file system.
307 ¸½ºß¥ª¡¼¥×¥ó¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥¯¥í¡¼¥º¤¹¤ë¡£
310 .\"O Clear the contents of the inode
313 ¤Ç»ØÄꤷ¤¿ inode ¤ÎÆâÍƤò¥¯¥ê¥¢¤¹¤ë¡£
315 .I dump [-p] filspec out_file
316 .\"O Dump the contents of the inode
318 .\"O to the output file
321 ¤Ç»ØÄꤷ¤¿ inode ¤ÎÆâÍƤò
323 ¤Ç»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤Ë¥À¥ó¥×¤¹¤ë¡£
326 .\"O option is given set the owner, group and permissions information on
331 ¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤ë¤È¡¢
333 ¤Î½êÍ¼Ô (owner)¡¢½êÍ¥°¥ë¡¼¥× (group)¡¢¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó (permission) ¤ò
337 .I expand_dir filespec
338 .\"O Expand the directory
341 ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤òŸ³«¤¹¤ë¡£
343 .I feature [fs_feature] [-fs_feature] ...
344 .\"O Set or clear various filesystem features in the superblock. After setting
345 .\"O or clearing any filesystem features that were requested, print the current
346 .\"O state of the filesystem feature set.
347 ¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤ÎÍÍ¡¹¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à°À¤ò¥»¥Ã¥È/¥¯¥ê¥¢¤¹¤ë¡£
348 Í×µá¤Î¤¢¤Ã¤¿Â°À¤ò¥»¥Ã¥È/¥¯¥ê¥¢¤·¤¿¸å¤Ï¡¢
349 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à°À¤Î¸½ºß¾õÂ֤ΰìÍ÷¤òɽ¼¨¤¹¤ë¡£
351 .I find_free_block [count [goal]]
354 .\"O free blocks, starting from
356 .\"O and allocate it.
360 ʬ¤Î¶õ¤¥Ö¥í¥Ã¥¯¤òõ¤·¡¢¤½¤Î¶õ¤¥Ö¥í¥Ã¥¯¤ò¥¢¥í¥±¡¼¥È (allocate) ¤¹¤ë¡£
362 .I find_free_inode [dir [mode]]
363 .\"O Find a free inode and allocate it. If present,
365 .\"O specifies the inode number of the directory
366 .\"O which the inode is to be located. The second
367 .\"O optional argument
369 .\"O specifies the permissions of the new inode. (If the directory bit is set
370 .\"O on the mode, the allocation routine will function differently.)
371 ¶õ¤ inode ¤òõ¤·¡¢¤½¤Î inode ¤ò¥¢¥í¥±¡¼¥È¤¹¤ë¡£
374 ¤³¤ì¤Ï¤½¤Î inode ¤òÃÖ¤¯¤Ù¤¥Ç¥£¥ì¥¯¥È¥ê¤Î inode ¤È²ò¼á¤µ¤ì¤ë¡£
378 ¤³¤ì¤Ï¿·¤·¤¤ inode ¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤È²ò¼á¤µ¤ì¤ë¡£
380 ¤Ë¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤¢¤ë¤³¤È¤ò»ØÄꤹ¤ë¥Ó¥Ã¥È¤¬Î©¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
381 ¥¢¥í¥±¡¼¥È¥ë¡¼¥Á¥ó¤ÎµóÆ°¤Ï°Û¤Ê¤ë¤â¤Î¤Ë¤Ê¤ë¡£)
383 .I freeb block [count]
384 .\"O Mark the block number
386 .\"O as not allocated.
387 .\"O If the optional argument
389 .\"O is present, then
391 .\"O blocks starting at block number
393 .\"O will be marked as not allocated.
396 ¤ò¥¢¥í¥±¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤â¤Î¤È¤·¤Æ¥Þ¡¼¥¯¤¹¤ë¡£
399 ¤ò»ØÄꤹ¤ë¤È¡¢¥Ö¥í¥Ã¥¯ÈÖ¹æ
403 ʬ¤Î¥Ö¥í¥Ã¥¯¤ò¥¢¥í¥±¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤â¤Î¤È¤·¤Æ¥Þ¡¼¥¯¤¹¤ë¡£
406 .\"O Free the inode specified by
409 ¤Ç»ØÄꤷ¤¿ inode ¤ò²òÊü¤¹¤ë¡£
412 .\"O Print a list of commands understood by
413 .\"O .BR debugfs (8).
415 ¤ÇÍøÍѤǤ¤ë¥³¥Þ¥ó¥É¤Î¥ê¥¹¥È¤òɽ¼¨¤¹¤ë¡£
418 .\"O Print a listing of the inodes which use the one or more blocks specified
419 .\"O on the command line.
420 ¥³¥Þ¥ó¥É¥é¥¤¥ó¤ËÍ¿¤¨¤¿¥Ö¥í¥Ã¥¯ (Ê£¿ô»ØÄê²Ä)
421 ¤òÍøÍѤ·¤Æ¤¤¤ë inode ¤Î¥ê¥¹¥È¤òɽ¼¨¤¹¤ë¡£
424 .\"O Print the location of the inode data structure (in the inode table)
428 ¤Ç»ØÄꤵ¤ì¤¿ inode ¤Î (inode ¥Æ¡¼¥Ö¥ë¤Ë¤ª¤±¤ë)
429 inode ¥Ç¡¼¥¿¹½Â¤¤Î¾ì½ê¤òɽ¼¨¤¹¤ë¡£
431 .I init_filesys device blocksize
432 .\"O Create an ext2 file system on
434 .\"O with device size
436 .\"O Note that this does not fully initialize all of the data structures;
437 .\"O to do this, use the
439 .\"O program. This is just a call to the low-level library, which sets up
440 .\"O the superblock and block descriptors.
444 ¤Î ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºîÀ®¤¹¤ë¡£
445 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¤¹¤Ù¤Æ¤Î¥Ç¡¼¥¿¹½Â¤¤ò´°Á´¤Ë½é´ü²½¤¹¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¡£
448 ¥×¥í¥°¥é¥à¤òÍѤ¤¤ë¤³¤È¡£
449 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢Ã±¤Ë¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤È¥Ö¥í¥Ã¥¯¥Ç¥£¥¹¥¯¥ê¥×¥¿¤òÀßÄꤹ¤ë
450 Äã¥ì¥Ù¥ë¥é¥¤¥Ö¥é¥ê¤ò¸Æ¤Ó½Ð¤¹¤À¤±¤Ç¤¢¤ë¡£
452 .I kill_file filespec
453 .\"O Deallocate the inode
455 .\"O and its blocks. Note that this does not remove any directory
456 .\"O entries (if any) to this inode. See the
458 .\"O command if you wish to unlink a file.
459 .\"O nakano rm ¤Ï debugfs ¤ÎÆâÉô¥³¥Þ¥ó¥É¤Î¤³¤È¤À¤È»×¤¦¤Î¤Ç (1) ¤ÏÈ´¤¤¤¿¡£
461 ¤Ç»ØÄꤷ¤¿ inode ¤È¡¢
462 ¤½¤Î inode ¤¬»ÈÍѤ·¤Æ¤¤¤ë¥Ö¥í¥Ã¥¯¤ò¥¢¥í¥±¡¼¥È¤«¤é³°¤¹ (deallocate)¡£
463 ¤Ê¤ª¡¢¤½¤Î inode ¤ËÂбþ¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¥¨¥ó¥È¥ê¤Ïºï½ü¤·¤Ê¤¤¤³¤È¤ËÃí°Õ¡£
464 ¥Õ¥¡¥¤¥ë¤ò unlink ¤·¤¿¤¤¾ì¹ç¤Ï
466 ¥³¥Þ¥ó¥É¤ò»²¾È¤Î¤³¤È¡£
469 .\"O Change the current working directory of the
473 .\"O on the native filesystem.
475 ¥×¥í¥»¥¹¤Î¥«¥ì¥ó¥È¥ï¡¼¥¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤ò
476 ¥Í¥¤¥Æ¥£¥Ö¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à (ÌõÃð: ºî¶ÈÂоݤΤâ¤Î¤Ç¤Ï¤Ê¤¯¡¢
477 debugfs ¤¬¸Æ¤Ó½Ð¤µ¤ì¡¢²ÔƯ¤·¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à) ¾å¤Î
481 .I ln filespec dest_file
482 .\"O Create a link named
484 .\"O which is a link to
486 .\"O Note this does not adjust the inode reference counts.
491 ¤³¤ÎºÝ inode ¤Î»²¾È¿ô (reference counts) ¤ÏÊѹ¹¤·¤Ê¤¤¤³¤È¤ËÃí°Õ¡£
493 .I logdump [-acs] [-b<block>] [-i<filespec>] [-f<journal_file>] [output_file]
494 .\"O Dump the contents of the ext3 journal. By default, the journal inode as
495 .\"O specified in the superblock. However, this can be overridden with the
497 .\"O option, which uses an inode specifier to specify the journal to be
498 .\"O used. A file containing journal data can be specified using the
500 .\"O option. Finally, the
502 .\"O option utilizes the backup information in the superblock to locate the
504 ext3 ¥¸¥ã¡¼¥Ê¥ë¤ÎÆâÍƤò¥À¥ó¥×¤¹¤ë¡£
505 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¥¸¥ã¡¼¥Ê¥ë inode ¤Ï¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤Ç»ØÄꤵ¤ì¤ë¡£
508 ¥ª¥×¥·¥ç¥ó¤Ç¾å½ñ¤¤¹¤ë¤³¤È¤â²Äǽ¤Ç¤¢¤ë¡£
510 ¥ª¥×¥·¥ç¥ó¤Ï»ÈÍѤµ¤ì¤ë¥¸¥ã¡¼¥Ê¥ë¤ò»ØÄꤹ¤ë inode »ØÄê»Ò¤ò»È¤¦¡£
511 ¥¸¥ã¡¼¥Ê¥ë¥Ç¡¼¥¿¤¬½ñ¤«¤ì¤¿¥Õ¥¡¥¤¥ë¤Ï¡¢
513 ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
516 ¥ª¥×¥·¥ç¥ó¤Ï¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤Ë¤¢¤ë¥Ð¥Ã¥¯¥¢¥Ã¥×¾ðÊó¤ò»È¤Ã¤Æ¡¢
517 ¥¸¥ã¡¼¥Ê¥ë¤ò¥¢¥í¥±¡¼¥È¤¹¤ë¡£
521 .\"O option causes the
523 .\"O program to print the contents of all of the descriptor blocks.
525 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢
527 ¥×¥í¥°¥é¥à¤ÏÁ´¤Æ¤Î¥Ç¥£¥¹¥¯¥ê¥×¥¿¥Ö¥í¥Ã¥¯¤ÎÆâÍƤòɽ¼¨¤¹¤ë¡£
532 .\"O to print all journal records that are refer to the specified block.
534 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢
536 ¥×¥í¥°¥é¥à¤Ï»ØÄꤵ¤ì¤¿¥Ö¥í¥Ã¥¯¤ò»²¾È¤¹¤ëÁ´¤Æ¤Î¥¸¥ã¡¼¥Ê¥ë¥ì¥³¡¼¥É¤òɽ¼¨¤¹¤ë¡£
539 .\"O option will print out the contents of all of the data blocks selected by
546 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¤È¡¢
550 ¥ª¥×¥·¥ç¥ó¤ÇÁªÂò¤µ¤ì¤¿Á´¤Æ¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯¤ÎÆâÍƤòɽ¼¨¤¹¤ë¡£
552 .I ls [-l] [-d] filespec
553 .\"O Print a listing of the files in the directory
557 .\"O flag will list files using a more verbose format.
560 .\"O flag will list deleted entries in the directory.
562 ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥êÆâ¤Ë¤¢¤ë¥Õ¥¡¥¤¥ë¤ò¥ê¥¹¥Èɽ¼¨¤¹¤ë¡£
564 ¥Õ¥é¥°¤ò»ØÄꤹ¤ë¤È¡¢¤è¤ê¾ÜºÙ¤Ê½ñ¼°¤Ç¥Õ¥¡¥¤¥ë¤ò¥ê¥¹¥Èɽ¼¨¤¹¤ë¡£
567 ¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ëºï½ü¥¨¥ó¥È¥ê (deleted entry)
570 .I modify_inode filespec
571 .\"O Modify the contents of the inode structure in the inode
574 ¤Ç»ØÄꤷ¤¿ inode ¤Ë¤¢¤ë inode ¹½Â¤ÂΤÎÆâÍƤòÊѹ¹¤¹¤ë¡£
577 .\"O Make a directory.
578 ¥Ç¥£¥ì¥¯¥È¥ê¤òºîÀ®¤¹¤ë¡£
580 .I mknod filespec [p|[[c|b] major minor]]
581 .\"O Create a special device file (a named pipe, character or block device).
582 .\"O If a character or block device is to be made, the
586 .\"O device numbers must be specified.
587 ¥¹¥Ú¥·¥ã¥ë¥Ç¥Ð¥¤¥¹¥Õ¥¡¥¤¥ë
588 (̾Á°ÉÕ¤¥Ñ¥¤¥×¡¢¥¥ã¥é¥¯¥¿¥Ç¥Ð¥¤¥¹¡¢¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹)
590 ¥¥ã¥é¥¯¥¿¥Ç¥Ð¥¤¥¹¤ª¤è¤Ó¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹¤òºîÀ®¤¹¤ë¾ì¹ç¤Ï¡¢
595 ¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
597 .I ncheck inode_num ...
598 .\"O Take the requested list of inode numbers, and print a listing of pathnames
599 .\"O to those inodes.
600 »ØÄꤷ¤¿ inode Èֹ椽¤ì¤¾¤ì¤ËÂбþ¤¹¤ë¥Ñ¥¹Ì¾¤Î¥ê¥¹¥È¤òɽ¼¨¤¹¤ë¡£
602 .I open [-w] [-e] [-f] [-i] [-c] [-b blocksize] [-s superblock] device
603 .\"O Open a filesystem for editing. The
605 .\"O flag forces the filesystem to be opened even if there are some unknown
606 .\"O or incompatible filesystem features which would normally
607 .\"O prevent the filesystem from being opened.
608 ÊÔ½¸¤ÎÂоݤȤ¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥ª¡¼¥×¥ó¤¹¤ë¡£
610 ¥Õ¥é¥°¤ò¤Ä¤±¤ë¤È¡¢Ä̾ï¤Ç¤Ï¥ª¡¼¥×¥ó¤Ç¤¤Ê¤¤¤è¤¦¤Ê¡¢
611 ÉÔÌÀ¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤äÈó¸ß´¹¤Ê¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç¤â
612 ¶¯À©Åª¤Ë¥ª¡¼¥×¥ó¤¹¤ë¡£
615 .\"O flag causes the filesystem to be opened in exclusive mode. The
616 .\"O .IR -b ", " -c ", " -i ", " -s ", and " -w
617 .\"O options behave the same as the command-line options to
620 ¥Õ¥é¥°¤ò¤Ä¤±¤ë¤È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÇÓ¾¥â¡¼¥É¤Ç¥ª¡¼¥×¥ó¤¹¤ë¡£
621 .IR -b ", " -c ", " -i ", " -s ", " -w
622 ¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤¿¾ì¹ç¤ÎÆ°ºî¤Ï¡¢
624 ¤Ë¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤ò»ØÄꤷ¤¿¾ì¹ç¤ÈƱ¤¸¤Ç¤¢¤ë¡£
627 .\"O Print the current working directory.
628 ¥«¥ì¥ó¥È¥ï¡¼¥¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤òɽ¼¨¤¹¤ë¡£
636 .I rdump directory destination
637 .\"O Recursively dump
639 .\"O and all its contents (including regular files, symbolic links, and other
640 .\"O directories) into the named
642 .\"O which should be an existing directory on the native filesystem.
644 ¤È (Ä̾ï¤Î¥Õ¥¡¥¤¥ë¡¦¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¡¦
645 ¤½¤Î¾¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò´Þ¤à) ¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ÎÁ´¤Æ¤ÎÆâÍƤò¡¢
647 ¤È¤¤¤¦Ì¾Á°¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ËºÆµ¢Åª¤Ë¥À¥ó¥×¤¹¤ë¡£
649 ¤Ï¥Í¥¤¥Æ¥£¥Ö¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë¸ºß¤¹¤ë¥Ç¥£¥ì¥¯¥È¥ê¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
654 .\"O If this causes the inode pointed to by
656 .\"O to have no other references, deallocate the file. This command functions
657 .\"O as the unlink() system call.
660 ¤Ç»ØÄꤷ¤¿¥Ñ¥¹Ì¾¤ò unlink ¤¹¤ë¡£
662 ¤Î¼¨¤¹ inode ¤¬²¿¤â»²¾È¤·¤Ê¤¯¤Ê¤Ã¤¿¾ì¹ç¤Ë¤Ï¡¢
663 ¥Õ¥¡¥¤¥ë¤Î¥¢¥í¥±¡¼¥È¤ò³°¤¹¡£
664 ¤³¤Î¥³¥Þ¥ó¥É¤Ï unlink() ¥·¥¹¥Æ¥à¥³¡¼¥ë¤Î¤è¤¦¤ËÆ°ºî¤¹¤ë¡£
667 .\"O Remove the directory
670 ¤Ç»ØÄꤷ¤¿¥Ç¥£¥ì¥¯¥È¥ê¤ò¾Ãµî¤¹¤ë¡£
672 .I setb block [count]
673 .\"O Mark the block number
678 ¤ò¥¢¥í¥±¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤È¤·¤Æ¥Þ¡¼¥¯¤¹¤ë¡£
679 .\"O If the optional argument
681 .\"O is present, then
683 .\"O blocks starting at block number
685 .\"O will be marked as allocated.
688 ¤ò»ØÄꤹ¤ë¤È¡¢¥Ö¥í¥Ã¥¯ÈÖ¹æ
692 ʬ¤Î¥Ö¥í¥Ã¥¯¤ò¥¢¥í¥±¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤È¤·¤Æ¥Þ¡¼¥¯¤¹¤ë¡£
697 .\"O as in use in the inode bitmap.
698 inode ¥Ó¥Ã¥È¥Þ¥Ã¥×¤Ë¡¢
700 ¤Ç»ØÄꤷ¤¿ inode ¤¬»ÈÍÑÃæ¤Ç¤¢¤ë¤È¥Þ¡¼¥¯¤¹¤ë¡£
702 .I set_inode_field filespec field value
703 .\"O Modify the inode specified by
705 .\"O so that the inode field
710 ¤Ç»ØÄꤵ¤ì¤¿ inode ¤òÊѹ¹¤·¡¢inode ¥Õ¥£¡¼¥ë¥É
715 .\"O The list of valid inode fields which can be set via this command
716 .\"O can be displayed by using the command:
717 .\"O .B set_inode_field -l
718 ¤³¤Î¥³¥Þ¥ó¥É¤ÇÀßÄ꤬²Äǽ¤Ê¡¢Àµ¤·¤¤ inode ¥Õ¥£¡¼¥ë¥É¤Î¥ê¥¹¥È¤Ï¡¢
719 .B set_inode_field -l
720 ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æɽ¼¨¤Ç¤¤ë¡£
722 .I set_super_value field value
723 .\"O Set the superblock field
727 .\"O The list of valid superblock fields which can be set via this command
728 .\"O can be displayed by using the command:
729 .\"O .B set_super_value -l
730 ¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¥Õ¥£¡¼¥ë¥É
734 ¤Ë¤¹¤ë¡£¤³¤Î¥³¥Þ¥ó¥É¤ÇÀßÄ꤬²Äǽ¤Ê¡¢
735 Àµ¤·¤¤¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¥Õ¥£¡¼¥ë¥É¤Î¥ê¥¹¥È¤Ï¡¢
736 .B set_super_value -l
737 ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æɽ¼¨¤Ç¤¤ë¡£
739 .I show_super_stats [-h]
740 .\"O List the contents of the super block and the block group descriptors. If the
742 .\"O flag is given, only print out the superblock contents.
743 ¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤È¥Ö¥í¥Ã¥¯¥°¥ë¡¼¥×¥Ç¥£¥¹¥¯¥ê¥×¥¿¤ÎÆâÍƤòɽ¼¨¤¹¤ë¡£
745 ¥Õ¥é¥°¤¬Í¿¤¨¤é¤ì¤ë¤È¡¢
746 ¥¹¡¼¥Ñ¡¼¥Ö¥í¥Ã¥¯¤ÎÆâÍƤÀ¤±¤òɽ¼¨¤¹¤ë¡£
749 .\"O Display the contents of the inode structure of the inode
752 ¤Ç»ØÄꤷ¤¿ inode ¤Î inode ¹½Â¤ÂΤÎÆâÍƤòɽ¼¨¤¹¤ë¡£
754 .I testb block [count]
755 .\"O Test if the block number
757 .\"O is marked as allocated in the block bitmap.
758 .\"O If the optional argument
760 .\"O is present, then
762 .\"O blocks starting at block number
767 ¤¬¥Ö¥í¥Ã¥¯¥Ó¥Ã¥È¥Þ¥Ã¥×¤Ë¤ª¤¤¤Æ¥¢¥í¥±¡¼¥È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«Ä´¤Ù¤ë¡£
770 ¤ò»ØÄꤹ¤ë¤È¡¢¥Ö¥í¥Ã¥¯ÈÖ¹æ
774 ʬ¤Î¥Ö¥í¥Ã¥¯¤ò¸¡ºº¤¹¤ë¡£
777 .\"O Test if the inode
779 .\"O is marked as allocated in the inode bitmap.
782 inode ¥Ó¥Ã¥È¥Þ¥Ã¥×¤Ë¤ª¤¤¤Æ¥¢¥í¥±¡¼¥È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«Ä´¤Ù¤ë¡£
785 .\"O Remove the link specified by
787 .\"O to an inode. Note this does not adjust the inode reference counts.
789 ¤Ç»ØÄꤷ¤¿¡¢¤¢¤ë inode ¤ò»Ø¤¹¥ê¥ó¥¯¤òºï½ü¤¹¤ë¡£
790 ¤Ê¤ª¤³¤ÎºÝ¡¢inode »²¾È¿ô¤ÏÊѹ¹¤·¤Ê¤¤¤³¤È¤ËÃí°Õ¡£
792 .I write source_file out_file
793 .\"O Create a file in the filesystem named
795 .\"O and copy the contents of
797 .\"O into the destination file.
800 ¤Ç»ØÄꤷ¤¿¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¡¢
802 ¤ÎÆâÍƤò¤½¤Î¥Õ¥¡¥¤¥ë¤Ë¥³¥Ô¡¼¤¹¤ë¡£
803 .\"O .SH ENVIRONMENT VARIABLES
806 .B DEBUGFS_PAGER, PAGER
809 .\"O program always pipes the output of the some commands through a
810 .\"O pager program. These commands include:
811 .\"O .IR show_super_stats ,
812 .\"O .IR list_directory ,
813 .\"O .IR show_inode_info ,
814 .\"O .IR list_deleted_inodes ,
816 .\"O .IR htree_dump .
818 ¤Ï¤¤¤¯¤Ä¤«¤Î¥³¥Þ¥ó¥É¤Î½ÐÎϤò¾ï¤Ë¥Ú¡¼¥¸¥ã¥×¥í¥°¥é¥à¤Ë¥Ñ¥¤¥×¤¹¤ë¡£
819 ¤½¤Î¤è¤¦¤Ê¥³¥Þ¥ó¥É¤È¤·¤Æ¤Ï¡¢
820 .IR show_super_stats ,
822 .IR show_inode_info ,
823 .IR list_deleted_inodes ,
826 .\"O The specific pager can explicitly specified by the
827 .\"O .B DEBUGFS_PAGER
828 .\"O environment variable, and if it is not set, by the
830 .\"O environment variable.
831 ÆÃÄê¤Î¥Ú¡¼¥¸¥ã¤ò´Ä¶ÊÑ¿ô
833 ¤ÇÌÀ¼¨Åª¤Ë»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
834 ¤³¤Î´Ä¶ÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢´Ä¶ÊÑ¿ô
838 .\"O Note that since a pager is always used, the
840 .\"O pager is not particularly appropriate, since it clears the screen before
841 .\"O displaying the output of the command and clears the output the screen
842 .\"O when the pager is exited. Many users prefer to use the
844 .\"O pager for most purposes, which is why the
845 .\"O .B DEBUGFS_PAGER
846 .\"O environment variable is available to override the more general
848 .\"O environment variable.
849 1 ¤Ä¤Î¥Ú¡¼¥¸¥ã¤¬¾ï¤Ë»È¤ï¤ì¤ë¤Î¤Ç¡¢
851 ¥Ú¡¼¥¸¥ã¤ÏÆäËŬ¤µ¤Ê¤¤ÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£
853 ¤Ï¥³¥Þ¥ó¥É¤Îɽ¼¨¤òɽ¼¨¤¹¤ëÁ°¤Ë¥¹¥¯¥ê¡¼¥ó¤ò¥¯¥ê¥¢¤·¤¿¤ê¡¢
854 ¥Ú¡¼¥¸¥ã¤¬½ªÎ»¤¹¤ë¤È¤¤Ë¥¹¥¯¥ê¡¼¥ó¤Ø¤Î½ÐÎϤò¥¯¥ê¥¢¤·¤Æ¤·¤Þ¤¦¤«¤é¤Ç¤¢¤ë¡£
857 ¥Ú¡¼¥¸¥ã¤ò¤¤¤í¤¤¤í¤ÊÌÜŪ¤Ë»È¤¦¤Î¤ò¹¥¤ó¤Ç¤¤¤ë¡£
860 ¤Ç¡¢¤è¤ê°ìÈÌŪ¤Ê´Ä¶ÊÑ¿ô
862 ¤ò¾å½ñ¤¤Ç¤¤ëÍýͳ¤Ç¤¢¤ë¡£
866 .\"O was written by Theodore Ts'o <tytso@mit.edu>.
868 ¤Ï Theodore Ts'o <tytso@mit.edu> ¤Ë¤è¤Ã¤ÆºîÀ®¤µ¤ì¤¿¡£