From 3e01d4a24d3163acc70f6b79c30d1093a9cb5cf5 Mon Sep 17 00:00:00 2001 From: Vincent McIntyre Date: Fri, 1 Jan 2021 13:37:52 +1100 Subject: [PATCH 1/2] Manual pages: document the 'resize' command Reported in https://bugs.debian.org/906918, https://bugs.debian.org/915971. Signed-off-by: Vincent McIntyre --- disk-utils/cfdisk.8 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/disk-utils/cfdisk.8 b/disk-utils/cfdisk.8 index a61aad71f..4e3dfca1a 100644 --- a/disk-utils/cfdisk.8 +++ b/disk-utils/cfdisk.8 @@ -115,6 +115,15 @@ MiB (=1024*1024), and so on for GiB, TiB, PiB, EiB, ZiB and YiB Quit the program. This will exit the program without writing any data to the disk. .TP +.B r +Reduce or enlarge the current partition. +.B cfdisk +then prompts you for the new size of the partition. +The default size is the current size. +A partition marked as free space or marked as unusable cannot be resized. + +Note that reducing the size of a partition might destroy data on that partition. +.TP .B s Sort the partitions in ascending start-sector order. When deleting and adding partitions, it is likely that the numbering of the partitions will From c186e148ea1cd4dd850f108ae1e60134a351b0e4 Mon Sep 17 00:00:00 2001 From: Vincent McIntyre Date: Sat, 2 Jan 2021 11:02:35 +1100 Subject: [PATCH 2/2] Show the 'r' option in the help menu --- disk-utils/cfdisk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index d96b6e9e0..11f8b9a95 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -2209,6 +2209,7 @@ static int ui_help(void) N_(" h Print this screen"), N_(" n Create new partition from free space"), N_(" q Quit program without writing partition table"), + N_(" r Reduce or enlarge the current partition"), N_(" s Fix partitions order (only when in disarray)"), N_(" t Change the partition type"), N_(" u Dump disk layout to sfdisk compatible script file"),