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):
use parted via interactive prompt, or specify arguments at runtime. 'resize' is not an accepted option.
parted no longer handles resizing of filesystems. That was removed in parted 2.4
You should use the filesystem-specific tools to handle resizes.
The problem is, that man page still displays these commands removed in parted-2.4. Please update man page and remove them.
Note that after version 2.4, the following commands were removed:
check, cp, mkfs, mkpartfs, move, resize.
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).
Also how am I supposed to resize the partition itself so I can then resize the filesystem it contains ?
You can't used parted to resize a partition.
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 ?
*** Bug 833023 has been marked as a duplicate of this bug. ***
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.
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!
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.
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.
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.
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.
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.
Upstream now has the resizepart command, I'll make sure that makes it into F21.
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 :)
parted-3.1-29 for f21 and f22 now include the resizepart command. Don't forget to backup your data first!
Can we please have a backport of parted-3.1-29 to f20? Thanks.
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.
(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
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.
Time is passing, life is changing,... things are changing (but not for parted utility)... And pills of sanity still not invented.
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...