Fix bug where fdisk failed to create partitions.