/* Description of entry in partition table. */ struct part_entry { unsigned char bootind; /* boot indicator 0/ACTIVE_FLAG */ unsigned char start_head; /* head value for first sector */ unsigned char start_sec; /* sector value + cyl bits for first sector */ unsigned char start_cyl; /* track value for first sector */ unsigned char sysind; /* system indicator - see systype() */ unsigned char last_head; /* head value for last sector */ unsigned char last_sec; /* sector value + cyl bits for last sector */ unsigned char last_cyl; /* track value for last sector */ unsigned long lowsec; /* logical first sector */ unsigned long size; /* size of partion in sectors */ }; #define ACTIVE_FLAG 0x80 /* value for active in bootind field (hd0) */ #define NR_PARTITIONS 4 /* number of entries in partition table */ #define PART_TABLE_OFF 0x1BE /* offset of partition table in boot sector */ /* Partition types. */ #define MINIX_PART 0x81 #define NO_PART 0x00 #define OLD_MINIX_PART 0x80 /* created before 1.4b, driver must round */