summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Susi <psusi@ubuntu.com>2014-05-25 14:43:39 -0400
committerPhillip Susi <psusi@ubuntu.com>2014-06-15 15:16:33 -0400
commit5c793853fe5cb0718d895c3394fb909c73c6fa1e (patch)
tree2d82d2ef4fbaae23853f90d85748ca30470d9c20
parent56bfbe21ecca0cb6466c78baed192dc2e5401676 (diff)
downloadparted-5c793853fe5cb0718d895c3394fb909c73c6fa1e.tar.gz
Document resizepart command
-rw-r--r--doc/C/parted.84
-rw-r--r--doc/parted.texi16
2 files changed, 20 insertions, 0 deletions
diff --git a/doc/C/parted.8 b/doc/C/parted.8
index f8e6a3d..689011c 100644
--- a/doc/C/parted.8
+++ b/doc/C/parted.8
@@ -93,6 +93,10 @@ Rescue a lost partition that was located somewhere between \fIstart\fP and
\fIend\fP. If a partition is found, \fBparted\fP will ask if you want to
create an entry for it in the partition table.
.TP
+.B resizepart \fIpartition\fP \fIend\fP
+Change the \fIend\fP position of \fIpartition\fP. Note that this does not
+modify any filesystem present in the partition.
+.TP
.B rm \fIpartition\fP
Delete \fIpartition\fP.
.TP
diff --git a/doc/parted.texi b/doc/parted.texi
index 2b6f7f8..07aa702 100644
--- a/doc/parted.texi
+++ b/doc/parted.texi
@@ -423,6 +423,7 @@ GNU Parted provides the following commands:
* print::
* quit::
* rescue::
+* resizepart::
* rm::
* select::
* set::
@@ -744,6 +745,21 @@ It's back! :)
@end deffn
+@node resizepart
+@subsection resizepart
+@cindex resizepart, command description
+@cindex command description, resizepart
+
+@deffn Command resizepart @var{number} @var{end}
+
+Moves the @var{end} position of partition @var{number}. Note that this
+does not modify any filesystem present in the partition. If you wish to
+do this, you will need to use external tools, such as @command{resize2fs}.
+
+When growing a partition you will want to grow the filesystem afterwards,
+but when shrinking, you need to shrink the filesystem before the partition.
+@end deffn
+
@node rm
@subsection rm
@cindex rm, command description