This procedure describes how to expand a root partition using the Offline Resize method. You must unmount the filesystem and reboot the VM during this procedure.
If you want to resize a data partition or an LVM volume, see Expanding a Linux Data Partition or Expanding an LVM Data or Root Volume.
Extend the root partition using the fdisk
or partx
command.
Warning: | This is very critical operation. Make sure you do not change the starting offset of the partition while you are manipulating the partition table. |
# fdisk /dev/sda