Monday, November 2, 2015

partitioning - Unable to Partition Drive - Ubuntu 18.04


I am unable to repartition my single Linux drive. For clarity, I have done the following:


1a) Restarted my computer on a USB/CD boot of Linux


1b) Used Gparted to unmount the drive I want to partition (Ignore the lock in the picture below).


1c) Attempted to shrink the Linux partition and create a new partition (see Resizing)


None of the above has worked...it only allows me to create 32 mbs of "unused" disk space. I am not currently using the full 119.24 GB of my drive for Linux.


Gparted - Main Screen


Gparted - Resizing


Answer



From the picture it appears that ubuntu is installed in a Logical Volume Management Physical Volume (LVM2 PV), and not simply in a partition formatted with a file system. See Logical Volume Manager (Linux) for a description of LVM. Currently there is no unallocated space within the LVM2 PV and hence the LVM2 PV cannot be shrunk. You might have unused space within the Logical Volumes within the LVM2 PV.


When you installed Ubuntu, the installation have used the whole drive as 1 LVM partition, and that's why you can't create another partition, since there is no space left.


This might help


https://askubuntu.com/questions/124465/how-do-i-shrink-the-root-logical-volume-lv-on-lvm/124480#124480


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...