How to check whether a partition is bootable

Hi,

  Is there any API to check whether a partition is bootable or not. Using fdisk commnad, it lists all the partitions and indicates  '*' to denote if a partition is bootable. Is there any API to get this status.

fdisk command lists some of the partition details like the OS name ,type, cylinder number , size etc. Is there any structure or API to fetch all these details.

Regards,
hello

I don’t think there is an API for this, but it is a small matter to read the boot sector and look at the fields, see:

en.wikipedia.org/wiki/Master_boot_record