Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 807101 - parted does not offer resize option
Summary: parted does not offer resize option
Alias: None
Product: Fedora
Classification: Fedora
Component: parted
Version: 17
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Brian Lane
QA Contact: Fedora Extras Quality Assurance
: 833023 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2012-03-27 01:56 UTC by Pete Travis
Modified: 2019-09-16 17:27 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-08-01 18:15:57 UTC
Type: ---
me: fedora_requires_release_note+

Attachments (Terms of Use)

Description Pete Travis 2012-03-27 01:56:15 UTC
Description of problem:
parted does not present the option to or allow resizing of partitions, an expected feature.

Version-Release number of selected component (if applicable):

How reproducible:
use parted via interactive prompt, or specify arguments at runtime. 'resize' is not an accepted option.

Comment 1 Brian Lane 2012-03-27 13:49:30 UTC
parted no longer handles resizing of filesystems. That was removed in parted 2.4

You should use the filesystem-specific tools to handle resizes.

Comment 2 Jan ONDREJ 2012-04-02 06:08:26 UTC
The problem is, that man page still displays these commands removed in parted-2.4. Please update man page and remove them.

info parted:

  Note that after version 2.4, the following commands were removed:
check, cp, mkfs, mkpartfs, move, resize.

man parted:

              check partition
                     Do a simple check on partition.

              cp [source-device] source dest
                     Copy the source partition's filesystem  on  source-device
                     (or  the current device if no other device was specified)
                     to the dest partition on the current device.
              mkfs partition fs-type
                     Make a filesystem fs-type on partition.  fs-type  can  be
                     one  of "fat16", "fat32", "ext2", "linux-swap", or "reis‐
              mkpartfs part-type fs-type start end
                     Make a part-type partition with filesystem fs-type begin‐
                     ning  at  start  and  ending  at  end  (by   default   in
                     megabytes).   Using this command is discouraged.  Instead
                     use mkpart to create an empty  partition,  and  then  use
                     external tools like mke2fs(8) to create the filesystem.
              move partition start end
                     Move  partition  so  that  it begins at start and ends at
                     end.  Note: move never changes the minor number.
              resize partition start end
                     Resize  the  filesystem on partition so that it begins at
                     start and ends at end (by default in megabytes).

Comment 3 Benjamin Herrenschmidt 2012-05-11 03:01:58 UTC
Also how am I supposed to resize the partition itself so I can then resize the filesystem it contains ?

Comment 4 Brian Lane 2012-05-11 17:31:59 UTC
You can't used parted to resize a partition.

Comment 5 Benjamin Herrenschmidt 2012-05-11 21:34:38 UTC
Can you add it back then ? I mean seriously, are we back to the stone age of having to recreate the partition map with fdisk from scratch whenever we want to extend a partition in a disk image ?

Comment 6 Brian Lane 2012-06-18 20:49:07 UTC
*** Bug 833023 has been marked as a duplicate of this bug. ***

Comment 7 techtonik 2012-06-18 20:55:06 UTC
I guess the problem was with user complains, who don't get the difference between partition table and physical partition sizes. Stone age, indeed. To resize a partition you need to delete it with fdisk and then manually create with the same params.

Comment 8 Matthew Booth 2012-11-02 18:24:35 UTC
This is a major feature omission. I understand why parted removed the legacy resize feature, which misguidedly tried to resize both the filesystem and partition. However, parted is the only system tool for editing GPT, and it can no longer resize a partition. Filesystem resizing is best left to filesystem tools, but there also has to be a tool for editing partitions!

Comment 9 Fedora End Of Life 2013-07-04 06:40:36 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2013-08-01 18:16:02 UTC
Fedora 17 changed to end-of-life (EOL) status on 2013-07-30. Fedora 17 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 11 Peter Backes 2014-01-18 02:17:45 UTC
Please reopen, this is still a pressing issue in F20.

Why doesn't parted allow resizing a partition, without the filesystem? This is clearly a feature such a tool should offer. Especially resizing extended partitions. It's as easy as overwriting one attribute in the partition table.


This package comes with /usr/lib/libparted-fs-resize.so -- what is its purpose? Despite its existence, parted doesn't seem to accept the resize command.

Comment 12 Brian Lane 2014-01-20 17:12:19 UTC
The correct way to handle this is to file an issue upstream. Phillip Susi has some patches for Debian that implement this, so it may show up soon.

Comment 13 sean darcy 2014-07-14 14:40:13 UTC
Another voice for fixing this. On F20, it'd be _very_ helpful to be able to resize a partition. Like Peter Backes, I don't understand why we can't resize the partition, and then use a filesystem tool to resize the filesystem.

Comment 14 Brian Lane 2014-07-14 16:10:45 UTC
Upstream now has the resizepart command, I'll make sure that makes it into F21.

Comment 15 Pete Travis 2014-07-16 05:37:33 UTC
Thanks Brian (and to Petr & Phillip for the code) !  The manual process of removing and readding partitions is a bit intimidating, I'm sure a lot of users will appreciate this.

For those of you following along at home,
and upstream (somewhere in there :)

Comment 16 Brian Lane 2014-07-16 16:13:44 UTC
parted-3.1-29 for f21 and f22 now include the resizepart command. Don't forget to backup your data first!

Comment 17 Gerry Reno 2014-09-17 22:59:16 UTC
Can we please have a backport of parted-3.1-29 to f20?  Thanks.

Comment 18 Brian Lane 2014-09-17 23:14:34 UTC
Sorry, but I'm only adding bugfixes to the f20 version at this point. 3.1-29 has a large number of changes relative to 3.1-13 (I was trying to closely track upstream as a 3.2 release approached).

You'll either have to wait for f21, or build the newer version for f20 yourself.

Comment 19 Jan ONDREJ 2014-09-18 05:06:21 UTC
(In reply to Gerry Reno from comment #17)
> Can we please have a backport of parted-3.1-29 to f20?  Thanks.

You can try to install F21 version in F20 by running this command:

yum --releasever=21 --disablerepo='*' --enablerepo=fedora --enablerepo=updates update parted

Comment 20 BugMasta 2015-11-05 05:04:01 UTC
I am on Centos 6, i go to resize a partition, and i get warning about using filesystem specific tools, and then failure to detect filesystem in the lvm volume, then it refuses to even resize the partition itself.

I didnt even WANT parted to resize the filesystem. I will use pvextend, lvextend, and resize2fs to do that.

All i wanted parted to do was resize the partition, which IS PARTEDS GODDAMN JOB.

The people "developing" parted make me depair for humanity.

Comment 21 BugMasta 2015-11-05 05:04:30 UTC
Despair even.

Comment 22 Gin 2018-02-25 15:24:21 UTC
Time is passing, life is changing,... things are changing (but not for parted utility)... And pills of sanity still not invented.

Comment 23 BrianDKing 2019-09-16 17:27:35 UTC
parted version 3.2 which came out in 2014 (5 years ago) seems to work fine, but it's still not in RHEL6 or RHEL7, which are still using a version of parted from 2012 (7 years ago). At least it's in RHEL8...

Note You need to log in before you can comment on or make changes to this bug.