How to determine the boot partition?
I found that in the parted utility, you can look at the partition table and use the boot flag to determine if it is bootable.
Number Start End Size File system Name Flags 1 1049kB 1000MB 999MB fat32 boot, esp 2 1000MB 240GB 239GB ext4 The problem is that not on all systems this flag is entered into the section (it is possible that only the old ones are not entered).
Minor Start End Filesystem Flags 1 0,000 101,944 ext3 Also, the old versions of fdisk displayed the boot column, marking the boot partition with an asterisk:
Device Boot Start End Block Id System /dev/hda1 * 1 13 104391 83 Linux /dev/hda2 14 267 2040255 82 Swap Linux However, in modern versions of this column is not.
Device Start End Sectors Size Type /dev/sda1 2048 1953791 1951744 953M EFI System Is there any universal and not very cumbersome way?