So I've just cloned a 1TB disk to a new 2TB disk using GNU ddresuce<div><br></div><div>My partition table looks like this:</div><div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">Model: ATA WDC WD20EARS-00M (scsi)</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Disk /dev/sda: 2000GB</font></div><div><font class="Apple-style-span" face="'courier new', monospace">Sector size (logical/physical): 512B/512B</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Partition Table: msdos</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">Number  Start   End     Size    Type      File system  Flags</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> 1      32.3kB  296MB   296MB   primary   ext4         boot</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> 2      296MB   1000GB  1000GB  extended</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> 5      296MB   1000GB  1000GB  logical                lvm</font></div><div><br></div><div>I'm obviously wanting to expand the LVM partition to fill the remaining 1TB of space.</div>
<div><br></div><div>Am I able to simply use parted to resize the partition before doing a pvresize etc?</div><div><br></div><div>Or is it risky to resize the underlying LVM partition?</div><div><br></div><div><br></div>
</div>