Fixing partition size mismatch error
Many times, after cloning a partition using dd, we get warnings and error messages about a size mismatch between the physical partition size and the one contained in the partition table. To alleviate the issue, apart from using gparted, parted, partx and whatnot, we can use a terminal, to

