Parted: resize partition without resizing filesystem

Can parted resize a partition without resizing the underlying filesystem?

Currently, it prints a warning:

WARNING: you are attempting to use parted to operate on (resize) a file system. parted's file system manipulation code is not as robust as what you'll find in dedicated, file-system-specific packages like e2fsprogs. We recommend you use parted only to manipulate partition tables, whenever possible. Support for performing most operations on most types of file systems will be removed in an upcoming release.


Resizing a partition is a common task particularly when using hardware RAID, virtual machines etc where disk sized can (and do) change size, even while the OS is running.

Unfortunately, parted will not resize a partition (and never really was able to). To achieve the same thing you must delete the original partition an recreate it with a new end address. You must keep the start address the same or you may corrupt all your data. You must also set any flags back to their original values to ensure that the partition is used correctly at the next boot.

Before starting, make sure you have a backup of you system!

In parted, switch the display unit to sectors with u s and print out you current values with p

It is worth writing these values down in case you break something and need to restore your original partitions.

Then delete the existing partition rm

Then create a new partition with mkpart

Finally set the flags with toggle

After quiting parted you may need to run partprobe to make the kernel update it's view of the partitions eg: cat /proc/partitions

When using LVM2, you can make the partition bigger and then run pvresize /dev/... and your new capacity will become available to the volume group. You can then proceed with lvresize and resize2fs or whatever is suited to your OS.