Normally, to burn an ISO to a disk, let's say an ISO for installing Ubuntu, we dd to the /dev/sda
, not to the partition like /dev/sda1
, so in this case, where the target file is /dev/sda
which is presumably the entire disk, does it make any sense to partition first? Wouldn't the iso contain the partitions?
Yes, the ISO image contains its own partition table, and thus it should be copied directly to the whole disk device, not to any existing disk partition.
(Note that the partition type of 0/Empty is ignored by Linux.)
Modern ISO installation images are built as hybrid ISO images, which can be booted with legacy/CSM boot from either hard disk (your USB stick is treated as a removable hard drive at boot time) or optical media (CD, DVD, BR) which uses a completely different legacy boot method than hard drive booting. Such ISO images can be burned to a DVD or copied to fixed or removable media such as USB drives. It could even be copied the same way to an internal hard drive and still boot.
These images are also built for UEFI boot, but this works the same regardless of media type and is not related in any way to the image being an ISO. The image must be written directly to the disk and the partition table visible to the BIOS at boot time so that it can find the EFI partition, so again, you have to dd it to the whole disk device.