![Linux View Partition Table Of Vmdk Linux View Partition Table Of Vmdk](http://blogs.vmware.com/apps/files/2017/12/8.png)
Extending partitions on Linux VMware virtual machines. Here are the steps I followed to extend my Linux partitions. Type p to print the partition table and press Enter. Normally partitioning tools require that partitions are not mounted. You should use parted or gparted directly on the image file using: parted /path/to/disk.img Sample output: $ parted VirtualBox VMs/centos/VMDK-test-flat.vmdk WARNING: You are not superuser. Watch out for permissions.
Reason: fdisk -l now shows a Sectors column instead Blocks. Does the same affirmation apply? (Discuss in )If you want to create one the exact size of your root partition, run fdisk -l and use the value from the Blocks column for the count= parameter. Note that you will transfer your entire root tree, so that includes the /boot and /home folders. If you have any separate partitions for those, you need to take them into account when creating the container.Now load the necessary module and mount it as a loopback device, on /dev/loop5 (for example):# modprobe loop# losetup /dev/loop5 /media/Backup/backup.imgNext, partition the /dev/loop5 device by running your favourite.
Create a partition table on it (e.g. Msdos), choose the and create the partitions.
Then create a on the partitions, which will appear as /dev/loop5p1, /dev/loop5p2, etc.Transfer the systemMount the loopback device and the system.