GNU bug report logs -
#79171
-s is ignored when using resizepart for shrinking a partition
Previous Next
To reply to this bug, email your comments to 79171 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-parted <at> gnu.org:
bug#79171; Package
parted.
(Mon, 04 Aug 2025 20:53:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Casey Fitzpatrick <kcghost <at> gmail.com>:
New bug report received and forwarded. Copy sent to
bug-parted <at> gnu.org.
(Mon, 04 Aug 2025 20:53:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
When using resizepart with "-s" a warning prompt is still printed when
shrinking a partition. Then the command fails without actually prompting
for Yes/No.
Seen using parted version 3.6:
```
$ sudo parted -s /dev/loop0 unit B resizepart 1 420478975
Warning: Shrinking a partition can cause data loss, are you sure you want
to continue?
$ echo $?
1
```
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-parted <at> gnu.org:
bug#79171; Package
parted.
(Mon, 04 Aug 2025 21:59:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 79171 <at> debbugs.gnu.org (full text, mbox):
On Mon, Aug 04, 2025 at 04:19:02PM -0400, Casey Fitzpatrick wrote:
> When using resizepart with "-s" a warning prompt is still printed when
> shrinking a partition. Then the command fails without actually prompting
> for Yes/No.
>
> Seen using parted version 3.6:
> ```
> $ sudo parted -s /dev/loop0 unit B resizepart 1 420478975
> Warning: Shrinking a partition can cause data loss, are you sure you want
> to continue?
> $ echo $?
> 1
> ```
parted defaults to not doing things that could lose data, so shrinking
is only supported in interactive mode. This comes up from time to time.
eg.
https://lists.gnu.org/archive/html/bug-parted/2024-06/msg00000.html
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
Information forwarded
to
bug-parted <at> gnu.org:
bug#79171; Package
parted.
(Mon, 04 Aug 2025 22:54:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 79171 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thanks! I missed that somehow searching around. I'm glad there is a
workaround at least.
On Mon, Aug 4, 2025, 5:57 PM Brian C. Lane <bcl <at> redhat.com> wrote:
> On Mon, Aug 04, 2025 at 04:19:02PM -0400, Casey Fitzpatrick wrote:
> > When using resizepart with "-s" a warning prompt is still printed when
> > shrinking a partition. Then the command fails without actually prompting
> > for Yes/No.
> >
> > Seen using parted version 3.6:
> > ```
> > $ sudo parted -s /dev/loop0 unit B resizepart 1 420478975
> > Warning: Shrinking a partition can cause data loss, are you sure you want
> > to continue?
> > $ echo $?
> > 1
> > ```
>
> parted defaults to not doing things that could lose data, so shrinking
> is only supported in interactive mode. This comes up from time to time.
> eg.
>
> https://lists.gnu.org/archive/html/bug-parted/2024-06/msg00000.html
>
> Brian
>
> --
> Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
>
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-parted <at> gnu.org:
bug#79171; Package
parted.
(Fri, 24 Oct 2025 21:14:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 79171 <at> debbugs.gnu.org (full text, mbox):
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
Reply sent
to
"Brian C. Lane" <bcl <at> redhat.com>:
You have taken responsibility.
(Fri, 24 Oct 2025 21:14:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Casey Fitzpatrick <kcghost <at> gmail.com>:
bug acknowledged by developer.
(Fri, 24 Oct 2025 21:14:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.