


When following this instruction, there is a risk of data loss, so it is recommended to make a backup of the virtual machine first.

Note: All commands must be run as root or superuser (sudo).
Backup fedora workstation to linux server how to#
This manual is suitable for most Linux distributions, gives detailed information on how to correctly expand disk space, and takes into account the features of the commands of various distributions. The extension will be performed on the example of the CentOS distribution. This example will describe how to expand an existing partition on a disk using 15Gb of free disk space from the unallocated area of the same disk. Resize2fs /dev/mapper/ubuntu-root - increase the size of the EXT4 file system on the logical volume /dev/mapper/ubuntu-root (for Ubuntu, Debian). Xfs_growfs /dev/mapper/centos-root - increase the size of the XFS file system on the /dev/mapper/centos-root logical volume (for Fedora, CentOS, RHEL, Oracle Linux, Alma Linux, Rocky Linux) Lvextend -r -l +100%FREE /dev/centos/root - extend logical volume /dev/centos/root from centos volume group ĭf -hT - list partitions and file systems Pvresize /dev/sda2 - extend existing physical volume /dev/sda2 Growpart /dev/sda 2 - extend /dev/sda2 partition Expanding the Partition Using the growpart Utilityįdisk -l - view disk partitions in detail ĭnf -y install cloud-utils-growpart - install growpart utility for Fedora, CentOS, RHEL, Oracle Linux, Alma Linux, Rocky Linux Īpt -y install cloud-guest-utils - install growpart utility for Ubuntu, Debian
