|
| 1 | +package mbr |
| 2 | + |
| 3 | +import ( |
| 4 | + "github.com/wader/fq/pkg/scalar" |
| 5 | +) |
| 6 | + |
| 7 | +// Source: https://thestarman.pcministry.com/asm/mbr/PartTypes.htm |
| 8 | +var partitionTypes scalar.UToDescription = scalar.UToDescription{ |
| 9 | + 0x00: "empty", |
| 10 | + 0x01: "12-bit FAT", |
| 11 | + 0x02: "XENIX root", |
| 12 | + 0x03: "XENIX /usr (obsolete)", |
| 13 | + 0x04: "16-bit FAT", |
| 14 | + 0x05: "Extended Partition", |
| 15 | + 0x06: "16-bit FAT, partition", |
| 16 | + 0x07: "Installable file systems: HPFS or NTFS. Also, QNX and Advanced Unix.", |
| 17 | + 0x08: "AIX bootable partition", |
| 18 | + 0x09: "AIX data partition", |
| 19 | + 0x0A: "Coherent swap partition, OPUS or OS/2 Boot Manager.", |
| 20 | + 0x0B: "32-bit FAT", |
| 21 | + 0x0C: "32-bit FAT, using INT 13 Extensions.", |
| 22 | + 0x0E: "16-bit FAT >= 32 MB, using INT 13 Extensions.", |
| 23 | + 0x0F: "Extended Partition, using INT 13 Extensions", |
| 24 | + 0x10: "OPUS", |
| 25 | + 0x11: "Hidden 12-bit FAT.", |
| 26 | + 0x12: "Compaq diagnostics.", |
| 27 | + 0x14: "Hidden 16-bit FAT", |
| 28 | + 0x16: "Hidden 16-bit FAT, partition >= 32 MB", |
| 29 | + 0x17: "Hidden IFS (HPFS, NTFS).", |
| 30 | + 0x18: "AST Windows swap file", |
| 31 | + 0x19: "Willowtech Photon coS", |
| 32 | + 0x1B: "Hidden 32-bit FAT", |
| 33 | + 0x1C: "Hidden 32-bit FAT, Ext INT 13", |
| 34 | + 0x1E: "Hidden 16-bit FAT >32 MB, Ext. INT 13 (PowerQuest specific)", |
| 35 | + 0x20: "Willowsoft Overture File System (OFS1)", |
| 36 | + 0x21: "reserved (HP Volume Expansion, SpeedStor variant)", |
| 37 | + 0x22: "Oxygen Extended", |
| 38 | + 0x23: "reserved (HP Volume Expansion, SpeedStor variant?)", |
| 39 | + 0x24: "NEC MS-DOS 3.x", |
| 40 | + 0x26: "reserved (HP Volume Expansion, SpeedStor variant?)", |
| 41 | + 0x31: "reserved (HP Volume Expansion, SpeedStor variant?)", |
| 42 | + 0x33: "reserved (HP Volume Expansion, SpeedStor variant?)", |
| 43 | + 0x34: "reserved (HP Volume Expansion, SpeedStor variant?)", |
| 44 | + 0x36: "reserved (HP Volume Expansion, SpeedStor variant?)", |
| 45 | + 0x38: "Theos", |
| 46 | + 0x3C: "PowerQuest Files Partition Format", |
| 47 | + 0x3D: "Hidden NetWare", |
| 48 | + 0x40: "VENIX 80286", |
| 49 | + 0x41: "Personal RISC Boot, PowerPC boot partition", |
| 50 | + 0x42: "Secure File System, Windows 2000/XP (NT 5)", |
| 51 | + 0x43: "Alternative Linux native file system (EXT2fs) PTS-DOS 6.70 & BootWizard: DR-DOS", |
| 52 | + 0x45: "Priam, EUMEL/Elan. ", |
| 53 | + 0x46: "EUMEL/Elan", |
| 54 | + 0x47: "EUMEL/Elan", |
| 55 | + 0x48: "EUMEL/Elan", |
| 56 | + 0x4A: "ALFS/THIN lightweight filesystem for DOS", |
| 57 | + 0x4D: "QNX", |
| 58 | + 0x4E: "QNX", |
| 59 | + 0x4F: "QNX, Oberon boot/data partition.", |
| 60 | + 0x50: "Ontrack Disk Manager, read-only partition, FAT partition (Logical sector size varies)", |
| 61 | + 0x51: "Ontrack Disk Manager, read/write partition, FAT partition (Logical sector size varies) Novell?", |
| 62 | + 0x52: "CP/M, Microport System V/386.", |
| 63 | + 0x53: "Ontrack Disk Manager, write-only", |
| 64 | + 0x54: "Ontrack Disk Manager 6.0 (DDO)", |
| 65 | + 0x55: "EZ-Drive 3.05", |
| 66 | + 0x56: "Golden Bow VFeature", |
| 67 | + 0x5C: "Priam EDISK", |
| 68 | + 0x61: "Storage Dimensions SpeedStor", |
| 69 | + 0x63: "GNU HURD, Mach, MtXinu BSD 4.2 on Mach, Unix Sys V/386, 386/ix.", |
| 70 | + 0x64: "Novell NetWare 286, SpeedStore.", |
| 71 | + 0x65: "Novell NetWare (3.11 and 4.1)", |
| 72 | + 0x66: "Novell NetWare 386", |
| 73 | + 0x67: "Novell NetWare", |
| 74 | + 0x68: "Novell NetWare", |
| 75 | + 0x69: "Novell NetWare 5+", |
| 76 | + 0x70: "DiskSecure Multi-Boot", |
| 77 | + 0x75: "IBM PC/IX", |
| 78 | + 0x80: "Minix v1.1 - 1.4a, Old MINIX (Linux).", |
| 79 | + 0x81: "Linux/Minix v1.4b+, Mitac Advanced Disk Manager.", |
| 80 | + 0x82: "Linux Swap partition, Prime or Solaris (Unix).", |
| 81 | + 0x83: "Linux native file systems (ext2/3/4, JFS, Reiser, xiafs, and others).", |
| 82 | + 0x84: "OS/2 hiding type 04h partition", |
| 83 | + 0x86: "NT Stripe Set, Volume Set?", |
| 84 | + 0x87: "NT Stripe Set, Volume Set?, HPFS FT mirrored partition.", |
| 85 | + 0x93: "Amoeba file system, Hidden Linux EXT2 partition (PowerQuest).", |
| 86 | + 0x94: "Amoeba bad block table", |
| 87 | + 0x99: "Mylex EISA SCSI", |
| 88 | + 0x9F: "BSDI", |
| 89 | + 0xA0: "Phoenix NoteBios Power Management 'Save to Disk', IBM hibernation.", |
| 90 | + 0xA1: "HP Volume Expansion (SpeedStor variant)", |
| 91 | + 0xA3: "HP Volume Expansion (SpeedStor variant)", |
| 92 | + 0xA4: "HP Volume Expansion (SpeedStor variant)", |
| 93 | + 0xA5: "FreeBSD/386", |
| 94 | + 0xA6: "OpenBSD", |
| 95 | + 0xA7: "NextStep Partition", |
| 96 | + 0xA9: "NetBSD", |
| 97 | + 0xAA: "Olivetti DOS with FAT12", |
| 98 | + 0xB0: "Bootmanager BootStar by Star-Tools GmbH", |
| 99 | + 0xB1: "HP Volume Expansion (SpeedStor variant)", |
| 100 | + 0xB3: "HP Volume Expansion (SpeedStor variant)", |
| 101 | + 0xB4: "HP Volume Expansion (SpeedStor variant)", |
| 102 | + 0xB6: "HP Volume Expansion (SpeedStor variant)", |
| 103 | + 0xB7: "BSDI file system or secondarily swap", |
| 104 | + 0xB8: "BSDI swap partition or secondarily file system", |
| 105 | + 0xBB: "PTS BootWizard (hidden) 4.0", |
| 106 | + 0xBC: "May be an Acronis 'Backup' or 'Secure Zone' partition, when labeled 'ACRONIS SZ' (FAT32, LBA mapped, primary).", |
| 107 | + 0xBE: "Solaris boot partition", |
| 108 | + 0xC0: "Novell DOS/OpenDOS/DR-OpenDOS/DR-DOS secured partition, or CTOS (reported by a client).", |
| 109 | + 0xC1: "DR-DOS 6.0 LOGIN.EXE-secured 12-bit FAT partition", |
| 110 | + 0xC2: "Reserved for DR-DOS 7+", |
| 111 | + 0xC3: "Reserved for DR-DOS 7+", |
| 112 | + 0xC4: "DR-DOS 6.0 LOGIN.EXE-secured 16-bit FAT partition", |
| 113 | + 0xC6: "DR-DOS 6.0 LOGIN.EXE-secured Huge partition, or: Corrupted FAT16 volume/stripe (V/S) set (Windows NT).", |
| 114 | + 0xC7: "Syrinx, Cyrnix, HPFS FT disabled mirrored partition, or: Corrupted NTFS volume/stripe set.", |
| 115 | + 0xC8: "Reserved for DR-DOS 7+", |
| 116 | + 0xC9: "Reserved for DR-DOS 7+", |
| 117 | + 0xCA: "Reserved for DR-DOS 7+", |
| 118 | + 0xCB: "Reserved for DR-DOS secured FAT32", |
| 119 | + 0xCC: "Reserved for DR-DOS secured FAT32X (LBA)", |
| 120 | + 0xCD: "Reserved for DR-DOS 7+", |
| 121 | + 0xCE: "Reserved for DR-DOS secured FAT16X (LBA)", |
| 122 | + 0xCF: "Reserved for DR-DOS secured Extended partition (LBA)", |
| 123 | + 0xD0: "Multiuser DOS secured (FAT12???)", |
| 124 | + 0xD1: "Old Multiuser DOS secured FAT12", |
| 125 | + 0xD4: "Old Multiuser DOS secured FAT16 (<= 32M)", |
| 126 | + 0xD5: "Old Multiuser DOS secured extended partition", |
| 127 | + 0xD6: "Old Multiuser DOS secured FAT16 (BIGDOS > 32 Mb)", |
| 128 | + 0xD8: "CP/M 86", |
| 129 | + 0xDB: "CP/M, Concurrent CP/M, Concurrent DOS, or CTOS (Convergent Technologies OS).", |
| 130 | + 0xDE: "Dell partition. Normally it contains a FAT16 file system of about 32 MB.", |
| 131 | + 0xDF: "BootIt EMBRM", |
| 132 | + 0xE1: "SpeedStor 12-bit FAT Extended partition, DOS access (Linux).", |
| 133 | + 0xE2: "DOS read-only (Florian Painke's XFDISK 1.0.4)", |
| 134 | + 0xE3: "SpeedStor (Norton, Linux says DOS R/O)", |
| 135 | + 0xE4: "SpeedStor 16-bit FAT Extended partition", |
| 136 | + 0xE5: "Tandy DOS with logical sectored FAT", |
| 137 | + 0xE6: "Storage Dimensions SpeedStor", |
| 138 | + 0xEB: "BeOS file system", |
| 139 | + 0xED: "Reserved for Matthias Paul's Spryt*x", |
| 140 | + 0xEE: "GPT Protective MBR followed by a GPT/EFI Header. Used to define a fake partition covering the entire disk.", |
| 141 | + 0xEF: "EFI/UEFI System Partition (or ESP)", |
| 142 | + 0xF1: "SpeedStor Dimensions (Norton,Landis)", |
| 143 | + 0xF2: "DOS 3.3+ second partition, Unisys DOS with logical sectored FAT.", |
| 144 | + 0xF3: "Storage Dimensions SpeedStor", |
| 145 | + 0xF4: "SpeedStor Storage Dimensions (Norton,Landis)", |
| 146 | + 0xF5: "Prologue", |
| 147 | + 0xF6: "Storage Dimensions SpeedStor", |
| 148 | + 0xFD: "Reserved for FreeDOS (http://www.freedos.org)", |
| 149 | + 0xFE: "LANstep, IBM PS/2 IML (Initial Microcode Load) partition, or...", |
| 150 | + 0xFF: "Xenix bad-block table", |
| 151 | +} |
0 commit comments