This is the disk schema I have which is coming from lsblk and lvs. What I want to do is resize sda5 which is of type Extended to the size of the block device /dev/sda which is 100GB
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 100G 0 disk |-sda1 8:1 0 243M 0 part /boot |-sda2 8:2 0 1K 0 part `-sda5 8:5 0 49.8G 0 part |-osiris-root 254:0 0 45.8G 0 lvm / `-osiris-swap_1 254:1 0 4G 0 lvm [SWAP] sr0 11:0 1 1024M 0 rom LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert root osiris-wi-ao---- 45.76g swap_1 osiris-wi-ao---- 4.00g Is there any way to do it using parted, fdisk or any other tool? Thanks in advance.
fdisk -l /dev/sda* outputs
Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 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: 0x00082e2b Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 499711 497664 243M 83 Linux /dev/sda2 501758 104855551 104353794 49.8G 5 Extended /dev/sda5 501760 104855551 104353792 49.8G 8e Linux LVM Disk /dev/sda1: 243 MiB, 254803968 bytes, 497664 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 Disk /dev/sda2: 1 KiB, 1024 bytes, 2 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: 0x00000000 Device Boot Start End Sectors Size Id Type /dev/sda2p1 2 104353793 104353792 49.8G 8e Linux LVM Disk /dev/sda5: 49.8 GiB, 53429141504 bytes, 104353792 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