Live resize of a GPT partition on Linux

Posted by cyberz on Super User See other posts from Super User or by cyberz
Published on 2013-10-15T17:40:07Z Indexed on 2013/10/27 9:59 UTC
Read the original article Hit count: 306

Filed under:
|
|

On Linux I used to resize MBR partitions using fdisk, even on live filesystems, and then issue a resize2fs/pvresize/... (depending on fs type) to get the new space allocated.

Lately I've been using Xen and GPT partitions, and I've noticed that unfortunately parted doesn't seem to allow on-the-fly resizing of a mounted partition, in fact it will complain:

Error: Partition XXX is being used. You must unmount it before you modify it with Parted.

I've tried both the resize command and even rm + mkpart combination, but they will both complain about the partition being mounted.

How can I do that?

© Super User or respective owner

Related posts about linux

Related posts about partitioning