

Use lvremove to remove the LVM logical volume of the swap: lvremove ubuntu-vg/swap_1Įxtend the root partition's logical volume using lvextend: lvextend ubuntu-vg/root /dev/sda5 The live environment automatically activates any swap partitions it finds: sudo swapoff -a To delete the swap and merge back the space to root:ĭisable swap. Why the swap partition did not get formatted correctly is a mystery. Try using the lsblk command to see how they're related.) Created your root and swap partitions within the LVM volume.


Created an LVM volume within the above extended partition.Created an extended partition for the rest of the partitions.Created a 250 MB /boot primary partition.You can unmount it and run: sudo mkswap /dev/ubuntu-vg/swap_1 Presumably the 4GB swap partition you made was not formatted correctly. GParted cannot see beyond the LVM volume, it can only see that the LVM volume is present.ġ15 GiB = 115*1024*1024*1024 bytes ~ 123480000000 = 123.48*1000*1000*100 = 123.48 GB (close enough to your SSD size) - that's an artifact of using SI decimal prefixes in some places and binary prefixes in others. Could you please tell me the commands to delete swap_1 and merge it with root (I would like to avoid to mess up all the system When I boot, the 4gb are automatically mounted in media and I can browse it like a classical usb drive.įollowing the suggestion of I have restored the swap and now I have lvm pvs: /dev/sda5 ubuntu-vg lvm2 a- 115.24g 40.00m What are other devices? And why gparted and disks show me different things. 4GB Block Device /dev/ubuntu-vg/swap_1.120GB Block Device /dev/ubuntu-vg/root.If I open disks under disk drives I have my 124 hdd which is partitioned as:īut I have also under Other Devices 2 disks: Why do I have 2 partition sda2 and sda5 and not only 1? And why the size is 115 and not 120? Moreover why I cannot see the 4 gb of swap which I have formatted? /dev/sda5 115.24 GiB lvm2 pv ubuntu-vg.In gparted I see only one device ( /dev/sda) of size 115.48GB subdivided like this:

I have successfully removed the swap and format to ext4 but I am not able to merge it and I don't understand what is happening. Some times later, I removed the swap partition in order to merge it with the big one since I do not need it. When I installed Ubuntu 14.04 I partitioned as:
