Creating a Boot Partition on Extended Root Device (MBR)
After resizing the VM with growfs
disabled, create and format the new partition.
Important: You must extend the disk, see Creating a Boot Partition in Microsoft Azure.
The following example creates a MBR
partition.
Use "fdisk" to create new partition.
# fdisk /dev/sda Command (m for help): p
Disk /dev/sda: 17.2 GB, 17179869184 bytes, 33554432 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x391eacf4
Device Boot Start End Blocks Id System /dev/sda1 2048 20973567 10485760 83 Linux
Command (m for help): n Partition type: p primary (1 primary, 0 extended, 3 free) e extended Select (default p): p Partition number (2-4, default 2): 2 First sector (20973568-33554431, default 20973568): Using default value 20973568 Last sector, +sectors or +size{K,M,G} (20973568-33554431, default 33554431): +1G Partition 2 of type Linux and of size 1 GiB is set
Command (m for help): w The partition table has been altered!
Calling ioctl() to re-read partition table. Syncing disks.