OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / e2fsprogs / draft / man8 / resize2fs.8
1 .\" -*- nroff -*-
2 .\" Copyright 1997 by Theodore Ts'o.  All Rights Reserved.
3 .\" 
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
11 .\" 
12 .\" .TH RESIZE2FS 8 "May 2006" "E2fsprogs version 1.39"
13 .TH RESIZE2FS 8 "May 2006" "E2fsprogs version 1.39"
14 .\"O .SH NAME
15 .SH Ì¾Á°
16 .\"O resize2fs \- ext2/ext3 file system resizer
17 resize2fs \- ext2/ext3 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤òÊѹ¹¤¹¤ë
18 .\"O .SH SYNOPSIS
19 .SH ½ñ¼°
20 .B resize2fs
21 [
22 .B \-d 
23 .I debug-flags
24 ]
25 [
26 .B \-S
27 .I RAID-stride
28 ]
29 [
30 .B \-f
31 ]
32 [
33 .B \-F
34 ]
35 [
36 .B \-p
37 ]
38 .I device
39 [
40 .I size
41 ]
42 .\"O .SH DESCRIPTION
43 .SH ÀâÌÀ
44 .\"O The 
45 .\"O .B resize2fs 
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 
48 .\"O .IR device .
49 .B resize2fs 
50 ¤Ï ext2 ¤Þ¤¿¤Ï ext3 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤òÊѹ¹¤¹¤ë¡£
51 ¤³¤Î¥×¥í¥°¥é¥à¤Ï
52 .I device 
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 ¤Î¤ß¤Ç¤¢¤ë)¡£
64 .PP
65 .\"O The 
66 .\"O .I size
67 .\"O parameter specifies the requested new size of the filesystem.
68 .I size
69 ¥Ñ¥é¥á¡¼¥¿¤Ë¤Ï´õ˾¤¹¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¿·¤·¤¤¥µ¥¤¥º¤ò»ØÄꤹ¤ë¡£
70 .\"O If no units are specified, the units of the
71 .\"O .I size
72 .\"O parameter shall be the filesystem blocksize of the filesystem.
73 ñ°Ì¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢
74 .I size
75 ¥Ñ¥é¥á¡¼¥¿¤Îñ°Ì¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤È¤Ê¤ë¡£
76 .\"O Optionally, the 
77 .\"O .I size
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.
81 .I size
82 ¥Ñ¥é¥á¡¼¥¿¤Ë¤Ï¥ª¥×¥·¥ç¥ó¤È¤·¤Æ
83 °Ê²¼¤Îñ°Ì»ØÄêʸ»ú¤ò¸å¤í¤ËÉÕ¤±¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
84 \&'s', 'K', 'M', 'G' ¤Ï¡¢¤½¤ì¤¾¤ì 512 ¥Ð¥¤¥È¥»¥¯¥¿¡¢
85 ¥­¥í¥Ð¥¤¥È¡¢¥á¥¬¥Ð¥¤¥È¡¢¥®¥¬¥Ð¥¤¥È¤òɽ¤¹¡£
86 .\"O The 
87 .\"O .I size
88 .\"O of the filesystem may never be larger than the size of the partition.
89 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î
90 .I size
91 ¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤è¤êÂ礭¤¯¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
92 .\"O If 
93 .\"O .I size
94 .\"O parameter is not specified, it will default to the size of the partition.
95 .I size
96 ¥Ñ¥é¥á¡¼¥¿¤¬»ØÄꤵ¤ì¤Ê¤¤¾ì¹ç¡¢
97 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤ò¥Ç¥Õ¥©¥ë¥È¤È¤¹¤ë¡£
98 .PP
99 .\"O The
100 .\"O .B resize2fs
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.  
104 .B resize2fs
105 ¥×¥í¥°¥é¥à¤Ï¡¢¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤ÏÁàºî¤·¤Ê¤¤¡£
106 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÂ礭¤¯¤·¤è¤¦¤È¤¹¤ë¾ì¹ç¤Ï¡¢
107 ¤½¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬¤¢¤ë¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤òÂ礭¤¯¤Ç¤­¤ë¤«¤ò
108 ºÇ½é¤Ë³Îǧ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
109 .\"O This can be done using 
110 .\"O .BR fdisk (8)
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
114 .\"O .BR lvm (8).
115 ¤³¤ì¤Ï¡¢
116 .BR fdisk (8)
117 ¤ò»È¤Ã¤Æ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºï½ü¤·¤¿¸å¤Ë
118 ¤è¤êÂ礭¤Ê¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºÆºîÀ®¤¹¤ë¤³¤È¤Ç³Îǧ¤Ç¤­¤ë¤·¡¢
119 ÏÀÍý¥Ü¥ê¥å¡¼¥à¥Þ¥Í¡¼¥¸¥ã
120 .BR lvm (8)
121 ¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢
122 .BR lvextend (8)
123 ¤ò»È¤Ã¤Æ³Îǧ¤Ç¤­¤ë¡£
124 .\"O When 
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 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥àÁ´ÂΤò¼º¤Ã¤Æ¤·¤Þ¤¦¡£
132 .\"O After running
133 .\"O .BR fdisk (8),
134 .\"O run resize2fs to resize the ext2 filesystem 
135 .\"O to use all of the space in the newly enlarged partition.
136 .BR fdisk (8)
137 ¤ò¼Â¹Ô¤·¤¿¸å¡¢resize2fs ¤ò¼Â¹Ô¤¹¤ë¤³¤È¡£
138 ¤³¤ì¤Ë¤è¤ê¡¢ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤òÊѹ¹¤·¡¢
139 ³ÈÂ礷¤¿¿·¤·¤¤¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ÎÁ´¤Æ¤ÎÎΰè¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤ë¡£
140 .PP
141 .\"O If you wish to shrink an ext2 partition, first use 
142 .\"O .B resize2fs
143 .\"O to shrink the size of filesystem.  Then you may use 
144 .\"O .BR fdisk (8)
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 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò¾®¤µ¤¯¤·¤è¤¦¤È¤¹¤ë¾ì¹ç¤Ë¤Ï¡¢
149 ºÇ½é¤Ë
150 .B resize2fs
151 ¤ò»È¤Ã¤Æ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤ò¾®¤µ¤¯¤¹¤ë¡£
152 ³¤¤¤Æ
153 .BR fdisk (8)
154 ¤ò»È¤¨¤Ð¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤ò¾®¤µ¤¯¤Ç¤­¤ë¡£
155 ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤ò¾®¤µ¤¯¤¹¤ë¤È¤­¤Ï¡¢
156 ¿·¤·¤¤ ext2 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥º¤è¤ê¾®¤µ¤¯¤·¤Ê¤¤¤³¤È!
157 .\"O .SH OPTIONS
158 .SH ¥ª¥×¥·¥ç¥ó
159 .TP
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 ¤½¤ì¤é¤Î°À­¤òÀßÄꤹ¤ë¡£
165 .\"O .I debug-flags
166 .\"O should be computed by adding the numbers of the desired features 
167 .\"O from the following list:
168 .I debug-flags
169 ¤Ï°Ê²¼¤Î¥ê¥¹¥È¤Î¤¦¤Á´õ˾¤¹¤ë°À­Ãͤò­¤·¤Æ·×»»¤¹¤ë¡£
170 .br
171 .\"O \  1\      \-\ Print out all disk I/O 
172 \       1\      \-\ Á´¤Æ¤Î¥Ç¥£¥¹¥¯ I/O ¤òɽ¼¨¤¹¤ë¡£
173 .br
174 .\"O \  2\      \-\ Debug block relocations
175 \       2\      \-\ ¥Ö¥í¥Ã¥¯¤ÎºÆ³ä¤êÅö¤Æ¤ò¥Ç¥Ð¥Ã¥°¤¹¤ë¡£
176 .br
177 .\"O \  8\      \-\ Debug inode relocations
178 \       8\      \-\ inode ¤ÎºÆ³ä¤êÅö¤Æ¤ò¥Ç¥Ð¥Ã¥°¤¹¤ë¡£
179 .br
180 .\"O \  16\     \-\ Debug moving the inode table
181 \       16\     \-\ inode ¥Æ¡¼¥Ö¥ë¤Î°ÜÆ°¤ò¥Ç¥Ð¥Ã¥°¤¹¤ë¡£
182 .TP
183 .B \-S \fIRAID-stride
184 .\"O The 
185 .\"O .B resize2fs
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.
189 .B resize2fs
190 ¥×¥í¥°¥é¥à¤Ï¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ºîÀ®¤µ¤ì¤¿¤È¤­¤Ë»ØÄꤵ¤ì¤¿
191 RAID stride ¤ò¥Ò¥å¡¼¥ê¥¹¥Æ¥£¥Ã¥¯ (heuristic) ¤Ë´ð¤Å¤¤¤Æ·èÄꤹ¤ë¡£
192 °ìÊý¡¢¤³¤Î¥ª¥×¥·¥ç¥ó¤Ë¤è¤ê¡¢¥æ¡¼¥¶¤Ï resize2fs ¤Ç»ÈÍѤµ¤ì¤ë
193 RAID stride ÀßÄê¤òÌÀ¼¨Åª¤Ë»ØÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
194 .TP
195 .B \-p
196 .\"O Prints out a percentage completion bars for each 
197 .\"O .B resize2fs
198 .\"O operation, so that the user can keep track of what
199 .\"O the program is doing.
200 .B resize2fs
201 ¤Î³ÆÁàºî¤Ë¤Ä¤¤¤Æ¡¢ºî¶È´°Î»Ê¬¤Î¥Ñ¡¼¥»¥ó¥È¤òɽ¤¹¥Ð¡¼¤òɽ¼¨¤¹¤ë¡£
202 ¤³¤ì¤Ë¤è¤ê¥æ¡¼¥¶¡¼¤Ï¥×¥í¥°¥é¥à¤ÎÆ°ºî¤òÄɤ¦¤³¤È¤¬¤Ç¤­¤ë¡£
203 .TP 
204 .B \-f
205 .\"O Forces resize2fs to proceed with the filesystem resize operation, overriding 
206 .\"O some safety checks which resize2fs normally enforces.
207 resize2fs ¤¬Ä̾ï¹Ô¤¦°ÂÁ´À­¥Á¥§¥Ã¥¯¤ò̵»ë¤µ¤»¤Æ¡¢
208 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥µ¥¤¥ºÊѹ¹Áàºî¤ò¶¯À©Åª¤Ë¿Ê¤á¤ë¡£
209 .TP
210 .B \-F
211 .\"O Flush the filesystem device's buffer caches before beginning.  Only
212 .\"O really useful for doing 
213 .\"O .B resize2fs
214 .\"O time trials.
215 ¥µ¥¤¥ºÊѹ¹¤ò»Ï¤á¤ëÁ°¤Ë¡¢
216 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥Ç¥Ð¥¤¥¹¤Î¥Ð¥Ã¥Õ¥¡¥­¥ã¥Ã¥·¥å¤ò¾Ãµî¤¹¤ë¡£
217 .B resize2fs
218 ¤Î¥¿¥¤¥à¥È¥é¥¤¥¢¥ë¤ò¤¹¤ë¾ì¹ç¤Ë¤Î¤ßÌòΩ¤Ä¡£
219 .\"O .SH AUTHOR
220 .SH Ãø¼Ô
221 .\"O .B resize2fs
222 .\"O was written by Theodore Ts'o <tytso@mit.edu>.
223 .B resize2fs
224 ¤Ï Theodore Ts'o <tytso@mit.edu> ¤¬ºîÀ®¤·¤¿¡£
225 .\"O .SH COPYRIGHT
226 .SH Ãøºî¸¢
227 Resize2fs is Copyright 1998 by Theodore Ts'o and PowerQuest, Inc.  All
228 rights reserved.  
229 .\"O As of April, 2000
230 .\"O .B Resize2fs
231 .\"O may be redistributed under the terms of the GPL.
232 2000 Ç¯ 4 ·î¤Î»þÅÀ¤Ç¤Ï¡¢
233 .B resize2fs
234 ¤Ï GPL ¤Î²¼¤ÇºÆÇÛÉÛ²Äǽ¤Ç¤¢¤ë¡£
235 .\"O .SH SEE ALSO
236 .SH ´ØÏ¢¹àÌÜ
237 .BR fdisk (8),
238 .BR e2fsck (8),
239 .BR mke2fs (8),
240 .BR lvm (8), 
241 .BR lvextend (8)