Index: trunk/fdisk.tproj/part.c =================================================================== --- trunk/fdisk.tproj/part.c (revision 119) +++ trunk/fdisk.tproj/part.c (revision 120) @@ -20,9 +20,12 @@ * * @APPLE_LICENSE_HEADER_END@ */ - - /* + * 2008-05-24: + * Tamas Kosarszky: changed caption for partition type 0x07 + * and added caption for type 0xEE. + */ +/* * Copyright (c) 1997 Tobias Weingartner * All rights reserved. * @@ -78,7 +81,7 @@ { 0x04, "DOS FAT-16 ", "Primary DOS with 16 bit FAT"}, { 0x05, "Extended DOS", "Extended DOS"}, { 0x06, "DOS > 32MB ", "Primary 'big' DOS (> 32MB)"}, - { 0x07, "HPFS/QNX/AUX", "OS/2 HPFS, QNX-2 or Advanced UNIX"}, + { 0x07, "NTFS ", "Windows NT NTFS"}, { 0x08, "AIX fs ", "AIX filesystem"}, { 0x09, "AIX/Coherent", "AIX boot partition or Coherent"}, { 0x0A, "OS/2 Bootmgr", "OS/2 Boot Manager or OPUS"}, @@ -157,6 +160,7 @@ { 0xE3, "SpeedStor ", "DOS R/O or SpeedStor or Storage Dimensions"}, { 0xE4, "SpeedStor ", "SpeedStor 16-bit FAT extended partition < 1024 cyl."}, { 0xEB, "BeOS/i386 ", "BeOS for Intel"}, + { 0xEE, "GPT ", "GPT protective partition"}, { 0xF1, "SpeedStor ", "SpeedStor or Storage Dimensions"}, { 0xF2, "DOS 3.3+ Sec", "DOS 3.3+ Secondary"}, { 0xF4, "SpeedStor ", "SpeedStor >1024 cyl. or LANstep or IBM PS/2 IML"}, Index: trunk/fdisk.tproj/mbr.h =================================================================== --- trunk/fdisk.tproj/mbr.h (revision 119) +++ trunk/fdisk.tproj/mbr.h (revision 120) @@ -20,8 +20,15 @@ * * @APPLE_LICENSE_HEADER_END@ */ - /* + * 2008-05-24: + * Tamas Kosarszky: changed MBR_CODE_SIZE to 0x1B8 to make fdisk + * compatible with Vista and GPT specifications. + * + * Credits goes to Dense for the idea of this modification and + * Kabyl for findig this piece of source. + */ +/* * Copyright (c) 1997 Tobias Weingartner * All rights reserved. * @@ -65,7 +72,7 @@ #endif /* Various constants */ -#define MBR_CODE_SIZE 0x1BE +#define MBR_CODE_SIZE 0x1B8 #define MBR_PART_SIZE 0x10 #define MBR_PART_OFF 0x1BE #define MBR_SIG_OFF 0x1FE Index: trunk/fdisk.tproj/Makefile =================================================================== --- trunk/fdisk.tproj/Makefile (revision 119) +++ trunk/fdisk.tproj/Makefile (revision 120) @@ -1,4 +1,4 @@ -Project = fdisk +Project = fdisk440 ProductType = tool Install_Dir = /usr/sbin