Hi,
I'm venturing into the fascinating world of Ubuntu and would like to install Ubuntu Server 20.04 LTS as a virtual machine in Hyper-V.
Microsoft recommends that, when creating the file system on which Ubuntu will be installed, the number of block groups that will be packed together to create a larger virtual block group (or "flex_bg group") in an ext4 filesystem should be set to 4096 (mkfs.ext4 -G 4096 /dev/sdX1)
When installing the Ubuntu Server VM, I didn't see an option to set this parameter.
After having installed Ubuntu Server with the default options, I have the following partitions:
Code:
Model: Msft Virtual Disk (scsi)
Disk /dev/sda: 42.9GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 boot, esp
2 538MB 42.9GB 42.4GB ext4
When running
Code:
dumpe2fs -h /dev/sda2
I see that the number of block groups for sda2 is 16:
Code:
Flex block group size: 16
Is there a way to set this to 4096 during install?
If not, could I repartition sda2 with the correct number of block groups (with which tool (e.g. mounted in a (virtual) DVD drive?)) and then reinstall selecting manually the sda1 and sda2 partitions?
Bookmarks