Address | Content |
---|---|
+000h | Partition code : the code lying here is executed if the sector is identified as an executable sector, i.e. the word at offset 1FEh is AA55h. |
+1BEh | Partition table |
+1FEh | These 2 bytes are tested by the BIOS to check if the sector can be executed. If byte +1FEh is equal to 55h and byte +1FFh is equal to AAh then the BIOS assumes the sector can be executed. |
+1BEh | First entry of the partition table |
+1CEh | Second entry of the partition table |
+1DEh | Third entry of the partition table |
+1EEh | Fourth entry of the partition table |
Offset | Content |
---|---|
+00h | State of partition : 00h if not active, 80h if active |
+01h | Head where the partition starts |
+02h | Sector and cylinder where the partition starts |
+04h | Type of partition : see Appendix A. |
+05h | Head where the partition ends |
+06h | Sector and cylinder where the partition ends |
+08h | Distance, in sectors, from the partition sector to the first sector of the partition |
+0Ch | Number of sectors in the partition |
Reference number | Type |
---|---|
0h | Empty |
1h | DOS 12-bits FAT |
2h | XENIX root |
3h | XENIX usr |
4h | DOS 16-bits < 32 Mb |
5h | Extended partition |
6h | DOS 16-bits >= 32 Mb |
7h | OS/2 HPFS |
8h | AIX |
9h | AIX initializable |
Ah | OS/2 Boot Manager |
40h | Venix 80286 |
51h | Novell |
52h | Microport |
63h | GNU HURD |
64h | Novell |
75h | PC/IX |
80h | Old MINIX |
81h | MINIX/Linux |
82h | Linux Swap |
83h | Linux Native |
93h | Amoeba |
94h | Amoeba BBT |
A5h | BSD/386 |
B7h | BSDI fs |
B8h | BSDI swap |
C7h | Syrinx |
DBh | CP/M |
E1h | Access to DOS |
E3h | DOS R/O |
F2h | DOS secondary |
FFh | BBT |
Entry 1 | 80 01 01 00 06 1F FF 39 3F 00 00 00 81 68 19 00 |
---|---|
Entry 2 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 3 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 4 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 1 | 00 01 01 00 82 7F 3F 19 3F 00 00 00 C1 32 03 00 |
---|---|
Entry 2 | 80 00 01 1A 83 7F 7F 96 00 33 03 00 80 E1 2E 00 |
Entry 3 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 4 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 1 | 00 00 01 01 05 7F BF 6A 80 1F 00 00 00 0B 4C 00 |
---|---|
Entry 2 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 3 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 4 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 1 | 00 01 01 01 06 7F 3F FE 3F 00 00 00 C1 40 1F 00 |
---|---|
Entry 2 | 00 00 01 FF 05 7F BF 6A 00 41 1F 00 00 CA 2C 00 |
Entry 3 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 4 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 1 | 00 01 01 FF 06 7F BF 6A 3F 00 00 00 C1 C9 2C 00 |
---|---|
Entry 2 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 3 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Entry 4 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |
Offset | Hexadecimal code | Instruction or data |
---|---|---|
00 | FA | cli |
01 | 33C0 | xor ax,ax |
03 | 8ED0 | mov ss,ax |
05 | BC007C | mov sp,7C00h |
08 | 8BF4 | mov si,sp |
0A | 50 | push ax |
0B | 07 | pop es |
0C | 50 | push ax |
0D | 1F | pop ds |
0E | FB | sti |
0F | FC | cld |
10 | BF0006 | mov di,0600h |
13 | B90001 | mov cx,0100h |
16 | F2A5 | repnz movsw |
18 | EA1D060000 | jmp 0000h:061Dh |
1D | BEBE07 | mov si,07BEh |
20 | B304 | mov bl,04h |
22 | 803C80 | cmp byte ptr [si],80h |
25 | 740E | je 35h |
27 | 803C00 | cmp byte ptr [si],00h |
2A | 751C | jne 48h |
2C | 83C610 | add si,0010h |
2F | FECB | dec bl |
31 | 75EF | jne 22h |
33 | CD18 | int 18h |
35 | 8B14 | mov dx,[si] |
37 | 8B4C02 | mov cx,[si+02h] |
3A | 8BEE | mov bp,si |
3C | 83C610 | add si,0010h |
3F | FECB | dec bl |
41 | 741A | je 5Dh |
43 | 803C00 | cmp byte ptr [si],00h |
46 | 74F4 | je 3Ch |
48 | BE8B06 | mov si,068Bh |
4B | AC | lodsb |
4C | 3C00 | cmp al,00h |
4E | 740B | je 5Bh |
50 | 56 | push si |
51 | BB0700 | mov bx,7h |
54 | B40E | mov ah,0Eh |
56 | CD10 | int 10h |
58 | 5E | pop si |
59 | EBF0 | jmp 4Bh |
5B | EBFE | jmp 5Bh |
5D | BF0500 | mov di,5h |
60 | BB007C | mov bx,7C00h |
63 | B80102 | mov ax,0201h |
66 | 57 | push di |
67 | CD13 | int 13h |
69 | 5F | pop di |
6A | 730C | jnb 78h |
6C | 33C0 | xor ax,ax |
6E | CD13 | int 13h |
70 | 4F | dec di |
71 | 75ED | jne 60h |
73 | BEA306 | mov si,06A3h |
76 | EBD3 | jmp 4Bh |
78 | BEC206 | mov si,06C2h |
7B | BFFE7D | mov di,7DFE |
7E | 813D55AA | cmp word ptr [di],AA55h |
82 | 75C7 | jne 4Bh |
84 | 8BF5 | mov si,bp |
86 | EA007C0000 | jmp 0000h:7C00h |
8B | Invalid partition table | |
A2 | 00 | |
A3 | Error loading operating system | |
C1 | 00 | |
C2 | Missing operating system | |
DA | 00 | |
DB-1BE | 00 | Unused space |
1BE-1CD | See description of this entry in Partition Table of a 850 Mb hard disk | |
1CE-1DD | 00 | Unused entry of partition table |
1DE-1ED | 00 | Unused entry of partition table |
1EE-1FD | 00 | Unused entry of partition table |
1FE | 55AA | The sector can be executed |