[parted-devel] [PATCH 7/7] Document resizepart command

Phillip Susi psusi at ubuntu.com
Sun May 25 21:11:33 UTC 2014


---
 doc/C/parted.8  |  4 ++++
 doc/parted.texi | 16 ++++++++++++++++
 2 files changed, 20 insertions(+)

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 97ce203..205f9f2 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
 
+ at node resizepart
+ at subsection resizepart
+ at cindex resizepart, command description
+ at cindex command description, resizepart
+
+ at 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.
+ at end deffn
+
 @node rm
 @subsection rm
 @cindex rm, command description
-- 
1.9.1




More information about the parted-devel mailing list