I have 3 partitions (linux, extended, swap) I need to extend my live partition (linux) to the space available after these partition.
#fdisk /dev/vda Welcome to fdisk (util-linux 2.29.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/vda: 164 GiB, 176093659136 bytes, 343932928 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xdbf0e7ee Device Boot Start End Sectors Size Id Type /dev/vda1 * 2048 117575679 117573632 56.1G 83 Linux /dev/vda2 117575680 134217727 16642048 8G 5 Extended /dev/vda5 117577728 134217727 16640000 8G 82 Linux swap / Solaris
This virtual disk is in a proxmox machine.
I read several tutorials that say to do
parted /dev/vda with
resizepart 1 100% but that give me the error
parted: invalid token: 100%. Some other tutorials say to delete the partition and recreate but as I have 2 partitions after the one I need to resize I don't know how to do, I must not lost my data.