2 .\" Copyright 1997 by Theodore Ts'o. All Rights Reserved.
4 .\" Japanese Version Copyright (c) 2001-2007 Yuichi SATO
5 .\" all rights reserved.
6 .\" Translated Sun Sep 2 23:47:38 JST 2001
7 .\" by Yuichi SATO <ysato@h4.dion.ne.jp>, v1.24
8 .\" Updated & Modified Sat Mar 6 14:01:56 JST 2004
9 .\" by Yuichi SATO <ysato444@yahoo.co.jp>, v1.34
10 .\" Updated & Modified Mon Feb 19 03:21:10 JST 2007 by Yuichi SATO, v1.39
12 .\" .TH RESIZE2FS 8 "May 2006" "E2fsprogs version 1.39"
13 .TH RESIZE2FS 8 "May 2006" "E2fsprogs version 1.39"
16 .\"O resize2fs \- ext2/ext3 file system resizer
17 resize2fs \- ext2/ext3 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤òÊѹ¹¤¹¤ë
46 .\"O program will resize ext2 or ext3 file systems. It can be used to enlarge or
47 .\"O shrink an unmounted file system located on
50 ¤Ï ext2 ¤Þ¤¿¤Ï ext3 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤òÊѹ¹¤¹¤ë¡£
53 ¾å¤Î¥¢¥ó¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò³ÈÂç¤Þ¤¿¤Ï½Ì¾®¤¹¤ë¡£
54 .\"O If the filesystem is mounted, it can be used to expand the size of the
55 .\"O mounted filesystem, assuming the kernel supports on-line resizing. (As
56 .\"O of this writing, the Linux 2.6 kernel supports on-line resize for
57 .\"O filesystems mounted using ext3 only.).
58 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
59 ¥«¡¼¥Í¥ë¤¬¥ª¥ó¥é¥¤¥ó¤Ç¤Î¥µ¥¤¥ºÊѹ¹¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤È²¾Äꤷ¤Æ¡¢
60 ¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤ò³ÈÂ礹¤ë
61 (¤³¤Î man ¥Ú¡¼¥¸¤ò½ñ¤¤¤Æ¤¤¤ë»þÅÀ¤Ç¤Ï¡¢Linux 2.6 ¥«¡¼¥Í¥ë¤Ë¤ª¤¤¤Æ¡¢
62 ¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥ª¥ó¥é¥¤¥ó¤Ç¤Î¥µ¥¤¥ºÊѹ¹¤¬
63 ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤Î¤Ï¡¢ext3 ¤Î¤ß¤Ç¤¢¤ë)¡£
67 .\"O parameter specifies the requested new size of the filesystem.
69 ¥Ñ¥é¥á¡¼¥¿¤Ë¤Ï´õ˾¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¿·¤·¤¤¥µ¥¤¥º¤ò»ØÄꤹ¤ë¡£
70 .\"O If no units are specified, the units of the
72 .\"O parameter shall be the filesystem blocksize of the filesystem.
73 ñ°Ì¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢
75 ¥Ñ¥é¥á¡¼¥¿¤Îñ°Ì¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤È¤Ê¤ë¡£
78 .\"O parameter may be suffixed by one of the following the units
79 .\"O designators: 's', 'K', 'M', or 'G',
80 .\"O for 512 byte sectors, kilobytes, megabytes, or gigabytes, respectively.
82 ¥Ñ¥é¥á¡¼¥¿¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤È¤·¤Æ
83 °Ê²¼¤Îñ°Ì»ØÄêʸ»ú¤ò¸å¤í¤ËÉÕ¤±¤ë¤³¤È¤¬¤Ç¤¤ë¡£
84 \&'s', 'K', 'M', 'G' ¤Ï¡¢¤½¤ì¤¾¤ì 512 ¥Ð¥¤¥È¥»¥¯¥¿¡¢
85 ¥¥í¥Ð¥¤¥È¡¢¥á¥¬¥Ð¥¤¥È¡¢¥®¥¬¥Ð¥¤¥È¤òɽ¤¹¡£
88 .\"O of the filesystem may never be larger than the size of the partition.
91 ¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤è¤êÂ礤¯¤¹¤ë¤³¤È¤Ï¤Ç¤¤Ê¤¤¡£
94 .\"O parameter is not specified, it will default to the size of the partition.
96 ¥Ñ¥é¥á¡¼¥¿¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢
97 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤ò¥Ç¥Õ¥©¥ë¥È¤È¤¹¤ë¡£
101 .\"O program does not manipulate the size of partitions. If you wish to enlarge
102 .\"O a filesystem, you must first make sure you can expand the size of the
103 .\"O underlying partition first.
105 ¥×¥í¥°¥é¥à¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤ÏÁàºî¤·¤Ê¤¤¡£
106 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÂ礤¯¤·¤è¤¦¤È¤¹¤ë¾ì¹ç¤Ï¡¢
107 ¤½¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¤¢¤ë¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤òÂ礤¯¤Ç¤¤ë¤«¤ò
108 ºÇ½é¤Ë³Îǧ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
109 .\"O This can be done using
111 .\"O by deleting the partition and recreating it with a larger size or using
112 .\"O .BR lvextend (8),
113 .\"O if you're using the logical volume manager
117 ¤ò»È¤Ã¤Æ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºï½ü¤·¤¿¸å¤Ë
118 ¤è¤êÂ礤ʥѡ¼¥Æ¥£¥·¥ç¥ó¤òºÆºîÀ®¤¹¤ë¤³¤È¤Ç³Îǧ¤Ç¤¤ë¤·¡¢
119 ÏÀÍý¥Ü¥ê¥å¡¼¥à¥Þ¥Í¡¼¥¸¥ã
125 .\"O recreating the partition, make sure you create it with the same starting
126 .\"O disk cylinder as before! Otherwise, the resize operation will
127 .\"O certainly not work, and you may lose your entire filesystem.
128 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºÆºîÀ®¤¹¤ë¾ì¹ç¡¢
129 ɬ¤º°ÊÁ°¤ÈƱ¤¸³«»Ï¥Ç¥£¥¹¥¯¥·¥ê¥ó¥À¤ÇºîÀ®¤¹¤ë¤³¤È!
130 ¤½¤¦¤·¤Ê¤¤¤È¡¢¥µ¥¤¥ºÊѹ¹¤ÎÁàºî¤ÏÀäÂФˤ¦¤Þ¤¯¹Ô¤«¤º¡¢
131 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÁ´ÂΤò¼º¤Ã¤Æ¤·¤Þ¤¦¡£
134 .\"O run resize2fs to resize the ext2 filesystem
135 .\"O to use all of the space in the newly enlarged partition.
137 ¤ò¼Â¹Ô¤·¤¿¸å¡¢resize2fs ¤ò¼Â¹Ô¤¹¤ë¤³¤È¡£
138 ¤³¤ì¤Ë¤è¤ê¡¢ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤òÊѹ¹¤·¡¢
139 ³ÈÂ礷¤¿¿·¤·¤¤¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ÎÁ´¤Æ¤ÎÎΰè¤ò»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£
141 .\"O If you wish to shrink an ext2 partition, first use
143 .\"O to shrink the size of filesystem. Then you may use
145 .\"O to shrink the size of the partition. When shrinking the size of
146 .\"O the partition, make sure you do not make it smaller than the new size
147 .\"O of the ext2 filesystem!
148 ext2 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò¾®¤µ¤¯¤·¤è¤¦¤È¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢
151 ¤ò»È¤Ã¤Æ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤ò¾®¤µ¤¯¤¹¤ë¡£
154 ¤ò»È¤¨¤Ð¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤ò¾®¤µ¤¯¤Ç¤¤ë¡£
155 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤ò¾®¤µ¤¯¤¹¤ë¤È¤¤Ï¡¢
156 ¿·¤·¤¤ ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤è¤ê¾®¤µ¤¯¤·¤Ê¤¤¤³¤È!
160 .B \-d \fIdebug-flags
161 .\"O Turns on various resize2fs debugging features, if they have been compiled
162 .\"O into the binary.
163 resize2fs ¤Î¤¤¤í¤¤¤í¤Ê¥Ç¥Ð¥Ã¥°Â°À¤¬¥×¥í¥°¥é¥à¤ËÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢
164 ¤½¤ì¤é¤Î°À¤òÀßÄꤹ¤ë¡£
166 .\"O should be computed by adding the numbers of the desired features
167 .\"O from the following list:
169 ¤Ï°Ê²¼¤Î¥ê¥¹¥È¤Î¤¦¤Á´õ˾¤¹¤ë°ÀÃͤò¤·¤Æ·×»»¤¹¤ë¡£
171 .\"O \ 1\ \-\ Print out all disk I/O
172 \ 1\ \-\ Á´¤Æ¤Î¥Ç¥£¥¹¥¯ I/O ¤òɽ¼¨¤¹¤ë¡£
174 .\"O \ 2\ \-\ Debug block relocations
175 \ 2\ \-\ ¥Ö¥í¥Ã¥¯¤ÎºÆ³ä¤êÅö¤Æ¤ò¥Ç¥Ð¥Ã¥°¤¹¤ë¡£
177 .\"O \ 8\ \-\ Debug inode relocations
178 \ 8\ \-\ inode ¤ÎºÆ³ä¤êÅö¤Æ¤ò¥Ç¥Ð¥Ã¥°¤¹¤ë¡£
180 .\"O \ 16\ \-\ Debug moving the inode table
181 \ 16\ \-\ inode ¥Æ¡¼¥Ö¥ë¤Î°ÜÆ°¤ò¥Ç¥Ð¥Ã¥°¤¹¤ë¡£
183 .B \-S \fIRAID-stride
186 .\"O program will heuristically determine the RAID stride that was specified
187 .\"O when the filesystem was created. This option allows the user to
188 .\"O explicitly specify a RAID stride setting to be used by resize2fs instead.
190 ¥×¥í¥°¥é¥à¤Ï¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ºîÀ®¤µ¤ì¤¿¤È¤¤Ë»ØÄꤵ¤ì¤¿
191 RAID stride ¤ò¥Ò¥å¡¼¥ê¥¹¥Æ¥£¥Ã¥¯ (heuristic) ¤Ë´ð¤Å¤¤¤Æ·èÄꤹ¤ë¡£
192 °ìÊý¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤Ë¤è¤ê¡¢¥æ¡¼¥¶¤Ï resize2fs ¤Ç»ÈÍѤµ¤ì¤ë
193 RAID stride ÀßÄê¤òÌÀ¼¨Åª¤Ë»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤¤ë¡£
196 .\"O Prints out a percentage completion bars for each
198 .\"O operation, so that the user can keep track of what
199 .\"O the program is doing.
201 ¤Î³ÆÁàºî¤Ë¤Ä¤¤¤Æ¡¢ºî¶È´°Î»Ê¬¤Î¥Ñ¡¼¥»¥ó¥È¤òɽ¤¹¥Ð¡¼¤òɽ¼¨¤¹¤ë¡£
202 ¤³¤ì¤Ë¤è¤ê¥æ¡¼¥¶¡¼¤Ï¥×¥í¥°¥é¥à¤ÎÆ°ºî¤òÄɤ¦¤³¤È¤¬¤Ç¤¤ë¡£
205 .\"O Forces resize2fs to proceed with the filesystem resize operation, overriding
206 .\"O some safety checks which resize2fs normally enforces.
207 resize2fs ¤¬Ä̾ï¹Ô¤¦°ÂÁ´À¥Á¥§¥Ã¥¯¤ò̵»ë¤µ¤»¤Æ¡¢
208 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥ºÊѹ¹Áàºî¤ò¶¯À©Åª¤Ë¿Ê¤á¤ë¡£
211 .\"O Flush the filesystem device's buffer caches before beginning. Only
212 .\"O really useful for doing
215 ¥µ¥¤¥ºÊѹ¹¤ò»Ï¤á¤ëÁ°¤Ë¡¢
216 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥Ç¥Ð¥¤¥¹¤Î¥Ð¥Ã¥Õ¥¡¥¥ã¥Ã¥·¥å¤ò¾Ãµî¤¹¤ë¡£
218 ¤Î¥¿¥¤¥à¥È¥é¥¤¥¢¥ë¤ò¤¹¤ë¾ì¹ç¤Ë¤Î¤ßÌòΩ¤Ä¡£
222 .\"O was written by Theodore Ts'o <tytso@mit.edu>.
224 ¤Ï Theodore Ts'o <tytso@mit.edu> ¤¬ºîÀ®¤·¤¿¡£
227 Resize2fs is Copyright 1998 by Theodore Ts'o and PowerQuest, Inc. All
229 .\"O As of April, 2000
231 .\"O may be redistributed under the terms of the GPL.
232 2000 ǯ 4 ·î¤Î»þÅÀ¤Ç¤Ï¡¢
234 ¤Ï GPL ¤Î²¼¤ÇºÆÇÛÉÛ²Äǽ¤Ç¤¢¤ë¡£