2 * Structure of a fdisk driver descriptor (block 0)
3 * and partition table (blocks 1..n).
5 * Copyright 2000 IBM / Peter Bergner / David Engebretsen
8 #define ACTIVE_FLAG 0x80
11 #define WIN98_EXTENDED 0x0f
12 #define LINUX_PARTITION 0x81
13 #define LINUX_SWAP 0x82
14 #define LINUX_NATIVE 0x83
15 #define LINUX_EXTENDED 0x85
17 struct fdisk_partition {
18 unsigned char boot_ind; /* 0x80 - active */
19 unsigned char head; /* starting head */
20 unsigned char sector; /* starting sector */
21 unsigned char cyl; /* starting cylinder */
22 unsigned char sys_ind; /* What partition type */
23 unsigned char end_head; /* end head */
24 unsigned char end_sector; /* end sector */
25 unsigned char end_cyl; /* end cylinder */
26 unsigned char start4[4]; /* starting sector counting from 0 */
27 unsigned char size4[4]; /* nr of sectors in partition */