The /dev/sda1 file system mounted on / now displays 97 GB. In the following example, the OS disk has been resized from the portal to 100 GB. Verify that the OS disk now displays an increased file system size.Restart the VM, and then sign in to the VM as a root user.
To increase the size of the OS disk in Ubuntu 16. The following instructions apply to Linux-endorsed distributions.īefore you proceed, make a backup copy of your VM, or take a snapshot of your OS disk. If your virtual machine (VM) has a GPT partition on your OS disk, increase the size of the OS disk. Number Start End Size File system Name Flagsġ 1049kB 525MB 524MB fat16 EFI System Partition boot In the following output, Partition Table shows a value of gpt. Number Start End Size Type File system Flags Sector size (logical/physical): 512B/512B
In the following output, Partition Table shows a value of msdos. Use the parted command to identify if the disk partition has been created with either a master boot record (MBR) partition or a GPT partition. Identify whether the OS disk has an MBR or GPT partition This article describes how to increase the size of an OS disk that has a GPT partition in Linux. This article applies only to OS disks that have a GUID Partition Table (GPT) partition.