I have a 1023G TB LVM partition on /dev/sda5, a partition that is exactly the same on /dev/sda2 with an ID of 5 and labeled an "extended partition". /dev/sda is 1.8 TB. Finally, I have a /dev/mapper/files--vg-root which is 1022.5 GiB and a LVM swap wich is 1GiB

So how might I go about resizing either of there partitions as I don't know which one is the actual LVM partition.


  • /dev/sda2 is an extended partition; it does not contain data directly, but serves as a container for logical partitions. Inside the extended partition /dev/sda2 lives /dev/sda5, which is a logical partition, formatted as an LVM physical disk. On this physical disk you have an LVM volume group containing two logical volumes, one for the root filesystem and the other used as a swap area. You did not say what you want to do...
    – AlexP
    Dec 25, 2016 at 22:54

1 Answer 1


I would suggest using GUI to resize partition. Try KDE Partition Manager 3.0 which can see LVM partitions.

You can get it on Neon Live CD (User edition is enought now)

Then open terminal and install partitionmanager:

apt update; apt install partitionmanager

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .