2 * fdisk-part.h - Structure of fdisk partition table
4 * Copyright (C) 2000 Peter Bergner
5 * 2000 David Engebretsen
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 #define ACTIVE_FLAG 0x80
25 #define WIN98_EXTENDED 0x0f
26 #define LINUX_PARTITION 0x81
27 #define LINUX_SWAP 0x82
28 #define LINUX_NATIVE 0x83
29 #define LINUX_EXTENDED 0x85
31 struct fdisk_partition {
32 unsigned char boot_ind; /* 0x80 - active */
33 unsigned char head; /* starting head */
34 unsigned char sector; /* starting sector */
35 unsigned char cyl; /* starting cylinder */
36 unsigned char sys_ind; /* What partition type */
37 unsigned char end_head; /* end head */
38 unsigned char end_sector; /* end sector */
39 unsigned char end_cyl; /* end cylinder */
40 unsigned char start4[4]; /* starting sector counting from 0 */
41 unsigned char size4[4]; /* nr of sectors in partition */