home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: SHell self-extracting ARchive
(archive/shar).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| SHell self-extracting ARchive (archive/shar)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/329 Shell Archive Format
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 73 6f 75 72 63 65 73 | 2e 6d 69 73 63 0a 58 2d |.sources|.misc.X-|
|00000020| 55 4e 49 58 2d 46 72 6f | 6d 3a 20 67 77 72 40 6c |UNIX-Fro|m: gwr@l|
|00000030| 69 6e 75 73 2e 6d 69 74 | 72 65 2e 6f 72 67 0a 6b |inus.mit|re.org.k|
|00000040| 65 79 77 6f 72 64 73 3a | 20 66 64 69 73 6b 20 70 |eywords:| fdisk p|
|00000050| 61 72 74 69 74 69 6f 6e | 20 62 6f 6f 74 20 6d 65 |artition| boot me|
|00000060| 6e 75 20 62 6f 6f 74 6d | 65 6e 75 20 70 66 64 69 |nu bootm|enu pfdi|
|00000070| 73 6b 0a 6f 72 67 61 6e | 69 7a 61 74 69 6f 6e 3a |sk.organ|ization:|
|00000080| 20 54 68 65 20 4d 49 54 | 52 45 20 43 6f 72 70 6f | The MIT|RE Corpo|
|00000090| 72 61 74 69 6f 6e 2c 20 | 42 65 64 66 6f 72 64 2c |ration, |Bedford,|
|000000a0| 20 4d 41 2e 0a 73 75 6d | 6d 61 72 79 3a 20 70 72 | MA..sum|mary: pr|
|000000b0| 69 6d 61 72 79 20 62 6f | 6f 74 20 73 65 63 74 6f |imary bo|ot secto|
|000000c0| 72 20 70 72 6f 67 72 61 | 6d 20 77 69 74 68 20 6d |r progra|m with m|
|000000d0| 65 6e 75 0a 73 75 62 6a | 65 63 74 3a 20 76 31 35 |enu.subj|ect: v15|
|000000e0| 69 30 38 35 3a 20 42 4f | 4f 54 4d 45 4e 55 20 61 |i085: BO|OTMENU a|
|000000f0| 6e 64 20 50 46 44 49 53 | 4b 20 31 2e 33 20 28 70 |nd PFDIS|K 1.3 (p|
|00000100| 61 72 74 20 32 2f 32 29 | 0a 66 72 6f 6d 3a 20 67 |art 2/2)|.from: g|
|00000110| 77 72 40 6c 69 6e 75 73 | 2e 6d 69 74 72 65 2e 6f |wr@linus|.mitre.o|
|00000120| 72 67 0a 53 65 6e 64 65 | 72 3a 20 61 6c 6c 62 65 |rg.Sende|r: allbe|
|00000130| 72 79 40 75 75 6e 65 74 | 2e 55 55 2e 4e 45 54 20 |ry@uunet|.UU.NET |
|00000140| 28 42 72 61 6e 64 6f 6e | 20 53 2e 20 41 6c 6c 62 |(Brandon| S. Allb|
|00000150| 65 72 79 20 2d 20 63 6f | 6d 70 2e 73 6f 75 72 63 |ery - co|mp.sourc|
|00000160| 65 73 2e 6d 69 73 63 29 | 0a 0a 50 6f 73 74 69 6e |es.misc)|..Postin|
|00000170| 67 2d 6e 75 6d 62 65 72 | 3a 20 56 6f 6c 75 6d 65 |g-number|: Volume|
|00000180| 20 31 35 2c 20 49 73 73 | 75 65 20 38 35 0a 53 75 | 15, Iss|ue 85.Su|
|00000190| 62 6d 69 74 74 65 64 2d | 62 79 3a 20 67 77 72 40 |bmitted-|by: gwr@|
|000001a0| 6c 69 6e 75 73 2e 6d 69 | 74 72 65 2e 6f 72 67 0a |linus.mi|tre.org.|
|000001b0| 41 72 63 68 69 76 65 2d | 6e 61 6d 65 3a 20 62 6f |Archive-|name: bo|
|000001c0| 6f 74 6d 65 6e 75 2f 70 | 61 72 74 30 32 0a 0a 48 |otmenu/p|art02..H|
|000001d0| 65 72 65 20 69 73 20 70 | 61 72 74 20 32 20 6f 66 |ere is p|art 2 of|
|000001e0| 20 74 68 65 20 42 4f 4f | 54 4d 45 4e 55 20 61 6e | the BOO|TMENU an|
|000001f0| 64 20 50 46 44 49 53 4b | 20 31 2e 33 20 64 69 73 |d PFDISK| 1.3 dis|
|00000200| 74 72 69 62 75 74 69 6f | 6e 2e 0a 0a 53 65 65 20 |tributio|n...See |
|00000210| 74 68 65 20 52 45 41 44 | 4d 45 20 66 69 6c 65 20 |the READ|ME file |
|00000220| 61 74 20 74 68 65 20 62 | 65 67 69 6e 6e 69 6e 67 |at the b|eginning|
|00000230| 20 6f 66 20 70 61 72 74 | 20 31 20 66 6f 72 20 61 | of part| 1 for a|
|00000240| 20 67 65 6e 65 72 61 6c | 0a 64 65 73 63 72 69 70 | general|.descrip|
|00000250| 74 69 6f 6e 20 6f 66 20 | 74 68 69 73 20 70 61 63 |tion of |this pac|
|00000260| 6b 61 67 65 2e 20 20 50 | 72 6f 67 72 61 6d 20 64 |kage. P|rogram d|
|00000270| 6f 63 75 6d 65 6e 74 61 | 74 69 6f 6e 20 66 6f 72 |ocumenta|tion for|
|00000280| 20 62 6f 74 68 0a 42 4f | 4f 54 4d 45 4e 55 20 61 | both.BO|OTMENU a|
|00000290| 6e 64 20 50 46 44 49 53 | 4b 20 61 72 65 20 61 74 |nd PFDIS|K are at|
|000002a0| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 6f | the beg|inning o|
|000002b0| 66 20 74 68 65 20 73 68 | 61 72 20 66 69 6c 65 20 |f the sh|ar file |
|000002c0| 62 65 6c 6f 77 2e 0a 0a | 47 6f 72 64 6f 6e 20 57 |below...|Gordon W|
|000002d0| 2e 20 52 6f 73 73 20 20 | 28 4d 2f 53 20 45 30 39 |. Ross |(M/S E09|
|000002e0| 35 29 09 69 6e 74 65 72 | 6e 65 74 3a 20 67 77 72 |5).inter|net: gwr|
|000002f0| 40 6c 69 6e 75 73 2e 6d | 69 74 72 65 2e 6f 72 67 |@linus.m|itre.org|
|00000300| 0a 54 68 65 20 4d 49 54 | 52 45 20 43 6f 72 70 6f |.The MIT|RE Corpo|
|00000310| 72 61 74 69 6f 6e 20 20 | 20 20 09 75 75 63 70 3a |ration | .uucp:|
|00000320| 20 7b 64 65 63 76 61 78 | 7c 70 68 69 6c 61 62 73 | {decvax||philabs|
|00000330| 7d 21 6c 69 6e 75 73 21 | 67 77 72 0a 42 75 72 6c |}!linus!|gwr.Burl|
|00000340| 69 6e 67 74 6f 6e 20 52 | 6f 61 64 20 20 20 20 20 |ington R|oad |
|00000350| 20 20 20 20 20 09 6f 66 | 66 69 63 65 20 70 68 6f | .of|fice pho|
|00000360| 6e 65 3a 20 36 31 37 2d | 32 37 31 2d 33 32 30 35 |ne: 617-|271-3205|
|00000370| 0a 42 65 64 66 6f 72 64 | 2c 20 4d 41 20 30 31 37 |.Bedford|, MA 017|
|00000380| 33 30 20 28 55 2e 53 2e | 41 2e 29 0a 0a 23 21 20 |30 (U.S.|A.)..#! |
|00000390| 2f 62 69 6e 2f 73 68 0a | 23 20 54 68 69 73 20 69 |/bin/sh.|# This i|
|000003a0| 73 20 61 20 73 68 65 6c | 6c 20 61 72 63 68 69 76 |s a shel|l archiv|
|000003b0| 65 2c 20 6d 65 61 6e 69 | 6e 67 3a 0a 23 20 31 2e |e, meani|ng:.# 1.|
|000003c0| 20 52 65 6d 6f 76 65 20 | 65 76 65 72 79 74 68 69 | Remove |everythi|
|000003d0| 6e 67 20 61 62 6f 76 65 | 20 74 68 65 20 23 21 20 |ng above| the #! |
|000003e0| 2f 62 69 6e 2f 73 68 20 | 6c 69 6e 65 2e 0a 23 20 |/bin/sh |line..# |
|000003f0| 32 2e 20 53 61 76 65 20 | 74 68 65 20 72 65 73 75 |2. Save |the resu|
|00000400| 6c 74 69 6e 67 20 74 65 | 78 74 20 69 6e 20 61 20 |lting te|xt in a |
|00000410| 66 69 6c 65 2e 0a 23 20 | 33 2e 20 45 78 65 63 75 |file..# |3. Execu|
|00000420| 74 65 20 74 68 65 20 66 | 69 6c 65 20 77 69 74 68 |te the f|ile with|
|00000430| 20 2f 62 69 6e 2f 73 68 | 20 28 6e 6f 74 20 63 73 | /bin/sh| (not cs|
|00000440| 68 29 20 74 6f 20 63 72 | 65 61 74 65 20 74 68 65 |h) to cr|eate the|
|00000450| 20 66 69 6c 65 73 3a 0a | 23 09 62 6f 6f 74 6d 65 | files:.|#.bootme|
|00000460| 6e 75 2e 64 6f 63 0a 23 | 09 70 66 64 69 73 6b 2e |nu.doc.#|.pfdisk.|
|00000470| 64 6f 63 0a 23 09 53 53 | 74 6f 72 2e 74 78 74 0a |doc.#.SS|tor.txt.|
|00000480| 23 09 62 6f 6f 74 6d 65 | 6e 75 2e 61 73 6d 0a 23 |#.bootme|nu.asm.#|
|00000490| 09 62 6f 6f 74 61 75 74 | 6f 2e 61 73 6d 0a 23 09 |.bootaut|o.asm.#.|
|000004a0| 61 73 6d 32 62 69 6e 2e | 62 61 74 0a 23 09 6d 61 |asm2bin.|bat.#.ma|
|000004b0| 6b 65 5f 6d 73 63 2e 62 | 61 74 0a 23 09 62 6f 6f |ke_msc.b|at.#.boo|
|000004c0| 74 6d 65 6e 75 2e 68 65 | 78 0a 23 09 62 6f 6f 74 |tmenu.he|x.#.boot|
|000004d0| 61 75 74 6f 2e 68 65 78 | 0a 23 09 68 65 78 32 62 |auto.hex|.#.hex2b|
|000004e0| 69 6e 2e 63 0a 23 20 54 | 68 69 73 20 61 72 63 68 |in.c.# T|his arch|
|000004f0| 69 76 65 20 63 72 65 61 | 74 65 64 3a 20 54 75 65 |ive crea|ted: Tue|
|00000500| 20 4f 63 74 20 32 33 20 | 31 33 3a 35 33 3a 32 30 | Oct 23 |13:53:20|
|00000510| 20 31 39 39 30 0a 23 20 | 42 79 3a 09 47 6f 72 64 | 1990.# |By:.Gord|
|00000520| 6f 6e 20 57 2e 20 52 6f | 73 73 20 28 54 68 65 20 |on W. Ro|ss (The |
|00000530| 4d 49 54 52 45 20 43 6f | 72 70 6f 72 61 74 69 6f |MITRE Co|rporatio|
|00000540| 6e 2c 20 42 65 64 66 6f | 72 64 2c 20 4d 41 2e 29 |n, Bedfo|rd, MA.)|
|00000550| 0a 65 78 70 6f 72 74 20 | 50 41 54 48 3b 20 50 41 |.export |PATH; PA|
|00000560| 54 48 3d 2f 62 69 6e 3a | 24 50 41 54 48 0a 65 63 |TH=/bin:|$PATH.ec|
|00000570| 68 6f 20 73 68 61 72 3a | 20 65 78 74 72 61 63 74 |ho shar:| extract|
|00000580| 69 6e 67 20 22 27 62 6f | 6f 74 6d 65 6e 75 2e 64 |ing "'bo|otmenu.d|
|00000590| 6f 63 27 22 20 27 28 33 | 39 32 33 20 63 68 61 72 |oc'" '(3|923 char|
|000005a0| 61 63 74 65 72 73 29 27 | 0a 69 66 20 74 65 73 74 |acters)'|.if test|
|000005b0| 20 2d 66 20 27 62 6f 6f | 74 6d 65 6e 75 2e 64 6f | -f 'boo|tmenu.do|
|000005c0| 63 27 0a 74 68 65 6e 0a | 09 65 63 68 6f 20 73 68 |c'.then.|.echo sh|
|000005d0| 61 72 3a 20 77 69 6c 6c | 20 6e 6f 74 20 6f 76 65 |ar: will| not ove|
|000005e0| 72 2d 77 72 69 74 65 20 | 65 78 69 73 74 69 6e 67 |r-write |existing|
|000005f0| 20 66 69 6c 65 20 22 27 | 62 6f 6f 74 6d 65 6e 75 | file "'|bootmenu|
|00000600| 2e 64 6f 63 27 22 0a 65 | 6c 73 65 0a 63 61 74 20 |.doc'".e|lse.cat |
|00000610| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|00000620| 62 6f 6f 74 6d 65 6e 75 | 2e 64 6f 63 27 0a 0a 09 |bootmenu|.doc'...|
|00000630| 42 4f 4f 54 4d 45 4e 55 | 20 2d 2d 20 61 20 42 4f |BOOTMENU| -- a BO|
|00000640| 4f 54 20 73 65 63 74 6f | 72 20 70 72 6f 67 72 61 |OT secto|r progra|
|00000650| 6d 20 77 69 74 68 20 61 | 20 4d 45 4e 55 0a 09 2d |m with a| MENU..-|
|00000660| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000670| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000680| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 09 09 62 |--------|----...b|
|00000690| 79 20 47 6f 72 64 6f 6e | 20 57 2e 20 52 6f 73 73 |y Gordon| W. Ross|
|000006a0| 2c 20 41 75 67 20 31 39 | 39 30 0a 0a 09 54 68 69 |, Aug 19|90...Thi|
|000006b0| 73 20 70 72 6f 67 72 61 | 6d 20 69 73 20 6c 6f 61 |s progra|m is loa|
|000006c0| 64 65 64 20 62 79 20 74 | 68 65 20 50 43 20 52 4f |ded by t|he PC RO|
|000006d0| 4d 20 42 49 4f 53 20 61 | 6e 64 20 69 73 20 72 65 |M BIOS a|nd is re|
|000006e0| 73 70 6f 6e 73 69 62 6c | 65 0a 09 66 6f 72 20 73 |sponsibl|e..for s|
|000006f0| 65 6c 65 63 74 69 6e 67 | 20 6f 6e 65 20 6f 66 20 |electing| one of |
|00000700| 66 6f 75 72 20 70 61 72 | 74 69 74 69 6f 6e 73 20 |four par|titions |
|00000710| 74 6f 20 62 6f 6f 74 20 | 66 72 6f 6d 2e 20 20 54 |to boot |from. T|
|00000720| 68 65 20 6e 6f 72 6d 61 | 6c 0a 09 28 4d 53 2d 44 |he norma|l..(MS-D|
|00000730| 4f 53 29 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |OS) vers|ion of t|
|00000740| 68 69 73 20 70 72 6f 67 | 72 61 6d 20 61 6c 77 61 |his prog|ram alwa|
|00000750| 79 73 20 62 6f 6f 74 73 | 20 74 68 65 20 22 61 63 |ys boots| the "ac|
|00000760| 74 69 76 65 22 0a 09 70 | 61 72 74 69 74 69 6f 6e |tive"..p|artition|
|00000770| 2c 20 62 75 74 20 74 68 | 69 73 20 76 65 72 73 69 |, but th|is versi|
|00000780| 6f 6e 20 61 6c 6c 6f 77 | 73 20 61 6e 79 20 70 61 |on allow|s any pa|
|00000790| 72 74 69 74 69 6f 6e 20 | 74 6f 20 62 65 0a 09 73 |rtition |to be..s|
|000007a0| 65 6c 65 63 74 65 64 20 | 66 6f 72 20 62 6f 6f 74 |elected |for boot|
|000007b0| 69 6e 67 2c 20 77 65 74 | 68 65 72 20 6d 61 72 6b |ing, wet|her mark|
|000007c0| 65 64 20 22 61 63 74 69 | 76 65 22 20 6f 72 20 6e |ed "acti|ve" or n|
|000007d0| 6f 74 2e 0a 0a 09 54 77 | 6f 20 76 65 72 73 69 6f |ot....Tw|o versio|
|000007e0| 6e 73 20 6f 66 20 74 68 | 69 73 20 70 72 6f 67 72 |ns of th|is progr|
|000007f0| 61 6d 20 61 72 65 20 6e | 6f 77 20 64 69 73 74 72 |am are n|ow distr|
|00000800| 69 62 75 74 65 64 3a 0a | 0a 09 42 4f 4f 54 4d 45 |ibuted:.|..BOOTME|
|00000810| 4e 55 20 69 73 20 73 6d | 61 6c 6c 20 28 6c 65 73 |NU is sm|all (les|
|00000820| 73 20 74 68 61 6e 20 32 | 35 36 20 62 79 74 65 73 |s than 2|56 bytes|
|00000830| 20 6f 66 20 63 6f 64 65 | 29 20 61 6e 64 20 63 6f | of code|) and co|
|00000840| 6d 70 61 74 69 62 6c 65 | 0a 09 77 69 74 68 20 74 |mpatible|..with t|
|00000850| 68 65 20 53 70 65 65 64 | 53 74 6f 72 20 68 61 72 |he Speed|Stor har|
|00000860| 64 20 64 69 73 6b 20 66 | 6f 72 6d 61 74 74 69 6e |d disk f|ormattin|
|00000870| 67 20 70 61 63 6b 61 67 | 65 2e 20 20 28 4e 6f 74 |g packag|e. (Not|
|00000880| 65 20 74 68 61 74 0a 09 | 53 70 65 65 64 53 74 6f |e that..|SpeedSto|
|00000890| 72 20 77 72 69 74 65 73 | 20 69 6e 20 73 65 76 65 |r writes| in seve|
|000008a0| 72 61 6c 20 6c 6f 63 61 | 74 69 6f 6e 73 20 69 6e |ral loca|tions in|
|000008b0| 20 74 68 65 20 62 6f 6f | 74 20 73 65 63 74 6f 72 | the boo|t sector|
|000008c0| 21 29 0a 09 54 68 69 73 | 20 76 65 72 73 69 6f 6e |!)..This| version|
|000008d0| 2c 20 68 6f 77 65 76 65 | 72 2c 20 64 6f 65 73 20 |, howeve|r, does |
|000008e0| 6e 6f 74 20 61 6c 6c 6f | 77 20 75 6e 61 74 74 65 |not allo|w unatte|
|000008f0| 6e 64 65 64 20 72 65 62 | 6f 6f 74 73 2e 0a 09 41 |nded reb|oots...A|
|00000900| 66 74 65 72 20 42 4f 4f | 54 4d 45 4e 55 20 64 69 |fter BOO|TMENU di|
|00000910| 73 70 6c 61 79 73 20 69 | 74 73 20 70 61 72 74 69 |splays i|ts parti|
|00000920| 74 69 6f 6e 20 6d 65 6e | 75 2c 20 69 74 20 77 61 |tion men|u, it wa|
|00000930| 69 74 73 0a 09 69 6e 64 | 65 66 69 6e 69 74 65 6c |its..ind|efinitel|
|00000940| 79 20 66 6f 72 20 73 6f | 6d 65 6f 6e 65 20 74 6f |y for so|meone to|
|00000950| 20 73 65 6c 65 63 74 20 | 61 20 62 6f 6f 74 20 70 | select |a boot p|
|00000960| 61 72 74 69 74 69 6f 6e | 2e 0a 0a 09 42 4f 4f 54 |artition|....BOOT|
|00000970| 41 55 54 4f 20 28 70 72 | 65 76 69 6f 75 73 6c 79 |AUTO (pr|eviously|
|00000980| 20 63 61 6c 6c 65 64 20 | 22 62 6f 6f 74 2d 68 64 | called |"boot-hd|
|00000990| 70 22 29 20 69 73 20 61 | 20 66 75 6c 6c 2d 66 65 |p") is a| full-fe|
|000009a0| 61 74 75 72 65 64 0a 09 | 62 6f 6f 74 20 70 72 6f |atured..|boot pro|
|000009b0| 67 72 61 6d 20 77 68 69 | 63 68 20 61 6c 6c 6f 77 |gram whi|ch allow|
|000009c0| 73 20 62 6f 6f 74 2d 74 | 69 6d 65 20 70 61 72 74 |s boot-t|ime part|
|000009d0| 69 74 69 6f 6e 20 73 65 | 6c 65 63 74 69 6f 6e 2c |ition se|lection,|
|000009e0| 20 62 75 74 0a 09 61 6c | 73 6f 20 70 72 6f 76 69 | but..al|so provi|
|000009f0| 64 65 73 20 61 20 64 65 | 66 61 75 6c 74 20 73 65 |des a de|fault se|
|00000a00| 6c 65 63 74 69 6f 6e 20 | 77 68 69 63 68 20 69 73 |lection |which is|
|00000a10| 20 75 73 65 64 20 69 66 | 20 6e 6f 20 75 73 65 72 | used if| no user|
|00000a20| 0a 09 69 6e 70 75 74 20 | 61 72 72 69 76 65 73 20 |..input |arrives |
|00000a30| 77 69 74 68 69 6e 20 66 | 69 76 65 20 73 65 63 6f |within f|ive seco|
|00000a40| 6e 64 73 2e 0a 0a 09 54 | 68 65 20 62 65 68 61 76 |nds....T|he behav|
|00000a50| 69 6f 75 72 20 6f 66 20 | 42 4f 4f 54 41 55 54 4f |iour of |BOOTAUTO|
|00000a60| 20 69 73 20 61 73 20 66 | 6f 6c 6c 6f 77 73 3a 0a | is as f|ollows:.|
|00000a70| 0a 09 42 4f 4f 54 41 55 | 54 4f 20 64 69 73 70 6c |..BOOTAU|TO displ|
|00000a80| 61 79 73 20 74 68 65 20 | 6d 65 73 73 61 67 65 3a |ays the |message:|
|00000a90| 0a 09 09 42 6f 6f 74 69 | 6e 67 20 64 65 76 69 63 |...Booti|ng devic|
|00000aa0| 65 3a 20 68 64 30 2c 0a | 09 61 6e 64 20 74 68 65 |e: hd0,.|.and the|
|00000ab0| 6e 20 70 61 75 73 65 73 | 20 66 6f 72 20 61 20 66 |n pauses| for a f|
|00000ac0| 69 76 65 20 73 65 63 6f | 6e 64 20 64 65 6c 61 79 |ive seco|nd delay|
|00000ad0| 2e 0a 0a 09 49 66 20 74 | 68 65 20 75 73 65 72 20 |....If t|he user |
|00000ae0| 70 72 65 73 73 65 73 20 | 61 6e 79 20 6b 65 79 20 |presses |any key |
|00000af0| 62 65 66 6f 72 65 20 74 | 68 65 20 64 65 6c 61 79 |before t|he delay|
|00000b00| 20 65 78 70 69 72 65 73 | 2c 20 61 20 6d 65 6e 75 | expires|, a menu|
|00000b10| 0a 09 6f 66 20 62 6f 6f | 74 61 62 6c 65 20 70 61 |..of boo|table pa|
|00000b20| 72 74 69 74 69 6f 6e 73 | 20 69 73 20 64 69 73 70 |rtitions| is disp|
|00000b30| 6c 61 79 65 64 2c 20 61 | 6e 64 20 74 68 65 20 75 |layed, a|nd the u|
|00000b40| 73 65 72 20 69 73 20 70 | 72 6f 6d 70 74 65 64 0a |ser is p|rompted.|
|00000b50| 09 66 6f 72 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |.for the| number |
|00000b60| 6f 66 20 74 68 65 20 70 | 61 72 74 69 74 69 6f 6e |of the p|artition|
|00000b70| 20 74 6f 20 62 6f 6f 74 | 20 66 72 6f 6d 2e 20 20 | to boot| from. |
|00000b80| 49 66 20 6e 6f 20 6b 65 | 79 20 69 73 0a 09 70 72 |If no ke|y is..pr|
|00000b90| 65 73 73 65 64 20 62 65 | 66 6f 72 65 20 74 68 65 |essed be|fore the|
|00000ba0| 20 64 65 6c 61 79 20 65 | 6e 64 73 2c 20 74 68 65 | delay e|nds, the|
|00000bb0| 20 66 69 72 73 74 20 70 | 61 72 74 69 74 69 6f 6e | first p|artition|
|00000bc0| 20 6d 61 72 6b 65 64 20 | 61 73 0a 09 22 61 63 74 | marked |as.."act|
|00000bd0| 69 76 65 22 20 69 73 20 | 75 73 65 64 2e 20 20 49 |ive" is |used. I|
|00000be0| 66 20 6e 6f 20 70 61 72 | 74 69 74 69 6f 6e 20 69 |f no par|tition i|
|00000bf0| 73 20 6d 61 72 6b 65 64 | 20 61 73 20 61 63 74 69 |s marked| as acti|
|00000c00| 76 65 2c 20 74 68 65 0a | 09 62 6f 6f 74 20 6d 65 |ve, the.|.boot me|
|00000c10| 6e 75 20 69 73 20 70 72 | 65 73 65 6e 74 65 64 20 |nu is pr|esented |
|00000c20| 77 69 74 68 6f 75 74 20 | 64 65 6c 61 79 2c 20 61 |without |delay, a|
|00000c30| 73 20 69 66 20 61 20 6b | 65 79 20 77 65 72 65 20 |s if a k|ey were |
|00000c40| 73 74 72 75 63 6b 2e 0a | 09 49 6e 20 65 73 73 65 |struck..|.In esse|
|00000c50| 6e 63 65 2c 20 74 68 69 | 73 20 70 72 6f 67 72 61 |nce, thi|s progra|
|00000c60| 6d 20 69 6e 74 65 72 70 | 72 65 74 73 20 74 68 65 |m interp|rets the|
|00000c70| 20 22 61 63 74 69 76 65 | 22 20 6d 61 72 6b 20 28 | "active|" mark (|
|00000c80| 69 66 0a 09 70 72 65 73 | 65 6e 74 29 20 61 73 20 |if..pres|ent) as |
|00000c90| 61 20 64 65 66 61 75 6c | 74 20 63 68 6f 69 63 65 |a defaul|t choice|
|00000ca0| 20 69 6e 64 69 63 61 74 | 6f 72 2e 0a 0a 09 4f 6e | indicat|or....On|
|00000cb0| 63 65 20 61 20 70 61 72 | 74 69 74 69 6f 6e 20 68 |ce a par|tition h|
|00000cc0| 61 73 20 62 65 65 6e 20 | 73 65 6c 65 63 74 65 64 |as been |selected|
|00000cd0| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 64 69 | this pr|ogram di|
|00000ce0| 73 70 6c 61 79 73 20 74 | 68 65 0a 09 73 65 6c 65 |splays t|he..sele|
|00000cf0| 63 74 65 64 20 70 61 72 | 74 69 74 69 6f 6e 20 6e |cted par|tition n|
|00000d00| 75 6d 62 65 72 20 61 6e | 64 20 6c 6f 61 64 73 20 |umber an|d loads |
|00000d10| 69 74 73 20 73 65 63 6f | 6e 64 61 72 79 20 62 6f |its seco|ndary bo|
|00000d20| 6f 74 0a 09 70 72 6f 67 | 72 61 6d 2e 20 20 45 72 |ot..prog|ram. Er|
|00000d30| 72 6f 72 73 20 61 72 65 | 20 70 72 69 6e 74 65 64 |rors are| printed|
|00000d40| 20 69 66 20 28 31 29 20 | 74 68 65 20 73 65 6c 65 | if (1) |the sele|
|00000d50| 63 74 65 64 20 70 61 72 | 74 69 74 69 6f 6e 20 69 |cted par|tition i|
|00000d60| 73 0a 09 65 6d 70 74 79 | 2c 20 28 32 29 20 74 68 |s..empty|, (2) th|
|00000d70| 65 20 73 65 63 6f 6e 64 | 61 72 79 20 62 6f 6f 74 |e second|ary boot|
|00000d80| 20 70 72 6f 67 72 61 6d | 20 6c 61 63 6b 73 20 61 | program| lacks a|
|00000d90| 20 76 61 6c 69 64 20 73 | 69 67 6e 61 74 75 72 65 | valid s|ignature|
|00000da0| 2c 0a 09 6f 72 20 28 33 | 29 20 61 6e 20 65 72 72 |,..or (3|) an err|
|00000db0| 6f 72 20 6f 63 63 75 72 | 73 20 77 68 69 6c 65 20 |or occur|s while |
|00000dc0| 72 65 61 64 69 6e 67 20 | 74 68 65 20 73 65 63 6f |reading |the seco|
|00000dd0| 6e 64 61 72 79 20 62 6f | 6f 74 20 73 65 63 74 6f |ndary bo|ot secto|
|00000de0| 72 2e 0a 0a 09 49 6e 73 | 74 61 6c 6c 61 74 69 6f |r....Ins|tallatio|
|00000df0| 6e 3a 0a 09 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |n:..----|--------|
|00000e00| 0a 09 54 68 65 20 22 70 | 66 64 69 73 6b 22 20 75 |..The "p|fdisk" u|
|00000e10| 74 69 6c 69 74 79 20 69 | 6e 63 6c 75 64 65 64 20 |tility i|ncluded |
|00000e20| 77 69 74 68 20 74 68 69 | 73 20 70 72 6f 67 72 61 |with thi|s progra|
|00000e30| 6d 20 73 69 6d 70 6c 69 | 66 69 65 73 0a 09 69 6e |m simpli|fies..in|
|00000e40| 73 74 61 6c 6c 61 74 69 | 6f 6e 20 6f 66 20 42 4f |stallati|on of BO|
|00000e50| 4f 54 41 55 54 4f 20 69 | 6e 74 6f 20 74 68 65 20 |OTAUTO i|nto the |
|00000e60| 70 72 69 6d 61 72 79 20 | 62 6f 6f 74 20 73 65 63 |primary |boot sec|
|00000e70| 74 6f 72 2e 0a 09 49 6e | 73 74 72 75 63 74 69 6f |tor...In|structio|
|00000e80| 6e 73 20 66 6f 72 20 75 | 73 69 6e 67 20 22 70 66 |ns for u|sing "pf|
|00000e90| 64 69 73 6b 22 20 61 72 | 65 20 69 6e 20 74 68 65 |disk" ar|e in the|
|00000ea0| 20 70 66 64 69 73 6b 2e | 64 6f 63 20 66 69 6c 65 | pfdisk.|doc file|
|00000eb0| 2e 0a 0a 09 4c 69 6d 69 | 74 61 74 69 6f 6e 73 3a |....Limi|tations:|
|00000ec0| 0a 09 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 0a 09 4e |..------|-----..N|
|00000ed0| 61 6d 65 73 20 69 6e 20 | 74 68 65 20 62 6f 6f 74 |ames in |the boot|
|00000ee0| 20 6d 65 6e 75 3a 0a 0a | 09 42 4f 4f 54 4d 45 4e | menu:..|.BOOTMEN|
|00000ef0| 55 20 61 6e 64 20 42 4f | 4f 54 41 55 54 4f 20 63 |U and BO|OTAUTO c|
|00000f00| 6f 6e 74 61 69 6e 20 61 | 20 6e 61 6d 65 20 74 61 |ontain a| name ta|
|00000f10| 62 6c 65 20 74 68 61 74 | 20 69 73 20 75 73 65 64 |ble that| is used|
|00000f20| 20 74 6f 0a 09 67 65 6e | 65 72 61 74 65 20 74 68 | to..gen|erate th|
|00000f30| 65 20 62 6f 6f 74 20 6d | 65 6e 75 2e 20 20 54 68 |e boot m|enu. Th|
|00000f40| 69 73 20 6e 61 6d 65 20 | 74 61 62 6c 65 20 69 73 |is name |table is|
|00000f50| 20 72 65 63 6f 67 6e 69 | 7a 65 64 20 28 75 73 69 | recogni|zed (usi|
|00000f60| 6e 67 0a 09 61 20 73 69 | 67 6e 61 74 75 72 65 29 |ng..a si|gnature)|
|00000f70| 20 61 6e 64 20 75 70 64 | 61 74 65 64 20 62 79 20 | and upd|ated by |
|00000f80| 70 66 64 69 73 6b 20 62 | 75 74 20 6e 6f 74 20 62 |pfdisk b|ut not b|
|00000f90| 79 20 6f 74 68 65 72 20 | 66 64 69 73 6b 0a 09 70 |y other |fdisk..p|
|00000fa0| 72 6f 67 72 61 6d 73 2e | 20 49 66 20 61 6e 6f 74 |rograms.| If anot|
|00000fb0| 68 65 72 20 66 64 69 73 | 6b 20 70 72 6f 67 72 61 |her fdis|k progra|
|00000fc0| 6d 20 69 73 20 75 73 65 | 64 20 74 6f 20 6d 6f 64 |m is use|d to mod|
|00000fd0| 69 66 79 20 74 68 65 0a | 09 70 61 72 74 69 74 69 |ify the.|.partiti|
|00000fe0| 6f 6e 20 74 61 62 6c 65 | 2c 20 74 68 65 20 6e 61 |on table|, the na|
|00000ff0| 6d 65 20 74 61 62 6c 65 | 20 6d 61 79 20 62 65 20 |me table| may be |
|00001000| 6c 65 66 74 20 77 69 74 | 68 20 6d 69 73 6c 65 61 |left wit|h mislea|
|00001010| 64 69 6e 67 0a 09 65 6e | 74 72 69 65 73 2e 20 20 |ding..en|tries. |
|00001020| 4e 6f 74 65 20 74 68 61 | 74 20 70 66 64 69 73 6b |Note tha|t pfdisk|
|00001030| 20 6f 6e 6c 79 20 75 70 | 64 61 74 65 73 20 74 68 | only up|dates th|
|00001040| 65 20 6e 61 6d 65 20 66 | 69 65 6c 64 20 66 6f 72 |e name f|ield for|
|00001050| 20 61 6e 79 0a 09 65 6e | 74 72 79 20 77 68 65 6e | any..en|try when|
|00001060| 20 74 68 65 20 65 6e 74 | 72 79 20 69 73 20 73 65 | the ent|ry is se|
|00001070| 74 20 75 73 69 6e 67 20 | 74 68 65 20 6f 70 74 69 |t using |the opti|
|00001080| 6f 6e 61 6c 20 6e 61 6d | 65 20 66 69 65 6c 64 2c |onal nam|e field,|
|00001090| 20 69 2e 65 3a 0a 0a 09 | 09 70 66 64 69 73 6b 3e | i.e:...|.pfdisk>|
|000010a0| 20 31 20 34 20 30 20 31 | 32 37 20 4d 53 2d 4c 4f | 1 4 0 1|27 MS-LO|
|000010b0| 53 53 0a 0a 09 46 75 72 | 74 68 65 72 6d 6f 72 65 |SS...Fur|thermore|
|000010c0| 2c 20 74 68 65 20 6e 61 | 6d 65 20 73 75 70 70 6c |, the na|me suppl|
|000010d0| 69 65 64 20 61 73 20 74 | 68 65 20 66 6f 75 72 74 |ied as t|he fourt|
|000010e0| 68 20 61 72 67 2e 20 69 | 73 20 74 72 75 6e 63 61 |h arg. i|s trunca|
|000010f0| 74 65 64 0a 09 74 6f 20 | 65 69 67 68 74 20 63 68 |ted..to |eight ch|
|00001100| 61 72 61 63 74 65 72 73 | 2e 20 20 28 53 70 61 63 |aracters|. (Spac|
|00001110| 65 20 69 73 20 74 69 67 | 68 74 20 69 6e 20 74 68 |e is tig|ht in th|
|00001120| 65 20 62 6f 6f 74 20 73 | 65 63 74 6f 72 2e 29 0a |e boot s|ector.).|
|00001130| 0a 09 54 68 65 20 73 69 | 67 6e 61 74 75 72 65 20 |..The si|gnature |
|00001140| 77 68 69 63 68 20 66 6c | 61 67 73 20 74 68 65 20 |which fl|ags the |
|00001150| 70 72 65 73 65 6e 63 65 | 20 6f 66 20 61 20 6e 61 |presence| of a na|
|00001160| 6d 65 20 74 61 62 6c 65 | 20 69 73 0a 09 77 72 69 |me table| is..wri|
|00001170| 74 74 65 6e 20 69 6e 74 | 6f 20 61 6e 79 20 62 6f |tten int|o any bo|
|00001180| 6f 74 20 73 65 63 74 6f | 72 20 65 76 65 72 79 20 |ot secto|r every |
|00001190| 74 69 6d 65 20 74 68 65 | 20 6e 61 6d 65 20 61 72 |time the| name ar|
|000011a0| 67 75 6d 65 6e 74 20 69 | 73 0a 09 67 69 76 65 6e |gument i|s..given|
|000011b0| 20 69 6e 20 61 20 70 61 | 72 74 69 74 69 6f 6e 20 | in a pa|rtition |
|000011c0| 73 65 74 74 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 20 |setting |command |
|000011d0| 28 31 2c 32 2c 33 2c 34 | 29 2e 20 20 54 68 69 73 |(1,2,3,4|). This|
|000011e0| 0a 09 73 69 67 6e 61 74 | 75 72 65 20 6f 63 63 75 |..signat|ure occu|
|000011f0| 70 69 65 73 20 6c 6f 63 | 61 74 69 6f 6e 73 20 30 |pies loc|ations 0|
|00001200| 78 31 41 30 20 2d 2d 20 | 30 78 31 41 44 20 77 68 |x1A0 -- |0x1AD wh|
|00001210| 69 63 68 20 64 6f 65 73 | 20 6e 6f 74 0a 09 63 6c |ich does| not..cl|
|00001220| 6f 62 62 65 72 20 61 6e | 79 74 68 69 6e 67 20 75 |obber an|ything u|
|00001230| 73 65 64 20 62 79 20 61 | 6e 79 20 6f 66 3a 20 55 |sed by a|ny of: U|
|00001240| 4e 49 58 20 6f 72 20 44 | 4f 53 20 62 6f 6f 74 20 |NIX or D|OS boot |
|00001250| 70 72 6f 67 72 61 6d 73 | 2c 0a 09 53 70 65 65 64 |programs|,..Speed|
|00001260| 53 74 6f 72 20 6f 72 20 | 57 65 73 74 65 72 6e 44 |Stor or |WesternD|
|00001270| 69 67 69 74 61 6c 20 41 | 75 74 6f 2d 63 6f 6e 66 |igital A|uto-conf|
|00001280| 69 67 75 72 69 6e 67 20 | 63 6f 6e 74 72 6f 6c 6c |iguring |controll|
|00001290| 65 72 73 2e 0a 0a 09 42 | 6f 6f 74 69 6e 67 20 69 |ers....B|ooting i|
|000012a0| 6e 61 63 74 69 76 65 20 | 70 61 72 74 69 74 69 6f |nactive |partitio|
|000012b0| 6e 73 3a 0a 0a 09 4d 53 | 2d 44 4f 53 20 77 69 6c |ns:...MS|-DOS wil|
|000012c0| 6c 20 62 6f 6f 74 20 66 | 72 6f 6d 20 61 6e 20 69 |l boot f|rom an i|
|000012d0| 6e 61 63 74 69 76 65 20 | 70 61 72 74 69 74 69 6f |nactive |partitio|
|000012e0| 6e 20 77 69 74 68 6f 75 | 74 20 6e 65 65 64 69 6e |n withou|t needin|
|000012f0| 67 0a 09 61 6e 79 20 6d | 6f 64 69 66 69 63 61 74 |g..any m|odificat|
|00001300| 69 6f 6e 73 2e 20 20 55 | 6e 66 6f 72 74 75 6e 61 |ions. U|nfortuna|
|00001310| 74 65 6c 79 2c 20 73 6f | 6d 65 20 73 79 73 74 65 |tely, so|me syste|
|00001320| 6d 73 20 72 65 66 75 73 | 65 20 74 6f 20 62 6f 6f |ms refus|e to boo|
|00001330| 74 0a 09 66 72 6f 6d 20 | 61 20 70 61 72 74 69 74 |t..from |a partit|
|00001340| 69 6f 6e 20 77 68 69 63 | 68 20 69 73 20 6e 6f 74 |ion whic|h is not|
|00001350| 20 6d 61 72 6b 65 64 20 | 61 73 20 61 63 74 69 76 | marked |as activ|
|00001360| 65 2e 0a 0a 09 45 53 49 | 58 20 28 66 72 6f 6d 20 |e....ESI|X (from |
|00001370| 45 76 65 72 65 78 20 53 | 79 73 74 65 6d 73 29 20 |Everex S|ystems) |
|00001380| 53 79 73 2e 56 20 52 65 | 6c 2e 33 2e 32 20 77 69 |Sys.V Re|l.3.2 wi|
|00001390| 6c 6c 20 6e 6f 74 20 28 | 61 73 20 73 68 69 70 70 |ll not (|as shipp|
|000013a0| 65 64 29 0a 09 62 6f 6f | 74 20 75 6e 6c 65 73 73 |ed)..boo|t unless|
|000013b0| 20 69 74 73 20 70 61 72 | 74 69 74 69 6f 6e 20 69 | its par|tition i|
|000013c0| 73 20 6d 61 72 6b 65 64 | 20 61 63 74 69 76 65 2e |s marked| active.|
|000013d0| 20 20 4f 74 68 65 72 20 | 76 65 72 73 69 6f 6e 73 | Other |versions|
|000013e0| 20 6f 66 0a 09 53 79 73 | 2e 56 2f 33 38 36 20 61 | of..Sys|.V/386 a|
|000013f0| 72 65 20 73 69 6d 69 6c | 61 72 20 69 6e 20 74 68 |re simil|ar in th|
|00001400| 69 73 20 72 65 67 61 72 | 64 2e 20 20 54 68 65 20 |is regar|d. The |
|00001410| 65 61 73 69 65 73 74 20 | 73 6f 6c 75 74 69 6f 6e |easiest |solution|
|00001420| 20 69 73 0a 09 74 6f 20 | 6d 61 72 6b 20 74 68 65 | is..to |mark the|
|00001430| 20 55 4e 49 58 20 70 61 | 72 74 69 74 69 6f 6e 20 | UNIX pa|rtition |
|00001440| 61 73 20 61 63 74 69 76 | 65 2c 20 61 6e 64 20 75 |as activ|e, and u|
|00001450| 73 65 20 42 4f 4f 54 4d | 45 4e 55 20 74 6f 0a 09 |se BOOTM|ENU to..|
|00001460| 6f 66 66 65 72 20 79 6f | 75 20 61 20 63 68 6f 69 |offer yo|u a choi|
|00001470| 63 65 20 62 65 74 77 65 | 65 6e 20 44 4f 53 20 61 |ce betwe|en DOS a|
|00001480| 6e 64 20 55 4e 49 58 2e | 0a 0a 09 49 66 20 79 6f |nd UNIX.|...If yo|
|00001490| 75 20 77 69 73 68 2c 20 | 69 74 20 69 73 20 61 6c |u wish, |it is al|
|000014a0| 73 6f 20 70 6f 73 73 69 | 62 6c 65 20 74 6f 20 70 |so possi|ble to p|
|000014b0| 61 74 63 68 20 55 4e 49 | 58 20 73 6f 20 74 68 61 |atch UNI|X so tha|
|000014c0| 74 20 69 74 20 77 69 6c | 6c 0a 09 62 6f 6f 74 20 |t it wil|l..boot |
|000014d0| 77 69 74 68 6f 75 74 20 | 64 65 6d 61 6e 64 69 6e |without |demandin|
|000014e0| 67 20 74 68 61 74 20 69 | 74 73 20 70 61 72 74 69 |g that i|ts parti|
|000014f0| 74 69 6f 6e 20 62 65 20 | 6d 61 72 6b 65 64 20 61 |tion be |marked a|
|00001500| 63 74 69 76 65 2e 0a 09 | 54 68 65 73 65 20 70 61 |ctive...|These pa|
|00001510| 74 63 68 65 73 20 28 63 | 61 6c 6c 65 64 20 22 65 |tches (c|alled "e|
|00001520| 73 69 78 2d 62 6f 6f 74 | 22 29 20 61 72 65 20 61 |six-boot|") are a|
|00001530| 76 61 69 6c 61 62 6c 65 | 20 66 72 6f 6d 20 74 68 |vailable| from th|
|00001540| 65 0a 09 61 75 74 68 6f | 72 2e 20 20 53 65 6e 64 |e..autho|r. Send|
|00001550| 20 45 4d 41 49 4c 20 74 | 6f 20 67 77 72 40 6c 69 | EMAIL t|o gwr@li|
|00001560| 6e 75 73 2e 6d 69 74 72 | 65 2e 6f 72 67 20 69 66 |nus.mitr|e.org if|
|00001570| 20 79 6f 75 20 77 61 6e | 74 20 74 68 65 6d 2e 0a | you wan|t them..|
|00001580| 0a 53 48 41 52 5f 45 4f | 46 0a 69 66 20 74 65 73 |.SHAR_EO|F.if tes|
|00001590| 74 20 33 39 32 33 20 2d | 6e 65 20 22 60 77 63 20 |t 3923 -|ne "`wc |
|000015a0| 2d 63 20 3c 20 27 62 6f | 6f 74 6d 65 6e 75 2e 64 |-c < 'bo|otmenu.d|
|000015b0| 6f 63 27 60 22 0a 74 68 | 65 6e 0a 09 65 63 68 6f |oc'`".th|en..echo|
|000015c0| 20 73 68 61 72 3a 20 65 | 72 72 6f 72 20 74 72 61 | shar: e|rror tra|
|000015d0| 6e 73 6d 69 74 74 69 6e | 67 20 22 27 62 6f 6f 74 |nsmittin|g "'boot|
|000015e0| 6d 65 6e 75 2e 64 6f 63 | 27 22 20 27 28 73 68 6f |menu.doc|'" '(sho|
|000015f0| 75 6c 64 20 68 61 76 65 | 20 62 65 65 6e 20 33 39 |uld have| been 39|
|00001600| 32 33 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |23 chara|cters)'.|
|00001610| 66 69 0a 66 69 20 23 20 | 65 6e 64 20 6f 66 20 6f |fi.fi # |end of o|
|00001620| 76 65 72 77 72 69 74 69 | 6e 67 20 63 68 65 63 6b |verwriti|ng check|
|00001630| 0a 65 63 68 6f 20 73 68 | 61 72 3a 20 65 78 74 72 |.echo sh|ar: extr|
|00001640| 61 63 74 69 6e 67 20 22 | 27 70 66 64 69 73 6b 2e |acting "|'pfdisk.|
|00001650| 64 6f 63 27 22 20 27 28 | 36 37 35 35 20 63 68 61 |doc'" '(|6755 cha|
|00001660| 72 61 63 74 65 72 73 29 | 27 0a 69 66 20 74 65 73 |racters)|'.if tes|
|00001670| 74 20 2d 66 20 27 70 66 | 64 69 73 6b 2e 64 6f 63 |t -f 'pf|disk.doc|
|00001680| 27 0a 74 68 65 6e 0a 09 | 65 63 68 6f 20 73 68 61 |'.then..|echo sha|
|00001690| 72 3a 20 77 69 6c 6c 20 | 6e 6f 74 20 6f 76 65 72 |r: will |not over|
|000016a0| 2d 77 72 69 74 65 20 65 | 78 69 73 74 69 6e 67 20 |-write e|xisting |
|000016b0| 66 69 6c 65 20 22 27 70 | 66 64 69 73 6b 2e 64 6f |file "'p|fdisk.do|
|000016c0| 63 27 22 0a 65 6c 73 65 | 0a 63 61 74 20 3c 3c 20 |c'".else|.cat << |
|000016d0| 5c 53 48 41 52 5f 45 4f | 46 20 3e 20 27 70 66 64 |\SHAR_EO|F > 'pfd|
|000016e0| 69 73 6b 2e 64 6f 63 27 | 0a 0a 0a 0a 0a 0a 50 46 |isk.doc'|......PF|
|000016f0| 44 49 53 4b 28 38 29 09 | 20 20 20 20 20 20 4d 41 |DISK(8).| MA|
|00001700| 49 4e 54 45 4e 41 4e 43 | 45 20 43 4f 4d 4d 41 4e |INTENANC|E COMMAN|
|00001710| 44 53 09 09 50 46 44 49 | 53 4b 28 38 29 0a 0a 0a |DS..PFDI|SK(8)...|
|00001720| 0a 0a 0a 4e 41 4d 45 0a | 09 70 66 64 69 73 6b 20 |...NAME.|.pfdisk |
|00001730| 2d 20 70 61 72 74 69 74 | 69 6f 6e 20 66 69 78 65 |- partit|ion fixe|
|00001740| 64 20 64 69 73 6b 0a 0a | 53 59 4e 4f 50 53 49 53 |d disk..|SYNOPSIS|
|00001750| 0a 09 70 66 64 69 73 6b | 20 64 65 76 69 63 65 0a |..pfdisk| device.|
|00001760| 0a 44 45 53 43 52 49 50 | 54 49 4f 4e 0a 09 70 66 |.DESCRIP|TION..pf|
|00001770| 64 69 73 6b 20 70 61 72 | 74 69 74 69 6f 6e 73 20 |disk par|titions |
|00001780| 74 68 65 20 66 69 78 65 | 64 20 64 69 73 6b 20 69 |the fixe|d disk i|
|00001790| 64 65 6e 74 69 66 69 65 | 64 20 61 73 20 64 65 76 |dentifie|d as dev|
|000017a0| 69 63 65 20 20 69 6e 74 | 6f 20 20 28 61 74 0a 09 |ice int|o (at..|
|000017b0| 6d 6f 73 74 29 20 66 6f | 75 72 20 70 61 72 74 73 |most) fo|ur parts|
|000017c0| 2c 20 65 61 63 68 20 6f | 66 20 77 68 69 63 68 09 |, each o|f which.|
|000017d0| 6d 61 79 20 62 65 20 69 | 6e 64 65 70 65 6e 64 65 |may be i|ndepende|
|000017e0| 6e 74 6c 79 20 6c 6f 61 | 64 65 64 20 77 69 74 68 |ntly loa|ded with|
|000017f0| 0a 09 61 6e 20 6f 70 65 | 72 61 74 69 6e 67 20 73 |..an ope|rating s|
|00001800| 79 73 74 65 6d 2e 20 20 | 54 68 65 20 61 63 74 75 |ystem. |The actu|
|00001810| 61 6c 20 6e 61 6d 65 20 | 6f 66 20 64 65 76 69 63 |al name |of devic|
|00001820| 65 09 64 65 70 65 6e 64 | 73 09 20 6f 6e 20 20 74 |e.depend|s. on t|
|00001830| 68 65 0a 09 6f 70 65 72 | 61 74 69 6e 67 20 20 73 |he..oper|ating s|
|00001840| 79 73 74 65 6d 20 20 69 | 6e 20 20 75 73 65 2e 20 |ystem i|n use. |
|00001850| 20 20 46 6f 72 20 45 53 | 49 58 20 28 53 79 73 74 | For ES|IX (Syst|
|00001860| 65 6d 20 56 2f 33 38 36 | 29 20 74 68 65 20 64 65 |em V/386|) the de|
|00001870| 76 69 63 65 0a 09 6e 61 | 6d 65 20 69 73 09 65 69 |vice..na|me is.ei|
|00001880| 74 68 65 72 20 22 2f 64 | 65 76 2f 72 64 73 6b 2f |ther "/d|ev/rdsk/|
|00001890| 30 73 30 22 20 6f 72 20 | 22 2f 64 65 76 2f 72 64 |0s0" or |"/dev/rd|
|000018a0| 73 6b 2f 31 73 30 22 2e | 20 20 20 46 6f 72 20 20 |sk/1s0".| For |
|000018b0| 4d 69 6e 69 78 2c 0a 09 | 69 74 20 69 73 20 22 2f |Minix,..|it is "/|
|000018c0| 64 65 76 2f 68 64 30 22 | 20 6f 72 20 22 2f 64 65 |dev/hd0"| or "/de|
|000018d0| 76 2f 68 64 35 22 2e 09 | 20 46 6f 72 20 4d 53 2d |v/hd5"..| For MS-|
|000018e0| 44 4f 53 20 69 74 20 69 | 73 20 61 20 73 69 6e 67 |DOS it i|s a sing|
|000018f0| 6c 65 20 64 69 67 69 74 | 0a 09 28 7a 65 72 6f 20 |le digit|..(zero |
|00001900| 6f 72 20 6f 6e 65 29 2e | 0a 0a 09 70 66 64 69 73 |or one).|...pfdis|
|00001910| 6b 20 72 65 61 64 73 20 | 74 68 65 20 68 61 72 64 |k reads |the hard|
|00001920| 20 64 69 73 6b 20 70 61 | 72 74 69 74 69 6f 6e 20 | disk pa|rtition |
|00001930| 74 61 62 6c 65 20 66 72 | 6f 6d 09 20 62 6c 6f 63 |table fr|om. bloc|
|00001940| 6b 09 7a 65 72 6f 20 20 | 6f 66 0a 09 64 65 76 69 |k.zero |of..devi|
|00001950| 63 65 09 69 6e 74 6f 20 | 20 6d 65 6d 6f 72 79 20 |ce.into | memory |
|00001960| 20 61 6e 64 20 61 6c 6c | 6f 77 73 20 74 68 65 20 | and all|ows the |
|00001970| 75 73 65 72 20 74 6f 20 | 65 78 61 6d 69 6e 65 2c |user to |examine,|
|00001980| 20 6d 6f 64 69 66 79 2c | 20 6f 72 0a 09 73 61 76 | modify,| or..sav|
|00001990| 65 20 74 68 65 20 70 61 | 72 74 69 74 69 6f 6e 20 |e the pa|rtition |
|000019a0| 74 61 62 6c 65 2e 20 20 | 41 20 72 65 67 75 6c 61 |table. |A regula|
|000019b0| 72 20 66 69 6c 65 20 6d | 61 79 20 62 65 20 75 73 |r file m|ay be us|
|000019c0| 65 64 20 69 6e 73 74 65 | 61 64 20 6f 66 0a 09 61 |ed inste|ad of..a|
|000019d0| 20 20 72 65 61 6c 09 20 | 64 65 76 69 63 65 09 66 | real. |device.f|
|000019e0| 6f 72 20 74 65 73 74 69 | 6e 67 20 70 75 72 70 6f |or testi|ng purpo|
|000019f0| 73 65 73 2c 20 74 68 6f | 75 67 68 20 74 68 65 20 |ses, tho|ugh the |
|00001a00| 64 65 76 69 63 65 09 67 | 65 6f 6d 65 74 72 79 0a |device.g|eometry.|
|00001a10| 09 6d 75 73 74 20 62 65 | 09 73 70 65 63 69 66 69 |.must be|.specifi|
|00001a20| 65 64 20 6d 61 6e 75 61 | 6c 6c 79 2c 20 61 6e 64 |ed manua|lly, and|
|00001a30| 09 73 6f 6d 65 20 20 73 | 79 73 74 65 6d 73 20 20 |.some s|ystems |
|00001a40| 77 69 6c 6c 20 20 72 65 | 71 75 72 69 72 65 20 20 |will re|qurire |
|00001a50| 61 0a 09 66 69 6c 65 2d | 6e 61 6d 65 20 61 72 67 |a..file-|name arg|
|00001a60| 75 6d 65 6e 74 20 77 69 | 74 68 09 74 68 65 20 22 |ument wi|th.the "|
|00001a70| 52 22 09 61 6e 64 20 22 | 57 22 09 63 6f 6d 6d 61 |R".and "|W".comma|
|00001a80| 6e 64 73 20 28 44 4f 53 | 2c 20 45 53 49 58 29 2e |nds (DOS|, ESIX).|
|00001a90| 0a 0a 09 54 68 65 20 70 | 61 72 74 69 74 69 6f 6e |...The p|artition|
|00001aa0| 20 74 61 62 6c 65 20 6f | 6e 20 64 65 76 69 63 65 | table o|n device|
|00001ab0| 20 69 73 20 4e 4f 54 20 | 6d 6f 64 69 66 69 65 64 | is NOT |modified|
|00001ac0| 20 75 6e 6c 65 73 73 20 | 20 74 68 65 20 20 77 72 | unless | the wr|
|00001ad0| 69 74 65 0a 09 63 6f 6d | 6d 61 6e 64 09 28 57 29 |ite..com|mand.(W)|
|00001ae0| 20 69 73 20 75 73 65 64 | 20 77 69 74 68 20 6e 6f | is used| with no|
|00001af0| 20 61 72 67 75 6d 65 6e | 74 2e 0a 0a 55 53 41 47 | argumen|t...USAG|
|00001b00| 45 0a 20 20 43 6f 6d 6d | 61 6e 64 73 0a 09 41 6c |E. Comm|ands..Al|
|00001b10| 6c 20 70 66 64 69 73 6b | 20 63 6f 6d 6d 61 6e 64 |l pfdisk| command|
|00001b20| 73 20 20 63 6f 6e 73 69 | 73 74 20 20 6f 66 20 20 |s consi|st of |
|00001b30| 61 20 20 63 6f 6d 6d 61 | 6e 64 20 20 77 6f 72 64 |a comma|nd word|
|00001b40| 20 20 66 6f 6c 6c 6f 77 | 65 64 20 20 62 79 0a 09 | follow|ed by..|
|00001b50| 6f 70 74 69 6f 6e 61 6c | 20 20 62 6c 61 6e 6b 2d |optional| blank-|
|00001b60| 73 65 70 61 72 61 74 65 | 64 20 63 6f 6d 6d 61 6e |separate|d comman|
|00001b70| 64 20 61 72 67 75 6d 65 | 6e 74 73 2e 20 20 4e 6f |d argume|nts. No|
|00001b80| 74 65 20 74 68 61 74 09 | 6f 6e 6c 79 20 74 68 65 |te that.|only the|
|00001b90| 0a 09 66 69 72 73 74 20 | 6c 65 74 74 65 72 20 6f |..first |letter o|
|00001ba0| 66 09 61 20 63 6f 6d 6d | 61 6e 64 20 77 6f 72 64 |f.a comm|and word|
|00001bb0| 20 69 73 20 73 69 67 6e | 69 66 69 63 61 6e 74 20 | is sign|ificant |
|00001bc0| 28 65 78 63 65 70 74 20 | 20 66 6f 72 20 20 22 77 |(except | for "w|
|00001bd0| 71 22 0a 09 61 6e 64 20 | 20 22 71 21 22 29 2e 20 |q"..and | "q!"). |
|00001be0| 20 41 6c 6c 20 63 6f 6d | 6d 61 6e 64 20 6c 65 74 | All com|mand let|
|00001bf0| 74 65 72 73 20 61 72 65 | 20 61 63 63 65 70 74 65 |ters are| accepte|
|00001c00| 64 20 69 6e 20 65 69 74 | 68 65 72 09 75 70 70 65 |d in eit|her.uppe|
|00001c10| 72 20 6f 72 0a 09 6c 6f | 77 65 72 20 63 61 73 65 |r or..lo|wer case|
|00001c20| 2e 20 20 4e 75 6d 65 72 | 69 63 20 61 72 67 75 6d |. Numer|ic argum|
|00001c30| 65 6e 74 73 20 61 72 65 | 20 20 73 70 65 63 69 66 |ents are| specif|
|00001c40| 69 65 64 20 20 75 73 69 | 6e 67 20 20 43 09 20 73 |ied usi|ng C. s|
|00001c50| 79 6e 74 61 78 2e 0a 09 | 45 78 74 72 61 20 61 72 |yntax...|Extra ar|
|00001c60| 67 75 6d 65 6e 74 73 09 | 61 72 65 20 73 69 6c 65 |guments.|are sile|
|00001c70| 6e 74 6c 79 20 69 67 6e | 6f 72 65 64 2e 0a 0a 09 |ntly ign|ored....|
|00001c80| 54 68 65 20 63 6f 6d 6d | 61 6e 64 73 20 61 72 65 |The comm|ands are|
|00001c90| 3a 0a 0a 09 3f 09 50 72 | 69 6e 74 73 20 61 20 63 |:...?.Pr|ints a c|
|00001ca0| 6f 6d 6d 61 6e 64 20 73 | 75 6d 6d 61 72 79 20 28 |ommand s|ummary (|
|00001cb0| 68 65 6c 70 29 2e 0a 0a | 09 31 20 73 79 73 5f 69 |help)...|.1 sys_i|
|00001cc0| 64 20 66 69 72 73 74 20 | 6c 61 73 74 20 73 79 73 |d first |last sys|
|00001cd0| 5f 6e 61 6d 65 0a 09 09 | 53 65 74 20 74 68 65 09 |_name...|Set the.|
|00001ce0| 70 61 72 74 69 74 69 6f | 6e 20 20 74 61 62 6c 65 |partitio|n table|
|00001cf0| 20 20 65 6e 74 72 79 09 | 20 66 6f 72 20 20 70 61 | entry.| for pa|
|00001d00| 72 74 20 20 6f 6e 65 2c | 20 20 75 73 69 6e 67 3a |rt one,| using:|
|00001d10| 0a 09 09 73 79 73 5f 69 | 64 09 61 73 20 20 69 74 |...sys_i|d.as it|
|00001d20| 73 09 73 79 73 74 65 6d | 20 49 44 20 63 6f 64 65 |s.system| ID code|
|00001d30| 2c 09 66 69 72 73 74 20 | 61 73 20 74 68 65 20 6c |,.first |as the l|
|00001d40| 6f 77 65 73 74 20 6e 75 | 6d 2d 0a 09 09 62 65 72 |owest nu|m-...ber|
|00001d50| 65 64 20 63 79 6c 69 6e | 64 65 72 20 69 74 20 75 |ed cylin|der it u|
|00001d60| 73 65 73 2c 09 6c 61 73 | 74 20 20 61 73 20 20 74 |ses,.las|t as t|
|00001d70| 68 65 20 20 68 69 67 68 | 65 73 74 09 6e 75 6d 62 |he high|est.numb|
|00001d80| 65 72 65 64 0a 09 09 63 | 79 6c 69 6e 64 65 72 20 |ered...c|ylinder |
|00001d90| 20 69 74 20 75 73 65 73 | 2c 20 61 6e 64 20 73 79 | it uses|, and sy|
|00001da0| 73 5f 6e 61 6d 65 09 28 | 6f 70 74 69 6f 6e 61 6c |s_name.(|optional|
|00001db0| 29 20 61 73 20 74 68 65 | 20 73 79 73 74 65 6d 0a |) as the| system.|
|00001dc0| 09 09 6e 61 6d 65 20 28 | 69 6e 20 74 68 65 20 6d |..name (|in the m|
|00001dd0| 65 6e 75 20 6e 61 6d 65 | 20 74 61 62 6c 65 29 2e |enu name| table).|
|00001de0| 0a 0a 09 32 7c 33 7c 34 | 20 73 79 73 2d 69 64 20 |...2|3|4| sys-id |
|00001df0| 66 69 72 73 74 20 6c 61 | 73 74 09 73 79 73 2d 6e |first la|st.sys-n|
|00001e00| 61 6d 65 0a 09 09 53 69 | 6d 69 6c 61 72 09 74 6f |ame...Si|milar.to|
|00001e10| 20 31 20 62 75 74 20 73 | 65 74 73 20 70 61 72 74 | 1 but s|ets part|
|00001e20| 69 74 69 6f 6e 09 20 74 | 77 6f 2c 20 20 74 68 72 |ition. t|wo, thr|
|00001e30| 65 65 2c 20 20 6f 72 20 | 20 66 6f 75 72 2c 0a 09 |ee, or | four,..|
|00001e40| 09 72 65 73 70 65 63 74 | 69 76 65 6c 79 2e 0a 0a |.respect|ively...|
|00001e50| 0a 0a 0a 0a 52 65 6c 65 | 61 73 65 09 31 2e 33 09 |....Rele|ase.1.3.|
|00001e60| 20 20 20 20 20 20 4c 61 | 73 74 20 63 68 61 6e 67 | La|st chang|
|00001e70| 65 3a 20 4f 63 74 20 31 | 39 39 30 09 09 09 31 0a |e: Oct 1|990...1.|
|00001e80| 0a 0a 0a 0a 0a 0a 50 46 | 44 49 53 4b 28 38 29 09 |......PF|DISK(8).|
|00001e90| 20 20 20 20 20 20 4d 41 | 49 4e 54 45 4e 41 4e 43 | MA|INTENANC|
|00001ea0| 45 20 43 4f 4d 4d 41 4e | 44 53 09 09 50 46 44 49 |E COMMAN|DS..PFDI|
|00001eb0| 53 4b 28 38 29 0a 0a 0a | 0a 0a 0a 09 41 20 6e 75 |SK(8)...|....A nu|
|00001ec0| 6d 62 65 72 0a 09 09 4d | 61 72 6b 20 70 61 72 74 |mber...M|ark part|
|00001ed0| 69 74 69 6f 6e 20 6e 75 | 6d 62 65 72 20 61 73 20 |ition nu|mber as |
|00001ee0| 61 63 74 69 76 65 09 28 | 73 6f 20 69 74 20 77 69 |active.(|so it wi|
|00001ef0| 6c 6c 20 62 65 20 75 73 | 65 64 20 20 66 6f 72 0a |ll be us|ed for.|
|00001f00| 09 09 62 6f 6f 74 69 6e | 67 29 2e 20 20 20 49 66 |..bootin|g). If|
|00001f10| 09 6e 75 6d 62 65 72 09 | 69 73 20 20 7a 65 72 6f |.number.|is zero|
|00001f20| 2c 20 20 6e 6f 20 20 70 | 61 72 74 69 74 69 6f 6e |, no p|artition|
|00001f30| 20 77 69 6c 6c 20 62 65 | 0a 09 09 61 63 74 69 76 | will be|...activ|
|00001f40| 65 2e 0a 0a 09 47 20 63 | 79 6c 69 6e 64 65 72 73 |e....G c|ylinders|
|00001f50| 20 68 65 61 64 73 20 73 | 65 63 74 6f 72 73 0a 09 | heads s|ectors..|
|00001f60| 09 49 6e 66 6f 72 6d 20 | 70 66 64 69 73 6b 20 77 |.Inform |pfdisk w|
|00001f70| 68 61 74 20 74 68 65 20 | 67 65 6f 6d 65 74 72 79 |hat the |geometry|
|00001f80| 09 6f 66 20 74 68 65 20 | 64 65 76 69 63 65 20 69 |.of the |device i|
|00001f90| 73 2e 0a 0a 09 49 09 50 | 72 69 6e 74 20 61 09 73 |s....I.P|rint a.s|
|00001fa0| 75 6d 6d 61 72 79 09 6f | 66 20 74 68 65 20 6b 6e |ummary.o|f the kn|
|00001fb0| 6f 77 6e 20 49 44 09 63 | 6f 64 65 73 2e 0a 0a 09 |own ID.c|odes....|
|00001fc0| 4c 09 4c 69 73 74 20 74 | 68 65 20 70 61 72 74 69 |L.List t|he parti|
|00001fd0| 74 69 6f 6e 20 74 61 62 | 6c 65 2e 20 20 53 65 65 |tion tab|le. See|
|00001fe0| 20 4f 75 74 70 75 74 20 | 46 6f 72 6d 61 74 20 62 | Output |Format b|
|00001ff0| 65 6c 6f 77 2e 0a 0a 09 | 51 09 51 75 69 74 20 77 |elow....|Q.Quit w|
|00002000| 69 74 68 6f 75 74 20 73 | 61 76 69 6e 67 2e 20 20 |ithout s|aving. |
|00002010| 49 66 20 74 68 65 20 6d | 65 6d 6f 72 79 20 63 6f |If the m|emory co|
|00002020| 70 79 20 6f 66 20 20 74 | 68 65 20 20 70 61 72 74 |py of t|he part|
|00002030| 69 2d 0a 09 09 74 69 6f | 6e 20 20 74 61 62 6c 65 |i-...tio|n table|
|00002040| 20 20 77 61 73 20 20 6d | 6f 64 69 66 69 65 64 2c | was m|odified,|
|00002050| 20 61 20 77 61 72 6e 69 | 6e 67 20 77 69 6c 6c 20 | a warni|ng will |
|00002060| 62 65 20 69 73 73 75 65 | 64 20 61 6e 64 0a 09 09 |be issue|d and...|
|00002070| 74 68 65 20 63 6f 6d 6d | 61 6e 64 20 69 67 6e 6f |the comm|and igno|
|00002080| 72 65 64 2e 0a 0a 09 51 | 21 09 51 75 69 74 2c 20 |red....Q|!.Quit, |
|00002090| 65 76 65 6e 20 69 66 20 | 74 68 65 20 6d 65 6d 6f |even if |the memo|
|000020a0| 72 79 20 63 6f 70 79 20 | 6f 66 20 74 68 65 20 70 |ry copy |of the p|
|000020b0| 61 72 74 69 74 69 6f 6e | 20 74 61 62 6c 65 20 77 |artition| table w|
|000020c0| 61 73 0a 09 09 6e 6f 74 | 20 73 61 76 65 64 2e 0a |as...not| saved..|
|000020d0| 0a 09 52 20 66 69 6c 65 | 2d 6e 61 6d 65 0a 09 09 |..R file|-name...|
|000020e0| 52 65 61 64 20 62 6f 6f | 74 20 73 65 63 74 6f 72 |Read boo|t sector|
|000020f0| 20 66 72 6f 6d 20 20 66 | 69 6c 65 2d 6e 61 6d 65 | from f|ile-name|
|00002100| 20 20 28 69 66 20 20 67 | 69 76 65 6e 29 20 20 6f | (if g|iven) o|
|00002110| 74 68 65 72 77 69 73 65 | 0a 09 09 72 65 61 64 20 |therwise|...read |
|00002120| 66 72 6f 6d 20 64 65 76 | 69 63 65 2e 0a 0a 09 57 |from dev|ice....W|
|00002130| 20 66 69 6c 65 2d 6e 61 | 6d 65 0a 09 09 57 72 69 | file-na|me...Wri|
|00002140| 74 65 20 62 6f 6f 74 20 | 73 65 63 74 6f 72 20 74 |te boot |sector t|
|00002150| 6f 20 20 66 69 6c 65 2d | 6e 61 6d 65 2e 20 20 28 |o file-|name. (|
|00002160| 69 66 20 20 67 69 76 65 | 6e 29 20 20 6f 74 68 65 |if give|n) othe|
|00002170| 72 77 69 73 65 0a 09 09 | 77 72 69 74 65 20 74 6f |rwise...|write to|
|00002180| 20 64 65 76 69 63 65 2e | 0a 0a 09 57 51 09 53 61 | device.|...WQ.Sa|
|00002190| 6d 65 20 61 73 09 22 77 | 72 69 74 65 22 09 66 6f |me as."w|rite".fo|
|000021a0| 6c 6c 6f 77 65 64 20 62 | 79 20 22 71 75 69 74 22 |llowed b|y "quit"|
|000021b0| 2e 0a 0a 09 23 09 54 68 | 69 73 20 6c 69 6e 65 20 |....#.Th|is line |
|000021c0| 69 73 20 61 20 63 6f 6d | 6d 65 6e 74 20 28 74 6f |is a com|ment (to|
|000021d0| 20 62 65 20 69 67 6e 6f | 72 65 64 29 2e 0a 0a 20 | be igno|red)... |
|000021e0| 20 4f 75 74 70 75 74 20 | 46 6f 72 6d 61 74 0a 09 | Output |Format..|
|000021f0| 48 65 72 65 20 69 73 09 | 61 20 73 61 6d 70 6c 65 |Here is.|a sample|
|00002200| 20 6f 66 20 74 68 65 09 | 6f 75 74 70 75 74 20 66 | of the.|output f|
|00002210| 72 6f 6d 20 74 68 65 09 | 4c 20 63 6f 6d 6d 61 6e |rom the.|L comman|
|00002220| 64 3a 0a 0a 09 23 20 50 | 61 72 74 69 74 69 6f 6e |d:...# P|artition|
|00002230| 20 74 61 62 6c 65 20 6f | 6e 20 64 65 76 69 63 65 | table o|n device|
|00002240| 3a 20 2f 64 65 76 2f 72 | 64 73 6b 2f 30 73 30 0a |: /dev/r|dsk/0s0.|
|00002250| 09 67 65 6f 6d 65 74 72 | 79 20 31 32 32 32 20 31 |.geometr|y 1222 1|
|00002260| 35 20 33 34 20 28 63 79 | 6c 73 20 68 65 61 64 73 |5 34 (cy|ls heads|
|00002270| 09 73 65 63 74 6f 72 73 | 29 0a 09 23 20 20 49 44 |.sectors|)..# ID|
|00002280| 20 20 46 69 72 73 74 28 | 63 79 6c 29 20 20 4c 61 | First(|cyl) La|
|00002290| 73 74 28 63 79 6c 29 20 | 20 4e 61 6d 65 20 20 20 |st(cyl) | Name |
|000022a0| 20 20 23 20 73 74 61 72 | 74 2c 09 6c 65 6e 67 74 | # star|t,.lengt|
|000022b0| 68 20 28 73 65 63 74 6f | 72 73 29 0a 09 31 20 20 |h (secto|rs)..1 |
|000022c0| 20 34 09 20 20 20 30 09 | 20 20 20 20 31 32 37 09 | 4. 0.| 127.|
|000022d0| 20 20 20 20 20 20 4d 53 | 2d 4c 4f 53 53 20 20 23 | MS|-LOSS #|
|000022e0| 20 33 34 2c 20 36 35 32 | 34 36 0a 09 32 20 31 32 | 34, 652|46..2 12|
|000022f0| 39 09 20 31 32 38 09 20 | 20 20 20 32 35 35 09 20 |9. 128. | 255. |
|00002300| 20 20 20 20 20 4d 69 6e | 69 78 20 20 20 20 23 20 | Min|ix # |
|00002310| 36 35 32 38 30 2c 09 36 | 35 32 38 30 0a 09 33 20 |65280,.6|5280..3 |
|00002320| 20 20 30 09 20 20 20 30 | 09 20 20 20 20 20 20 30 | 0. 0|. 0|
|00002330| 09 09 20 20 20 20 20 20 | 20 23 20 30 2c 20 30 0a |.. | # 0, 0.|
|00002340| 09 34 20 20 39 39 09 20 | 32 35 36 09 20 20 20 31 |.4 99. |256. 1|
|00002350| 32 32 30 09 20 20 20 20 | 20 20 45 53 49 58 20 20 |220. | ESIX |
|00002360| 20 20 20 23 20 31 33 30 | 35 36 30 2c 20 34 39 32 | # 130|560, 492|
|00002370| 31 35 30 0a 09 23 20 6e | 6f 74 65 3a 09 20 6c 61 |150..# n|ote:. la|
|00002380| 73 74 28 34 29 3a 20 70 | 68 79 73 3d 28 31 30 32 |st(4): p|hys=(102|
|00002390| 33 2c 31 34 2c 33 34 29 | 20 6c 6f 67 69 63 61 6c |3,14,34)| logical|
|000023a0| 3d 28 31 32 32 30 2c 31 | 34 2c 33 34 29 0a 09 61 |=(1220,1|4,34)..a|
|000023b0| 63 74 69 76 65 3a 09 34 | 0a 0a 09 54 68 69 73 20 |ctive:.4|...This |
|000023c0| 6f 75 74 70 75 74 20 66 | 6f 72 6d 61 74 20 69 73 |output f|ormat is|
|000023d0| 20 63 61 72 65 66 75 6c | 6c 79 09 63 6f 6e 73 74 | careful|ly.const|
|000023e0| 72 75 63 74 65 64 20 73 | 6f 20 74 68 61 74 20 20 |ructed s|o that |
|000023f0| 69 74 09 20 6d 61 79 20 | 20 62 65 0a 09 73 61 76 |it. may | be..sav|
|00002400| 65 64 20 69 6e 20 61 20 | 66 69 6c 65 09 20 28 62 |ed in a |file. (b|
|00002410| 79 20 72 65 64 69 72 65 | 63 74 69 6e 67 20 73 74 |y redire|cting st|
|00002420| 61 6e 64 61 72 64 20 6f | 75 74 70 75 74 29 20 61 |andard o|utput) a|
|00002430| 6e 64 20 6c 61 74 65 72 | 20 75 73 65 64 0a 09 61 |nd later| used..a|
|00002440| 73 20 69 6e 70 75 74 20 | 28 62 79 20 72 65 64 69 |s input |(by redi|
|00002450| 72 65 63 74 69 6e 67 20 | 73 74 61 6e 64 61 72 64 |recting |standard|
|00002460| 20 69 6e 70 75 74 29 2e | 20 20 4f 6e 20 61 09 55 | input).| On a.U|
|00002470| 4e 49 58 20 73 79 73 74 | 65 6d 2c 20 6f 6e 65 0a |NIX syst|em, one.|
|00002480| 09 63 61 6e 20 73 61 76 | 65 20 74 68 69 73 20 6f |.can sav|e this o|
|00002490| 75 74 70 75 74 20 75 73 | 69 6e 67 20 74 68 65 20 |utput us|ing the |
|000024a0| 63 6f 6d 6d 61 6e 64 3a | 0a 0a 0a 0a 0a 0a 52 65 |command:|......Re|
|000024b0| 6c 65 61 73 65 09 31 2e | 33 09 20 20 20 20 20 20 |lease.1.|3. |
|000024c0| 4c 61 73 74 20 63 68 61 | 6e 67 65 3a 20 4f 63 74 |Last cha|nge: Oct|
|000024d0| 20 31 39 39 30 09 09 09 | 32 0a 0a 0a 0a 0a 0a 0a | 1990...|2.......|
|000024e0| 50 46 44 49 53 4b 28 38 | 29 09 20 20 20 20 20 20 |PFDISK(8|). |
|000024f0| 4d 41 49 4e 54 45 4e 41 | 4e 43 45 20 43 4f 4d 4d |MAINTENA|NCE COMM|
|00002500| 41 4e 44 53 09 09 50 46 | 44 49 53 4b 28 38 29 0a |ANDS..PF|DISK(8).|
|00002510| 0a 0a 0a 0a 0a 09 09 28 | 65 63 68 6f 20 4c 29 20 |.......(|echo L) |
|00002520| 7c 20 70 66 64 69 73 6b | 20 64 65 76 69 63 65 2d || pfdisk| device-|
|00002530| 6e 61 6d 65 20 3e 09 73 | 61 76 65 2d 66 69 6c 65 |name >.s|ave-file|
|00002540| 0a 0a 09 73 61 76 65 2d | 66 69 6c 65 20 69 73 20 |...save-|file is |
|00002550| 61 20 63 6f 6d 70 6c 65 | 74 65 09 72 65 63 6f 72 |a comple|te.recor|
|00002560| 64 20 6f 66 20 74 68 65 | 20 20 70 61 72 74 69 74 |d of the| partit|
|00002570| 69 6f 6e 20 20 74 61 62 | 6c 65 2e 20 20 20 4f 6e |ion tab|le. On|
|00002580| 20 20 61 0a 09 55 4e 49 | 58 20 73 79 73 74 65 6d | a..UNI|X system|
|00002590| 2c 20 6f 6e 65 20 63 6f | 75 6c 64 20 75 73 65 20 |, one co|uld use |
|000025a0| 73 61 76 65 2d 66 69 6c | 65 20 74 6f 09 72 65 2d |save-fil|e to.re-|
|000025b0| 69 6e 69 74 69 61 6c 69 | 7a 65 20 74 68 65 20 70 |initiali|ze the p|
|000025c0| 61 72 74 69 2d 0a 09 74 | 69 6f 6e 20 74 61 62 6c |arti-..t|ion tabl|
|000025d0| 65 20 75 73 69 6e 67 20 | 74 68 65 20 63 6f 6d 6d |e using |the comm|
|000025e0| 61 6e 64 3a 0a 0a 09 09 | 28 63 61 74 20 73 61 76 |and:....|(cat sav|
|000025f0| 65 2d 66 69 6c 65 20 3b | 20 65 63 68 6f 20 77 71 |e-file ;| echo wq|
|00002600| 29 20 7c 20 70 66 64 69 | 73 6b 20 64 65 76 69 63 |) | pfdi|sk devic|
|00002610| 65 2d 6e 61 6d 65 0a 0a | 09 43 6f 6e 73 69 73 74 |e-name..|.Consist|
|00002620| 65 6e 63 79 20 6f 66 20 | 65 61 63 68 20 70 61 72 |ency of |each par|
|00002630| 74 69 74 69 6f 6e 20 74 | 61 62 6c 65 20 65 6e 74 |tition t|able ent|
|00002640| 72 79 20 69 73 20 63 68 | 65 63 6b 65 64 20 20 77 |ry is ch|ecked w|
|00002650| 68 69 6c 65 20 20 74 68 | 65 0a 09 74 61 62 6c 65 |hile th|e..table|
|00002660| 20 69 73 20 6c 69 73 74 | 65 64 2e 20 20 41 6e 79 | is list|ed. Any|
|00002670| 20 69 6e 63 6f 6e 73 69 | 73 74 65 6e 63 69 65 73 | inconsi|stencies|
|00002680| 20 64 69 73 63 6f 76 65 | 72 65 64 20 61 72 65 20 | discove|red are |
|00002690| 72 65 70 6f 72 74 65 64 | 20 69 6e 0a 09 61 20 63 |reported| in..a c|
|000026a0| 6f 6d 6d 65 6e 74 61 72 | 79 20 6e 6f 74 65 20 61 |ommentar|y note a|
|000026b0| 73 20 73 68 6f 77 6e 20 | 61 62 6f 76 65 2e 0a 0a |s shown |above...|
|000026c0| 20 20 50 68 79 73 69 63 | 61 6c 20 76 73 2e 20 4c | Physic|al vs. L|
|000026d0| 6f 67 69 63 61 6c 0a 09 | 45 61 63 68 20 70 61 72 |ogical..|Each par|
|000026e0| 74 69 74 69 6f 6e 20 74 | 61 62 6c 65 20 65 6e 74 |tition t|able ent|
|000026f0| 72 79 20 68 61 73 20 62 | 6f 74 68 20 22 70 68 79 |ry has b|oth "phy|
|00002700| 73 69 63 61 6c 22 20 61 | 6e 64 20 20 61 20 20 22 |sical" a|nd a "|
|00002710| 6c 6f 67 69 63 61 6c 22 | 0a 09 66 69 65 6c 64 73 |logical"|..fields|
|00002720| 2e 09 20 20 54 68 65 20 | 20 70 68 79 73 69 63 61 |.. The | physica|
|00002730| 6c 09 20 66 69 65 6c 64 | 73 09 20 73 70 65 63 69 |l. field|s. speci|
|00002740| 66 79 20 20 74 68 65 20 | 6c 6f 77 65 73 74 20 61 |fy the |lowest a|
|00002750| 6e 64 20 68 69 67 68 65 | 73 74 0a 09 63 79 6c 69 |nd highe|st..cyli|
|00002760| 6e 64 65 72 2c 68 65 61 | 64 2c 73 65 63 74 6f 72 |nder,hea|d,sector|
|00002770| 20 63 6f 6d 62 69 6e 61 | 74 69 6f 6e 73 20 74 6f | combina|tions to|
|00002780| 20 62 65 09 75 73 65 64 | 20 69 6e 09 74 68 61 74 | be.used| in.that|
|00002790| 20 20 70 61 72 74 69 74 | 69 6f 6e 2e 0a 09 54 68 | partit|ion...Th|
|000027a0| 65 20 20 6c 6f 67 69 63 | 61 6c 20 20 73 74 61 72 |e logic|al star|
|000027b0| 74 20 20 66 69 65 6c 64 | 20 68 61 73 20 74 68 65 |t field| has the|
|000027c0| 20 74 6f 74 61 6c 20 6e | 75 6d 62 65 72 09 6f 66 | total n|umber.of|
|000027d0| 20 73 65 63 74 6f 72 73 | 20 77 68 69 63 68 0a 09 | sectors| which..|
|000027e0| 70 72 65 63 65 64 65 09 | 74 68 69 73 20 70 61 72 |precede.|this par|
|000027f0| 74 69 74 69 6f 6e 2c 09 | 61 6e 64 20 74 68 65 09 |tition,.|and the.|
|00002800| 6c 6f 67 69 63 61 6c 09 | 20 6c 65 6e 67 74 68 09 |logical.| length.|
|00002810| 20 66 69 65 6c 64 09 68 | 61 73 20 20 74 68 65 0a | field.h|as the.|
|00002820| 09 74 6f 74 61 6c 20 20 | 6e 75 6d 62 65 72 20 20 |.total |number |
|00002830| 6f 66 20 20 73 65 63 74 | 6f 72 73 20 20 63 6f 6e |of sect|ors con|
|00002840| 74 61 69 6e 65 64 20 20 | 69 6e 20 74 68 69 73 20 |tained |in this |
|00002850| 70 61 72 74 69 74 69 6f | 6e 2e 20 20 54 68 65 73 |partitio|n. Thes|
|00002860| 65 0a 09 66 69 65 6c 64 | 73 20 73 68 6f 75 6c 64 |e..field|s should|
|00002870| 20 62 65 20 73 65 6c 66 | 20 63 6f 6e 73 69 73 74 | be self| consist|
|00002880| 65 6e 74 20 75 6e 6c 65 | 73 73 09 74 68 65 20 64 |ent unle|ss.the d|
|00002890| 69 73 6b 20 68 61 73 20 | 20 6d 6f 72 65 20 20 74 |isk has | more t|
|000028a0| 68 61 6e 0a 09 31 30 32 | 34 20 63 79 6c 69 6e 64 |han..102|4 cylind|
|000028b0| 65 72 73 2e 0a 0a 09 54 | 68 65 20 70 68 79 73 69 |ers....T|he physi|
|000028c0| 63 61 6c 20 63 79 6c 69 | 6e 64 65 72 20 66 69 65 |cal cyli|nder fie|
|000028d0| 6c 64 73 20 61 72 65 20 | 6f 6e 6c 79 20 74 65 6e |lds are |only ten|
|000028e0| 2d 62 69 74 73 20 77 69 | 64 65 20 73 6f 20 74 68 |-bits wi|de so th|
|000028f0| 65 20 20 63 6f 6e 2d 0a | 09 74 65 6e 74 73 20 61 |e con-.|.tents a|
|00002900| 72 65 20 6c 69 6d 69 74 | 65 64 20 74 6f 20 31 30 |re limit|ed to 10|
|00002910| 32 33 2e 20 54 68 65 20 | 6c 6f 67 69 63 61 6c 20 |23. The |logical |
|00002920| 73 65 63 74 6f 72 20 66 | 69 65 6c 64 73 20 61 72 |sector f|ields ar|
|00002930| 65 20 33 32 20 62 69 74 | 73 0a 09 77 69 64 65 20 |e 32 bit|s..wide |
|00002940| 61 6e 64 20 61 6c 77 61 | 79 73 09 73 68 6f 77 20 |and alwa|ys.show |
|00002950| 74 68 65 20 74 72 75 65 | 20 6c 6f 67 69 63 61 6c |the true| logical|
|00002960| 20 62 65 67 69 6e 6e 69 | 6e 67 09 20 61 6e 64 20 | beginni|ng. and |
|00002970| 20 6c 65 6e 67 74 68 20 | 20 6f 66 0a 09 74 68 65 | length | of..the|
|00002980| 20 70 61 72 74 69 74 69 | 6f 6e 2e 09 47 65 6e 65 | partiti|on..Gene|
|00002990| 72 61 6c 6c 79 2c 20 74 | 68 65 20 70 68 79 73 69 |rally, t|he physi|
|000029a0| 63 61 6c 09 73 74 61 72 | 74 20 66 69 65 6c 64 20 |cal.star|t field |
|000029b0| 69 73 20 75 73 65 64 20 | 6f 6e 6c 79 0a 09 74 6f |is used |only..to|
|000029c0| 20 6c 6f 63 61 74 65 20 | 74 68 65 20 73 65 63 6f | locate |the seco|
|000029d0| 6e 64 61 72 79 09 62 6f | 6f 74 20 73 65 63 74 6f |ndary.bo|ot secto|
|000029e0| 72 2c 20 61 6e 64 20 74 | 68 65 20 6c 6f 67 69 63 |r, and t|he logic|
|000029f0| 61 6c 20 20 73 74 61 72 | 74 20 20 61 6e 64 0a 09 |al star|t and..|
|00002a00| 6c 65 6e 67 74 68 20 66 | 69 65 6c 64 73 20 61 72 |length f|ields ar|
|00002a10| 65 20 75 73 65 64 20 74 | 6f 20 61 63 74 75 61 6c |e used t|o actual|
|00002a20| 6c 79 20 64 65 6c 69 6d | 69 74 20 74 68 65 20 70 |ly delim|it the p|
|00002a30| 61 72 74 69 74 69 6f 6e | 20 75 73 65 64 20 62 79 |artition| used by|
|00002a40| 0a 09 61 20 70 61 72 74 | 69 63 75 6c 61 72 20 73 |..a part|icular s|
|00002a50| 79 73 74 65 6d 2e 0a 0a | 20 20 50 61 72 74 69 74 |ystem...| Partit|
|00002a60| 69 6f 6e 20 4e 61 6d 65 | 73 0a 09 54 68 65 20 4e |ion Name|s..The N|
|00002a70| 61 6d 65 20 66 69 65 6c | 64 20 69 6e 20 74 68 65 |ame fiel|d in the|
|00002a80| 20 70 61 72 74 69 74 69 | 6f 6e 09 74 61 62 6c 65 | partiti|on.table|
|00002a90| 20 69 73 20 20 74 72 65 | 61 74 65 64 20 20 73 70 | is tre|ated sp|
|00002aa0| 65 63 69 61 6c 6c 79 20 | 20 69 66 0a 09 74 68 65 |ecially | if..the|
|00002ab0| 20 20 62 6f 6f 74 6d 65 | 6e 75 20 20 70 72 6f 67 | bootme|nu prog|
|00002ac0| 72 61 6d 09 69 73 20 69 | 6e 73 74 61 6c 6c 65 64 |ram.is i|nstalled|
|00002ad0| 20 69 6e 09 74 68 65 20 | 70 72 69 6d 61 72 79 20 | in.the |primary |
|00002ae0| 62 6f 6f 74 20 73 65 63 | 74 6f 72 2e 0a 09 28 53 |boot sec|tor...(S|
|00002af0| 65 65 20 74 68 65 20 66 | 69 6c 65 20 62 6f 6f 74 |ee the f|ile boot|
|00002b00| 6d 65 6e 75 2e 64 6f 63 | 20 66 6f 72 09 6d 6f 72 |menu.doc| for.mor|
|00002b10| 65 20 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 29 |e infor|mation.)|
|00002b20| 20 20 70 66 64 69 73 6b | 20 20 63 61 6e 0a 09 72 | pfdisk| can..r|
|00002b30| 65 63 6f 67 6e 69 7a 65 | 20 20 74 68 65 09 6e 61 |ecognize| the.na|
|00002b40| 6d 65 20 20 74 61 62 6c | 65 20 20 75 73 65 64 20 |me tabl|e used |
|00002b50| 20 62 79 20 62 6f 6f 74 | 6d 65 6e 75 20 61 6e 64 | by boot|menu and|
|00002b60| 20 77 69 6c 6c 09 73 68 | 6f 77 20 74 68 65 0a 09 | will.sh|ow the..|
|00002b70| 61 63 74 75 61 6c 20 6e | 61 6d 65 73 20 70 72 65 |actual n|ames pre|
|00002b80| 73 65 6e 74 20 69 6e 09 | 74 68 61 74 20 6e 61 6d |sent in.|that nam|
|00002b90| 65 20 74 61 62 6c 65 2e | 20 20 49 66 20 61 6e 79 |e table.| If any|
|00002ba0| 20 6f 74 68 65 72 20 62 | 6f 6f 74 20 70 72 6f 2d | other b|oot pro-|
|00002bb0| 0a 09 67 72 61 6d 20 20 | 69 73 20 20 75 73 65 64 |..gram |is used|
|00002bc0| 09 74 68 65 6e 20 20 74 | 68 65 20 20 4e 61 6d 65 |.then t|he Name|
|00002bd0| 09 20 66 69 65 6c 64 09 | 72 65 66 6c 65 63 74 73 |. field.|reflects|
|00002be0| 20 74 68 65 20 72 65 73 | 75 6c 74 20 6f 66 20 61 | the res|ult of a|
|00002bf0| 0a 09 74 61 62 6c 65 2d | 6c 6f 6f 6b 75 70 20 6f |..table-|lookup o|
|00002c00| 66 09 74 68 65 20 73 79 | 73 74 65 6d 20 49 44 2e |f.the sy|stem ID.|
|00002c10| 0a 0a 09 49 66 20 79 6f | 75 20 70 72 6f 76 69 64 |...If yo|u provid|
|00002c20| 65 20 61 20 6e 61 6d 65 | 20 77 68 65 6e 20 20 73 |e a name| when s|
|00002c30| 65 74 74 69 6e 67 20 20 | 61 6e 79 20 20 70 61 72 |etting |any par|
|00002c40| 74 69 74 69 6f 6e 20 20 | 65 6e 74 72 79 2c 20 20 |tition |entry, |
|00002c50| 74 68 65 0a 09 62 6f 6f | 74 2d 73 65 63 74 6f 72 |the..boo|t-sector|
|00002c60| 20 20 69 73 09 20 6d 61 | 72 6b 65 64 09 61 73 20 | is. ma|rked.as |
|00002c70| 75 73 69 6e 67 20 61 20 | 6e 61 6d 65 09 74 61 62 |using a |name.tab|
|00002c80| 6c 65 2c 20 73 6f 20 74 | 68 61 74 20 6f 6e 20 73 |le, so t|hat on s|
|00002c90| 75 62 73 65 2d 0a 09 71 | 75 65 6e 74 20 75 73 65 |ubse-..q|uent use|
|00002ca0| 73 20 6f 66 20 70 66 64 | 69 73 6b 20 79 6f 75 20 |s of pfd|isk you |
|00002cb0| 77 69 6c 6c 20 73 65 65 | 20 74 68 65 20 70 61 72 |will see| the par|
|00002cc0| 74 69 74 69 6f 6e 09 6e | 61 6d 65 73 20 20 79 6f |tition.n|ames yo|
|00002cd0| 75 20 20 68 61 76 65 0a | 09 73 70 65 63 69 66 69 |u have.|.specifi|
|00002ce0| 65 64 2e 0a 0a 20 20 42 | 6f 6f 74 20 70 72 6f 67 |ed... B|oot prog|
|00002cf0| 72 61 6d 20 72 65 70 6c | 61 63 65 6d 65 6e 74 0a |ram repl|acement.|
|00002d00| 09 59 6f 75 20 63 61 6e | 09 72 65 70 6c 61 63 65 |.You can|.replace|
|00002d10| 09 74 68 65 20 62 6f 6f | 74 20 70 72 6f 67 72 61 |.the boo|t progra|
|00002d20| 6d 20 69 6e 20 20 79 6f | 75 72 20 20 62 6f 6f 74 |m in yo|ur boot|
|00002d30| 09 20 73 65 63 74 6f 72 | 09 20 77 69 74 68 6f 75 |. sector|. withou|
|00002d40| 74 0a 09 61 66 66 65 63 | 74 69 6e 67 20 20 74 68 |t..affec|ting th|
|00002d50| 65 09 70 61 72 74 69 74 | 69 6f 6e 20 20 74 61 62 |e.partit|ion tab|
|00002d60| 6c 65 20 20 62 79 20 20 | 75 73 69 6e 67 20 20 70 |le by |using p|
|00002d70| 66 64 69 73 6b 20 20 61 | 73 09 66 6f 6c 6c 6f 77 |fdisk a|s.follow|
|00002d80| 73 2e 0a 09 46 69 72 73 | 74 2c 20 28 61 73 20 61 |s...Firs|t, (as a|
|00002d90| 6c 77 61 79 73 29 20 73 | 61 76 65 09 61 20 63 6f |lways) s|ave.a co|
|00002da0| 70 79 20 6f 66 20 74 68 | 65 20 63 75 72 72 65 6e |py of th|e curren|
|00002db0| 74 20 62 6f 6f 74 20 73 | 65 63 74 6f 72 20 28 6f |t boot s|ector (o|
|00002dc0| 6e 20 20 61 0a 0a 0a 0a | 0a 0a 52 65 6c 65 61 73 |n a....|..Releas|
|00002dd0| 65 09 31 2e 33 09 20 20 | 20 20 20 20 4c 61 73 74 |e.1.3. | Last|
|00002de0| 20 63 68 61 6e 67 65 3a | 20 4f 63 74 20 31 39 39 | change:| Oct 199|
|00002df0| 30 09 09 09 33 0a 0a 0a | 0a 0a 0a 0a 50 46 44 49 |0...3...|....PFDI|
|00002e00| 53 4b 28 38 29 09 20 20 | 20 20 20 20 4d 41 49 4e |SK(8). | MAIN|
|00002e10| 54 45 4e 41 4e 43 45 20 | 43 4f 4d 4d 41 4e 44 53 |TENANCE |COMMANDS|
|00002e20| 09 09 50 46 44 49 53 4b | 28 38 29 0a 0a 0a 0a 0a |..PFDISK|(8).....|
|00002e30| 0a 09 66 6c 6f 70 70 79 | 29 09 75 73 69 6e 67 20 |..floppy|).using |
|00002e40| 74 68 65 20 22 57 20 66 | 69 6c 65 22 20 63 6f 6d |the "W f|ile" com|
|00002e50| 6d 61 6e 64 2e 20 20 54 | 68 65 6e 2c 20 75 73 65 |mand. T|hen, use|
|00002e60| 20 74 68 65 20 22 52 20 | 66 69 6c 65 22 20 63 6f | the "R |file" co|
|00002e70| 6d 2d 0a 09 6d 61 6e 64 | 20 74 6f 09 72 65 61 64 |m-..mand| to.read|
|00002e80| 20 74 68 65 20 6e 65 77 | 20 62 6f 6f 74 20 70 72 | the new| boot pr|
|00002e90| 6f 67 72 61 6d 2e 20 20 | 49 66 20 74 68 65 20 62 |ogram. |If the b|
|00002ea0| 6f 6f 74 09 70 72 6f 67 | 72 61 6d 09 72 65 61 64 |oot.prog|ram.read|
|00002eb0| 20 20 69 6e 0a 09 69 73 | 20 20 6c 65 73 73 20 20 | in..is| less |
|00002ec0| 74 68 61 6e 09 34 34 36 | 20 20 62 79 74 65 73 20 |than.446| bytes |
|00002ed0| 20 6c 6f 6e 67 2c 20 20 | 74 68 65 09 70 61 72 74 | long, |the.part|
|00002ee0| 69 74 69 6f 6e 20 20 74 | 61 62 6c 65 20 77 69 6c |ition t|able wil|
|00002ef0| 6c 20 62 65 0a 09 75 6e | 63 68 61 6e 67 65 64 2e |l be..un|changed.|
|00002f00| 0a 0a 09 55 6e 6c 69 6b | 65 20 74 68 65 20 44 4f |...Unlik|e the DO|
|00002f10| 53 20 6f 72 20 55 4e 49 | 58 20 66 64 69 73 6b 20 |S or UNI|X fdisk |
|00002f20| 70 72 6f 67 72 61 6d 73 | 2c 20 70 66 64 69 73 6b |programs|, pfdisk|
|00002f30| 20 68 61 73 20 4e 4f 20 | 20 62 6f 6f 74 20 20 70 | has NO | boot p|
|00002f40| 72 6f 2d 0a 09 67 72 61 | 6d 20 20 63 6f 6d 70 69 |ro-..gra|m compi|
|00002f50| 6c 65 64 09 69 6e 74 6f | 20 20 69 74 73 20 20 65 |led.into| its e|
|00002f60| 78 65 63 75 74 61 62 6c | 65 20 69 6d 61 67 65 2e |xecutabl|e image.|
|00002f70| 20 20 49 66 20 79 6f 75 | 20 77 69 73 68 20 74 6f | If you| wish to|
|00002f80| 20 75 73 65 0a 09 70 66 | 64 69 73 6b 20 74 6f 20 | use..pf|disk to |
|00002f90| 70 61 72 74 69 74 69 6f | 6e 20 61 20 6e 65 77 6c |partitio|n a newl|
|00002fa0| 79 20 66 6f 72 6d 61 74 | 74 65 64 20 68 61 72 64 |y format|ted hard|
|00002fb0| 20 64 69 73 6b 2c 20 79 | 6f 75 20 6d 75 73 74 20 | disk, y|ou must |
|00002fc0| 68 61 76 65 20 61 0a 09 | 62 6f 6f 74 20 20 70 72 |have a..|boot pr|
|00002fd0| 6f 67 72 61 6d 20 69 6d | 61 67 65 20 61 76 61 69 |ogram im|age avai|
|00002fe0| 6c 61 62 6c 65 20 74 6f | 20 72 65 61 64 20 69 6e |lable to| read in|
|00002ff0| 20 75 73 69 6e 67 20 74 | 68 65 20 22 72 20 66 69 | using t|he "r fi|
|00003000| 6c 65 22 20 63 6f 6d 2d | 0a 09 6d 61 6e 64 2e 20 |le" com-|..mand. |
|00003010| 20 54 77 6f 20 62 6f 6f | 74 09 70 72 6f 67 72 61 | Two boo|t.progra|
|00003020| 6d 73 2c 20 22 62 6f 6f | 74 6d 65 6e 75 2e 62 69 |ms, "boo|tmenu.bi|
|00003030| 6e 22 20 61 6e 64 20 22 | 62 6f 6f 74 61 75 74 6f |n" and "|bootauto|
|00003040| 2e 62 69 6e 22 20 20 61 | 72 65 0a 09 64 69 73 74 |.bin" a|re..dist|
|00003050| 72 69 62 75 74 65 64 20 | 20 77 69 74 68 20 20 70 |ributed | with p|
|00003060| 66 64 69 73 6b 20 20 61 | 6e 64 09 73 68 6f 75 6c |fdisk a|nd.shoul|
|00003070| 64 09 62 65 20 66 6f 75 | 6e 64 20 77 69 74 68 20 |d.be fou|nd with |
|00003080| 69 74 73 20 73 6f 75 72 | 63 65 0a 09 66 69 6c 65 |its sour|ce..file|
|00003090| 73 2e 09 53 65 65 20 74 | 68 65 09 66 69 6c 65 20 |s..See t|he.file |
|000030a0| 62 6f 6f 74 6d 65 6e 75 | 2e 64 6f 63 20 66 6f 72 |bootmenu|.doc for|
|000030b0| 20 66 75 72 74 68 65 72 | 20 69 6e 66 6f 72 6d 61 | further| informa|
|000030c0| 74 69 6f 6e 20 20 61 62 | 6f 75 74 0a 09 74 68 65 |tion ab|out..the|
|000030d0| 73 65 20 62 6f 6f 74 20 | 70 72 6f 67 72 61 6d 73 |se boot |programs|
|000030e0| 2e 0a 0a 41 55 54 48 4f | 52 0a 09 47 6f 72 64 6f |...AUTHO|R..Gordo|
|000030f0| 6e 20 57 2e 20 52 6f 73 | 73 0a 0a 0a 0a 0a 0a 0a |n W. Ros|s.......|
|00003100| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 0a |........|........|
|00003110| 0a 0a 0a 0a 0a 0a 0a 0a | 0a 0a 0a 0a 0a 0a 0a 52 |........|.......R|
|00003120| 65 6c 65 61 73 65 09 31 | 2e 33 09 20 20 20 20 20 |elease.1|.3. |
|00003130| 20 4c 61 73 74 20 63 68 | 61 6e 67 65 3a 20 4f 63 | Last ch|ange: Oc|
|00003140| 74 20 31 39 39 30 09 09 | 09 34 0a 0a 53 48 41 52 |t 1990..|.4..SHAR|
|00003150| 5f 45 4f 46 0a 69 66 20 | 74 65 73 74 20 36 37 35 |_EOF.if |test 675|
|00003160| 35 20 2d 6e 65 20 22 60 | 77 63 20 2d 63 20 3c 20 |5 -ne "`|wc -c < |
|00003170| 27 70 66 64 69 73 6b 2e | 64 6f 63 27 60 22 0a 74 |'pfdisk.|doc'`".t|
|00003180| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00003190| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|000031a0| 6e 67 20 22 27 70 66 64 | 69 73 6b 2e 64 6f 63 27 |ng "'pfd|isk.doc'|
|000031b0| 22 20 27 28 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |" '(shou|ld have |
|000031c0| 62 65 65 6e 20 36 37 35 | 35 20 63 68 61 72 61 63 |been 675|5 charac|
|000031d0| 74 65 72 73 29 27 0a 66 | 69 0a 66 69 20 23 20 65 |ters)'.f|i.fi # e|
|000031e0| 6e 64 20 6f 66 20 6f 76 | 65 72 77 72 69 74 69 6e |nd of ov|erwritin|
|000031f0| 67 20 63 68 65 63 6b 0a | 65 63 68 6f 20 73 68 61 |g check.|echo sha|
|00003200| 72 3a 20 65 78 74 72 61 | 63 74 69 6e 67 20 22 27 |r: extra|cting "'|
|00003210| 53 53 74 6f 72 2e 74 78 | 74 27 22 20 27 28 31 30 |SStor.tx|t'" '(10|
|00003220| 34 31 20 63 68 61 72 61 | 63 74 65 72 73 29 27 0a |41 chara|cters)'.|
|00003230| 69 66 20 74 65 73 74 20 | 2d 66 20 27 53 53 74 6f |if test |-f 'SSto|
|00003240| 72 2e 74 78 74 27 0a 74 | 68 65 6e 0a 09 65 63 68 |r.txt'.t|hen..ech|
|00003250| 6f 20 73 68 61 72 3a 20 | 77 69 6c 6c 20 6e 6f 74 |o shar: |will not|
|00003260| 20 6f 76 65 72 2d 77 72 | 69 74 65 20 65 78 69 73 | over-wr|ite exis|
|00003270| 74 69 6e 67 20 66 69 6c | 65 20 22 27 53 53 74 6f |ting fil|e "'SSto|
|00003280| 72 2e 74 78 74 27 22 0a | 65 6c 73 65 0a 63 61 74 |r.txt'".|else.cat|
|00003290| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|000032a0| 27 53 53 74 6f 72 2e 74 | 78 74 27 0a 0a 4e 6f 74 |'SStor.t|xt'..Not|
|000032b0| 65 3a 20 53 70 65 65 64 | 53 74 6f 72 20 28 73 73 |e: Speed|Stor (ss|
|000032c0| 74 6f 72 29 20 6d 6f 64 | 69 66 69 65 73 20 53 45 |tor) mod|ifies SE|
|000032d0| 56 45 52 41 4c 20 6c 6f | 63 61 74 69 6f 6e 73 20 |VERAL lo|cations |
|000032e0| 69 6e 20 74 68 65 20 62 | 6f 6f 74 20 73 65 63 74 |in the b|oot sect|
|000032f0| 6f 72 21 0a 0a 54 68 65 | 20 53 70 65 65 64 53 74 |or!..The| SpeedSt|
|00003300| 6f 72 20 6d 61 6e 75 61 | 6c 20 73 61 79 73 20 69 |or manua|l says i|
|00003310| 74 20 64 6f 65 73 20 6e | 6f 74 20 6d 6f 64 69 66 |t does n|ot modif|
|00003320| 79 20 6c 6f 63 61 74 69 | 6f 6e 73 20 30 78 45 41 |y locati|ons 0xEA|
|00003330| 20 2d 2d 20 30 78 31 37 | 44 0a 42 55 54 20 54 48 | -- 0x17|D.BUT TH|
|00003340| 45 59 20 4c 49 45 21 20 | 20 49 66 20 79 6f 75 20 |EY LIE! | If you |
|00003350| 75 73 65 20 74 68 65 20 | 22 50 61 72 61 6d 65 74 |use the |"Paramet|
|00003360| 65 72 20 4f 76 65 72 72 | 69 64 65 22 20 66 65 61 |er Overr|ide" fea|
|00003370| 74 75 72 65 2c 20 22 73 | 73 74 6f 72 22 0a 28 65 |ture, "s|stor".(e|
|00003380| 76 69 64 65 6e 74 6c 79 | 29 20 70 75 74 73 20 74 |vidently|) puts t|
|00003390| 68 65 20 6e 65 77 20 64 | 69 73 6b 20 70 61 72 61 |he new d|isk para|
|000033a0| 6d 65 74 65 72 73 20 69 | 6e 20 6c 6f 63 61 74 69 |meters i|n locati|
|000033b0| 6f 6e 73 20 30 78 45 41 | 20 2d 2d 20 30 78 46 39 |ons 0xEA| -- 0xF9|
|000033c0| 2e 0a 0a 49 66 20 79 6f | 75 20 69 6e 73 74 61 6c |...If yo|u instal|
|000033d0| 6c 20 42 4f 4f 54 41 55 | 54 4f 20 61 6e 64 20 74 |l BOOTAU|TO and t|
|000033e0| 68 65 6e 20 72 75 6e 20 | 73 73 74 6f 72 2c 20 75 |hen run |sstor, u|
|000033f0| 73 69 6e 67 20 74 68 65 | 20 70 61 72 61 6d 65 74 |sing the| paramet|
|00003400| 65 72 0a 6f 76 65 72 72 | 69 64 65 20 66 65 61 74 |er.overr|ide feat|
|00003410| 75 72 65 2c 20 79 6f 75 | 20 77 69 6c 6c 20 68 61 |ure, you| will ha|
|00003420| 76 65 20 63 6c 6f 62 62 | 65 72 65 64 20 74 68 65 |ve clobb|ered the|
|00003430| 20 42 4f 4f 54 41 55 54 | 4f 20 70 72 6f 67 72 61 | BOOTAUT|O progra|
|00003440| 6d 20 69 6e 20 61 0a 77 | 61 79 20 73 75 63 68 20 |m in a.w|ay such |
|00003450| 74 68 61 74 20 69 74 20 | 68 61 6e 67 73 20 6f 72 |that it |hangs or|
|00003460| 20 72 65 70 65 61 74 73 | 20 69 74 73 20 6d 65 6e | repeats| its men|
|00003470| 75 20 77 68 65 6e 20 79 | 6f 75 20 6d 61 6b 65 20 |u when y|ou make |
|00003480| 61 20 73 65 6c 65 63 74 | 69 6f 6e 21 0a 28 59 65 |a select|ion!.(Ye|
|00003490| 73 2c 20 49 20 6c 65 61 | 72 6e 65 64 20 74 68 69 |s, I lea|rned thi|
|000034a0| 73 20 74 68 65 20 68 61 | 72 64 20 77 61 79 2e 2e |s the ha|rd way..|
|000034b0| 2e 29 0a 0a 54 6f 20 67 | 65 74 20 61 72 6f 75 6e |.)..To g|et aroun|
|000034c0| 64 20 74 68 69 73 20 70 | 72 6f 62 6c 65 6d 2c 20 |d this p|roblem, |
|000034d0| 49 20 77 72 6f 74 65 20 | 61 20 73 6c 69 6d 6d 65 |I wrote |a slimme|
|000034e0| 64 2d 64 6f 77 6e 20 76 | 65 72 73 69 6f 6e 20 6f |d-down v|ersion o|
|000034f0| 66 20 74 68 65 20 62 6f | 6f 74 0a 70 72 6f 67 72 |f the bo|ot.progr|
|00003500| 61 6d 2c 20 63 61 6c 6c | 65 64 20 42 4f 4f 54 4d |am, call|ed BOOTM|
|00003510| 45 4e 55 2c 20 77 68 69 | 63 68 20 68 61 73 20 75 |ENU, whi|ch has u|
|00003520| 6e 75 73 65 64 20 22 68 | 6f 6c 65 73 22 20 73 74 |nused "h|oles" st|
|00003530| 72 61 74 65 67 69 63 6c | 79 20 70 6c 61 63 65 64 |rategicl|y placed|
|00003540| 0a 69 6e 20 74 68 65 20 | 6c 6f 63 61 74 69 6f 6e |.in the |location|
|00003550| 73 20 6b 6e 6f 77 6e 20 | 74 6f 20 62 65 20 63 6c |s known |to be cl|
|00003560| 6f 62 62 65 72 65 64 20 | 62 79 20 53 70 65 65 64 |obbered |by Speed|
|00003570| 53 74 6f 72 2e 20 20 54 | 68 6f 75 67 68 20 74 68 |Stor. T|hough th|
|00003580| 69 73 0a 76 65 72 73 69 | 6f 6e 20 68 61 73 20 74 |is.versi|on has t|
|00003590| 68 65 20 61 64 76 61 6e | 74 61 67 65 20 6f 66 20 |he advan|tage of |
|000035a0| 53 70 65 65 64 53 74 6f | 72 20 63 6f 6d 70 61 74 |SpeedSto|r compat|
|000035b0| 69 62 69 6c 69 74 79 2c | 20 69 74 20 64 6f 65 73 |ibility,| it does|
|000035c0| 20 6e 6f 74 20 68 61 76 | 65 0a 74 68 65 20 61 62 | not hav|e.the ab|
|000035d0| 69 6c 69 74 79 20 74 6f | 20 64 6f 20 61 75 74 6f |ility to| do auto|
|000035e0| 6d 61 74 69 63 2c 20 75 | 6e 61 74 74 65 6e 64 65 |matic, u|nattende|
|000035f0| 64 20 72 65 62 6f 6f 74 | 73 20 6c 69 6b 65 20 42 |d reboot|s like B|
|00003600| 4f 4f 54 41 55 54 4f 20 | 63 61 6e 2e 0a 0a 46 6f |OOTAUTO |can...Fo|
|00003610| 72 20 66 75 74 75 72 65 | 20 72 65 66 65 72 65 6e |r future| referen|
|00003620| 63 65 2c 20 61 6c 73 6f | 20 6e 6f 74 65 20 74 68 |ce, also| note th|
|00003630| 61 74 20 73 73 74 6f 72 | 20 77 69 6c 6c 20 6d 6f |at sstor| will mo|
|00003640| 64 69 66 79 20 6c 6f 63 | 61 74 69 6f 6e 73 0a 30 |dify loc|ations.0|
|00003650| 78 31 37 45 20 2d 2d 20 | 30 78 31 42 44 20 69 66 |x17E -- |0x1BD if|
|00003660| 20 79 6f 75 20 63 72 65 | 61 74 65 20 53 70 65 65 | you cre|ate Spee|
|00003670| 64 53 74 6f 72 20 70 61 | 72 74 69 74 69 6f 6e 73 |dStor pa|rtitions|
|00003680| 2e 20 20 54 6f 20 74 68 | 65 69 72 20 63 72 65 64 |. To th|eir cred|
|00003690| 69 74 2c 0a 74 68 69 73 | 20 69 73 20 69 6e 64 65 |it,.this| is inde|
|000036a0| 65 64 20 6d 65 6e 74 69 | 6f 6e 65 64 20 69 6e 20 |ed menti|oned in |
|000036b0| 74 68 65 20 6d 61 6e 75 | 61 6c 2e 0a 0a 53 48 41 |the manu|al...SHA|
|000036c0| 52 5f 45 4f 46 0a 69 66 | 20 74 65 73 74 20 31 30 |R_EOF.if| test 10|
|000036d0| 34 31 20 2d 6e 65 20 22 | 60 77 63 20 2d 63 20 3c |41 -ne "|`wc -c <|
|000036e0| 20 27 53 53 74 6f 72 2e | 74 78 74 27 60 22 0a 74 | 'SStor.|txt'`".t|
|000036f0| 68 65 6e 0a 09 65 63 68 | 6f 20 73 68 61 72 3a 20 |hen..ech|o shar: |
|00003700| 65 72 72 6f 72 20 74 72 | 61 6e 73 6d 69 74 74 69 |error tr|ansmitti|
|00003710| 6e 67 20 22 27 53 53 74 | 6f 72 2e 74 78 74 27 22 |ng "'SSt|or.txt'"|
|00003720| 20 27 28 73 68 6f 75 6c | 64 20 68 61 76 65 20 62 | '(shoul|d have b|
|00003730| 65 65 6e 20 31 30 34 31 | 20 63 68 61 72 61 63 74 |een 1041| charact|
|00003740| 65 72 73 29 27 0a 66 69 | 0a 66 69 20 23 20 65 6e |ers)'.fi|.fi # en|
|00003750| 64 20 6f 66 20 6f 76 65 | 72 77 72 69 74 69 6e 67 |d of ove|rwriting|
|00003760| 20 63 68 65 63 6b 0a 65 | 63 68 6f 20 73 68 61 72 | check.e|cho shar|
|00003770| 3a 20 65 78 74 72 61 63 | 74 69 6e 67 20 22 27 62 |: extrac|ting "'b|
|00003780| 6f 6f 74 6d 65 6e 75 2e | 61 73 6d 27 22 20 27 28 |ootmenu.|asm'" '(|
|00003790| 35 30 30 35 20 63 68 61 | 72 61 63 74 65 72 73 29 |5005 cha|racters)|
|000037a0| 27 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 62 6f |'.if tes|t -f 'bo|
|000037b0| 6f 74 6d 65 6e 75 2e 61 | 73 6d 27 0a 74 68 65 6e |otmenu.a|sm'.then|
|000037c0| 0a 09 65 63 68 6f 20 73 | 68 61 72 3a 20 77 69 6c |..echo s|har: wil|
|000037d0| 6c 20 6e 6f 74 20 6f 76 | 65 72 2d 77 72 69 74 65 |l not ov|er-write|
|000037e0| 20 65 78 69 73 74 69 6e | 67 20 66 69 6c 65 20 22 | existin|g file "|
|000037f0| 27 62 6f 6f 74 6d 65 6e | 75 2e 61 73 6d 27 22 0a |'bootmen|u.asm'".|
|00003800| 65 6c 73 65 0a 63 61 74 | 20 3c 3c 20 5c 53 48 41 |else.cat| << \SHA|
|00003810| 52 5f 45 4f 46 20 3e 20 | 27 62 6f 6f 74 6d 65 6e |R_EOF > |'bootmen|
|00003820| 75 2e 61 73 6d 27 0a 09 | 50 41 47 45 20 36 30 2c |u.asm'..|PAGE 60,|
|00003830| 31 33 32 0a 3b 09 62 6f | 6f 74 6d 65 6e 75 3a 20 |132.;.bo|otmenu: |
|00003840| 42 4f 4f 54 20 48 61 72 | 64 20 44 69 73 6b 20 50 |BOOT Har|d Disk P|
|00003850| 61 72 74 69 74 69 6f 6e | 0a 3b 09 62 79 20 47 6f |artition|.;.by Go|
|00003860| 72 64 6f 6e 20 57 2e 20 | 52 6f 73 73 2c 20 41 75 |rdon W. |Ross, Au|
|00003870| 67 20 31 39 39 30 0a 3b | 0a 3b 09 53 65 65 20 74 |g 1990.;|.;.See t|
|00003880| 68 65 20 66 69 6c 65 20 | 62 6f 6f 74 6d 65 6e 75 |he file |bootmenu|
|00003890| 2e 64 6f 63 20 66 6f 72 | 20 75 73 65 72 20 69 6e |.doc for| user in|
|000038a0| 73 74 72 75 63 74 69 6f | 6e 73 2e 0a 3b 0a 3b 09 |structio|ns..;.;.|
|000038b0| 54 68 69 73 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |This ver|sion of |
|000038c0| 62 6f 6f 74 6d 65 6e 75 | 20 69 73 20 63 6f 6d 70 |bootmenu| is comp|
|000038d0| 61 74 69 62 6c 65 20 77 | 69 74 68 20 53 70 65 65 |atible w|ith Spee|
|000038e0| 64 53 74 6f 72 2e 0a 3b | 09 53 65 65 20 74 68 65 |dStor..;|.See the|
|000038f0| 20 66 69 6c 65 20 73 73 | 74 6f 72 2d 62 75 67 2e | file ss|tor-bug.|
|00003900| 74 78 74 20 66 6f 72 20 | 74 68 65 20 67 6f 72 79 |txt for |the gory|
|00003910| 20 64 65 74 61 69 6c 73 | 2e 0a 3b 0a 3b 09 54 68 | details|..;.;.Th|
|00003920| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 69 73 20 61 |e follow|ing is a|
|00003930| 6e 20 6f 75 74 6c 69 6e | 65 20 6f 66 20 74 68 65 |n outlin|e of the|
|00003940| 20 70 72 6f 67 72 61 6d | 3a 0a 3b 0a 3b 09 52 65 | program|:.;.;.Re|
|00003950| 6c 6f 63 61 74 65 20 73 | 65 6c 66 20 66 72 6f 6d |locate s|elf from|
|00003960| 20 30 78 37 63 30 30 20 | 74 6f 20 30 78 30 36 30 | 0x7c00 |to 0x060|
|00003970| 30 0a 3b 09 44 69 73 70 | 6c 61 79 20 70 61 72 74 |0.;.Disp|lay part|
|00003980| 69 74 69 6f 6e 20 6d 65 | 6e 75 0a 3b 09 50 72 6f |ition me|nu.;.Pro|
|00003990| 6d 70 74 20 66 6f 72 20 | 61 6e 64 20 72 65 61 64 |mpt for |and read|
|000039a0| 20 75 73 65 72 20 73 65 | 6c 65 63 74 69 6f 6e 0a | user se|lection.|
|000039b0| 3b 0a 3b 09 42 6f 6f 74 | 20 66 72 6f 6d 20 74 68 |;.;.Boot| from th|
|000039c0| 65 20 73 65 6c 65 63 74 | 65 64 20 70 61 72 74 69 |e select|ed parti|
|000039d0| 74 69 6f 6e 3a 0a 3b 09 | 28 77 61 73 20 73 65 6c |tion:.;.|(was sel|
|000039e0| 65 63 74 65 64 20 62 79 | 20 75 73 65 72 2c 20 6f |ected by| user, o|
|000039f0| 72 20 77 61 73 20 61 63 | 74 69 76 65 29 0a 3b 09 |r was ac|tive).;.|
|00003a00| 52 65 61 64 20 66 69 72 | 73 74 20 73 65 63 74 6f |Read fir|st secto|
|00003a10| 72 20 6f 66 20 73 65 6c | 65 63 74 65 64 20 70 61 |r of sel|ected pa|
|00003a20| 72 74 69 74 69 6f 6e 20 | 69 6e 74 6f 20 30 78 37 |rtition |into 0x7|
|00003a30| 63 30 30 0a 3b 09 56 65 | 72 69 66 79 20 67 6f 6f |c00.;.Ve|rify goo|
|00003a40| 64 20 73 65 63 6f 6e 64 | 2d 73 74 61 67 65 20 62 |d second|-stage b|
|00003a50| 6f 6f 74 20 73 65 63 74 | 6f 72 20 28 6d 61 67 69 |oot sect|or (magi|
|00003a60| 63 20 77 6f 72 64 29 0a | 3b 09 53 65 74 2d 75 70 |c word).|;.Set-up|
|00003a70| 20 63 6f 72 72 65 63 74 | 20 72 65 67 69 73 74 65 | correct| registe|
|00003a80| 72 20 76 61 6c 75 65 73 | 20 61 6e 64 20 6a 75 6d |r values| and jum|
|00003a90| 70 20 74 6f 20 69 74 2e | 0a 3b 0a 0a 43 4f 44 45 |p to it.|.;..CODE|
|00003aa0| 4f 52 47 09 65 71 75 20 | 30 36 30 30 68 09 3b 20 |ORG.equ |0600h.; |
|00003ab0| 6f 66 66 73 65 74 20 6f | 66 20 74 68 69 73 20 63 |offset o|f this c|
|00003ac0| 6f 64 65 20 69 6e 20 63 | 6f 64 65 20 73 65 67 0a |ode in c|ode seg.|
|00003ad0| 3b 20 41 6c 6c 20 76 61 | 6c 75 65 73 20 63 6f 6d |; All va|lues com|
|00003ae0| 70 75 74 65 64 20 66 72 | 6f 6d 20 6f 66 66 73 65 |puted fr|om offse|
|00003af0| 74 73 20 69 6e 20 63 6f | 64 65 73 65 67 20 6e 65 |ts in co|deseg ne|
|00003b00| 65 64 20 74 6f 20 62 65 | 0a 3b 20 61 64 6a 75 73 |ed to be|.; adjus|
|00003b10| 74 65 64 20 62 79 20 61 | 64 64 69 6e 67 20 43 4f |ted by a|dding CO|
|00003b20| 44 45 4f 52 47 20 74 6f | 20 65 61 63 68 2e 20 20 |DEORG to| each. |
|00003b30| 54 68 65 20 6f 62 76 69 | 6f 75 73 20 6d 65 74 68 |The obvi|ous meth|
|00003b40| 6f 64 2c 0a 3b 20 75 73 | 69 6e 67 20 22 6f 72 67 |od,.; us|ing "org|
|00003b50| 20 43 4f 44 45 4f 52 47 | 22 20 63 61 75 73 65 73 | CODEORG|" causes|
|00003b60| 20 4d 41 53 4d 2f 4c 49 | 4e 4b 20 74 6f 20 66 69 | MASM/LI|NK to fi|
|00003b70| 6c 6c 20 69 6e 20 74 68 | 65 20 73 70 61 63 65 2e |ll in th|e space.|
|00003b80| 0a 0a 63 6f 64 65 73 65 | 67 09 73 65 67 6d 65 6e |..codese|g.segmen|
|00003b90| 74 0a 09 61 73 73 75 6d | 65 20 63 73 3a 63 6f 64 |t..assum|e cs:cod|
|00003ba0| 65 73 65 67 2c 20 64 73 | 3a 63 6f 64 65 73 65 67 |eseg, ds|:codeseg|
|00003bb0| 0a 0a 3b 20 49 6e 69 74 | 69 61 6c 20 70 72 6f 67 |..; Init|ial prog|
|00003bc0| 72 61 6d 20 65 6e 74 72 | 79 20 70 6f 69 6e 74 0a |ram entr|y point.|
|00003bd0| 3b 20 28 41 73 73 65 6d | 62 6c 65 72 20 69 73 20 |; (Assem|bler is |
|00003be0| 74 6f 6c 64 20 74 68 69 | 73 20 69 73 20 61 74 20 |told thi|s is at |
|00003bf0| 6f 66 66 73 65 74 20 7a | 65 72 6f 2e 29 0a 0a 6d |offset z|ero.)..m|
|00003c00| 61 69 6e 3a 0a 09 3b 20 | 53 65 74 20 75 70 20 74 |ain:..; |Set up t|
|00003c10| 68 65 20 73 74 61 63 6b | 0a 09 78 6f 72 09 61 78 |he stack|..xor.ax|
|00003c20| 2c 61 78 0a 09 6d 6f 76 | 09 73 69 2c 37 43 30 30 |,ax..mov|.si,7C00|
|00003c30| 68 09 3b 20 6a 75 73 74 | 20 62 65 66 6f 72 65 20 |h.; just| before |
|00003c40| 6c 6f 61 64 20 6c 6f 63 | 61 74 69 6f 6e 0a 09 63 |load loc|ation..c|
|00003c50| 6c 69 0a 09 6d 6f 76 09 | 73 73 2c 61 78 0a 09 6d |li..mov.|ss,ax..m|
|00003c60| 6f 76 09 73 70 2c 73 69 | 0a 09 73 74 69 0a 0a 3b |ov.sp,si|..sti..;|
|00003c70| 20 52 65 6c 6f 63 61 74 | 65 20 74 68 69 73 20 63 | Relocat|e this c|
|00003c80| 6f 64 65 20 66 72 6f 6d | 20 30 3a 37 43 30 30 68 |ode from| 0:7C00h|
|00003c90| 20 74 6f 20 30 3a 43 4f | 44 45 4f 52 47 0a 09 6d | to 0:CO|DEORG..m|
|00003ca0| 6f 76 09 64 73 2c 61 78 | 0a 09 6d 6f 76 09 65 73 |ov.ds,ax|..mov.es|
|00003cb0| 2c 61 78 0a 09 6d 6f 76 | 09 73 69 2c 37 43 30 30 |,ax..mov|.si,7C00|
|00003cc0| 68 09 3b 20 77 68 65 72 | 65 20 74 68 69 73 20 70 |h.; wher|e this p|
|00003cd0| 72 6f 67 72 61 6d 20 69 | 73 20 69 6e 69 74 69 61 |rogram i|s initia|
|00003ce0| 6c 6c 79 20 6c 6f 61 64 | 65 64 0a 09 6d 6f 76 09 |lly load|ed..mov.|
|00003cf0| 64 69 2c 43 4f 44 45 4f | 52 47 0a 09 6d 6f 76 09 |di,CODEO|RG..mov.|
|00003d00| 63 78 2c 30 31 30 30 68 | 0a 09 63 6c 64 0a 09 72 |cx,0100h|..cld..r|
|00003d10| 65 70 09 6d 6f 76 73 77 | 0a 0a 3b 20 4a 75 6d 70 |ep.movsw|..; Jump|
|00003d20| 20 74 6f 20 72 65 6c 6f | 63 61 74 65 64 20 63 6f | to relo|cated co|
|00003d30| 64 65 20 28 30 3a 43 4f | 44 45 4f 52 47 29 0a 09 |de (0:CO|DEORG)..|
|00003d40| 6a 6d 70 09 66 61 72 20 | 70 74 72 20 62 65 67 69 |jmp.far |ptr begi|
|00003d50| 6e 31 0a 62 65 67 69 6e | 09 65 71 75 09 24 09 3b |n1.begin|.equ.$.;|
|00003d60| 20 54 68 65 20 61 62 6f | 76 65 20 6a 75 6d 70 20 | The abo|ve jump |
|00003d70| 6c 61 6e 64 73 20 68 65 | 72 65 2e 0a 0a 3b 20 50 |lands he|re...; P|
|00003d80| 72 69 6e 74 20 70 61 72 | 74 69 74 69 6f 6e 20 6d |rint par|tition m|
|00003d90| 65 6e 75 20 66 72 6f 6d | 20 6e 61 6d 65 20 74 61 |enu from| name ta|
|00003da0| 62 6c 65 0a 6d 65 6e 75 | 3a 0a 09 63 61 6c 6c 09 |ble.menu|:..call.|
|00003db0| 70 75 74 6e 6c 09 09 3b | 20 70 72 69 6e 74 20 6e |putnl..;| print n|
|00003dc0| 65 77 6c 69 6e 65 0a 09 | 6d 6f 76 09 73 69 2c 20 |ewline..|mov.si, |
|00003dd0| 6f 66 66 73 65 74 20 70 | 6e 61 6d 65 73 20 3b 20 |offset p|names ; |
|00003de0| 6e 6f 20 6f 72 67 20 66 | 69 78 2d 75 70 20 68 65 |no org f|ix-up he|
|00003df0| 72 65 21 0a 09 6d 6f 76 | 09 61 6c 2c 20 27 31 27 |re!..mov|.al, '1'|
|00003e00| 0a 70 72 6e 61 6d 65 3a | 0a 09 70 75 73 68 09 73 |.prname:|..push.s|
|00003e10| 69 0a 09 70 75 73 68 09 | 61 78 0a 0a 09 63 61 6c |i..push.|ax...cal|
|00003e20| 6c 09 70 75 74 63 0a 09 | 6d 6f 76 09 61 6c 2c 27 |l.putc..|mov.al,'|
|00003e30| 20 27 0a 09 63 61 6c 6c | 09 70 75 74 63 0a 09 6d | '..call|.putc..m|
|00003e40| 6f 76 09 63 78 2c 38 09 | 09 3b 20 6d 61 78 69 6d |ov.cx,8.|.; maxim|
|00003e50| 75 6d 20 6e 61 6d 65 20 | 6c 65 6e 67 74 68 0a 09 |um name |length..|
|00003e60| 63 61 6c 6c 09 70 75 74 | 6e 0a 09 63 61 6c 6c 09 |call.put|n..call.|
|00003e70| 70 75 74 6e 6c 0a 0a 09 | 70 6f 70 09 61 78 0a 09 |putnl...|pop.ax..|
|00003e80| 70 6f 70 09 73 69 0a 09 | 61 64 64 09 73 69 2c 38 |pop.si..|add.si,8|
|00003e90| 0a 09 69 6e 63 09 61 6c | 0a 09 63 6d 70 09 61 6c |..inc.al|..cmp.al|
|00003ea0| 2c 27 34 27 0a 09 6a 62 | 65 09 70 72 6e 61 6d 65 |,'4'..jb|e.prname|
|00003eb0| 0a 0a 3b 20 50 72 6f 6d | 70 74 20 66 6f 72 20 61 |..; Prom|pt for a|
|00003ec0| 6e 64 20 72 65 61 64 20 | 75 73 65 72 20 73 65 6c |nd read |user sel|
|00003ed0| 65 63 74 69 6f 6e 0a 73 | 65 6c 65 63 74 3a 0a 09 |ection.s|elect:..|
|00003ee0| 63 61 6c 6c 09 70 75 74 | 6e 6c 09 3b 20 70 72 69 |call.put|nl.; pri|
|00003ef0| 6e 74 20 70 72 6f 6d 70 | 74 0a 09 6d 6f 76 09 73 |nt promp|t..mov.s|
|00003f00| 69 2c 20 6f 66 66 73 65 | 74 20 70 72 6f 6d 70 74 |i, offse|t prompt|
|00003f10| 20 2b 20 43 4f 44 45 4f | 52 47 0a 09 63 61 6c 6c | + CODEO|RG..call|
|00003f20| 09 70 75 74 73 0a 0a 09 | 6d 6f 76 09 61 68 2c 30 |.puts...|mov.ah,0|
|00003f30| 09 3b 20 52 65 61 64 20 | 61 20 6b 65 79 73 74 72 |.; Read |a keystr|
|00003f40| 6f 6b 65 20 61 6e 64 20 | 70 72 69 6e 74 20 69 74 |oke and |print it|
|00003f50| 0a 09 69 6e 74 09 31 36 | 68 0a 09 70 75 73 68 09 |..int.16|h..push.|
|00003f60| 61 78 0a 09 63 61 6c 6c | 09 70 75 74 63 0a 09 63 |ax..call|.putc..c|
|00003f70| 61 6c 6c 09 70 75 74 6e | 6c 0a 09 70 6f 70 09 61 |all.putn|l..pop.a|
|00003f80| 78 0a 0a 09 73 75 62 09 | 61 6c 2c 27 31 27 09 3b |x...sub.|al,'1'.;|
|00003f90| 20 72 61 6e 67 65 20 63 | 68 65 63 6b 20 61 6e 64 | range c|heck and|
|00003fa0| 20 63 6f 6e 76 65 72 74 | 20 74 6f 20 69 6e 64 65 | convert| to inde|
|00003fb0| 78 0a 09 63 6d 70 09 61 | 6c 2c 30 34 0a 09 6a 6e |x..cmp.a|l,04..jn|
|00003fc0| 62 09 73 65 6c 65 63 74 | 0a 0a 62 6f 6f 74 3a 0a |b.select|..boot:.|
|00003fd0| 3b 20 42 6f 6f 74 20 66 | 72 6f 6d 20 74 68 65 20 |; Boot f|rom the |
|00003fe0| 73 65 6c 65 63 74 65 64 | 20 70 61 72 74 69 74 69 |selected| partiti|
|00003ff0| 6f 6e 2e 0a 3b 20 4f 6e | 20 65 6e 74 72 79 20 74 |on..; On| entry t|
|00004000| 6f 20 74 68 69 73 20 73 | 65 63 74 69 6f 6e 3a 20 |o this s|ection: |
|00004010| 20 41 4c 20 3d 20 69 6e | 64 65 78 20 6f 66 20 70 | AL = in|dex of p|
|00004020| 74 61 62 6c 65 20 65 6c | 65 6d 65 6e 74 0a 0a 09 |table el|ement...|
|00004030| 3b 20 67 65 74 20 61 64 | 64 72 65 73 73 20 6f 66 |; get ad|dress of|
|00004040| 20 70 74 61 62 6c 65 20 | 65 6c 65 6d 65 6e 74 20 | ptable |element |
|00004050| 28 73 69 20 3d 20 26 20 | 70 74 61 62 6c 65 5b 41 |(si = & |ptable[A|
|00004060| 4c 5d 29 0a 09 6d 6f 76 | 09 73 69 2c 20 6f 66 66 |L])..mov|.si, off|
|00004070| 73 65 74 20 70 74 61 62 | 6c 65 20 3b 20 6e 6f 20 |set ptab|le ; no |
|00004080| 6f 72 67 20 66 69 78 2d | 75 70 20 68 65 72 65 0a |org fix-|up here.|
|00004090| 09 6d 6f 76 09 63 6c 2c | 31 36 09 3b 20 73 69 7a |.mov.cl,|16.; siz|
|000040a0| 65 20 6f 66 20 61 72 72 | 61 79 20 65 6c 65 6d 65 |e of arr|ay eleme|
|000040b0| 6e 74 0a 09 6d 75 6c 09 | 63 6c 09 09 3b 20 61 78 |nt..mul.|cl..; ax|
|000040c0| 20 3d 20 61 6c 20 2a 20 | 63 6c 0a 09 61 64 64 09 | = al * |cl..add.|
|000040d0| 73 69 2c 61 78 0a 0a 3b | 20 43 68 65 63 6b 20 66 |si,ax..;| Check f|
|000040e0| 6f 72 20 76 61 6c 69 64 | 20 73 79 73 74 65 6d 20 |or valid| system |
|000040f0| 49 44 20 28 6e 6f 6e 2d | 7a 65 72 6f 29 0a 0a 09 |ID (non-|zero)...|
|00004100| 6d 6f 76 09 61 6c 2c 5b | 73 69 2b 34 5d 0a 09 63 |mov.al,[|si+4]..c|
|00004110| 6d 70 09 61 6c 2c 30 0a | 09 6a 6e 7a 09 69 64 5f |mp.al,0.|.jnz.id_|
|00004120| 6f 6b 0a 09 6d 6f 76 09 | 73 69 2c 20 6f 66 66 73 |ok..mov.|si, offs|
|00004130| 65 74 20 6d 73 67 65 6d | 70 74 79 20 2b 20 43 4f |et msgem|pty + CO|
|00004140| 44 45 4f 52 47 0a 09 6a | 6d 70 09 65 72 72 6f 72 |DEORG..j|mp.error|
|00004150| 0a 69 64 5f 6f 6b 3a 0a | 0a 3b 20 52 65 61 64 20 |.id_ok:.|.; Read |
|00004160| 66 69 72 73 74 20 73 65 | 63 74 6f 72 20 6f 66 20 |first se|ctor of |
|00004170| 73 65 6c 65 63 74 65 64 | 20 70 61 72 74 69 74 69 |selected| partiti|
|00004180| 6f 6e 20 69 6e 74 6f 20 | 30 78 37 63 30 30 0a 3b |on into |0x7c00.;|
|00004190| 20 41 6c 73 6f 2c 20 6d | 61 72 6b 20 74 68 69 73 | Also, m|ark this|
|000041a0| 20 65 6e 74 72 79 20 61 | 63 74 69 76 65 20 28 69 | entry a|ctive (i|
|000041b0| 6e 20 52 41 4d 20 6f 6e | 6c 79 29 20 69 6e 20 63 |n RAM on|ly) in c|
|000041c0| 61 73 65 20 74 68 65 0a | 3b 20 73 65 63 6f 6e 64 |ase the.|; second|
|000041d0| 61 72 79 20 62 6f 6f 74 | 20 70 72 6f 67 72 61 6d |ary boot| program|
|000041e0| 20 6c 6f 6f 6b 73 20 61 | 74 20 69 74 20 28 77 68 | looks a|t it (wh|
|000041f0| 69 63 68 20 69 74 20 6d | 61 79 29 2e 0a 0a 09 6d |ich it m|ay)....m|
|00004200| 6f 76 09 61 6c 2c 38 30 | 68 09 3b 20 61 63 74 69 |ov.al,80|h.; acti|
|00004210| 76 65 20 66 6c 61 67 0a | 09 6d 6f 76 09 5b 73 69 |ve flag.|.mov.[si|
|00004220| 5d 2c 20 61 6c 0a 09 6d | 6f 76 09 63 78 2c 35 09 |], al..m|ov.cx,5.|
|00004230| 3b 20 72 65 74 72 79 20 | 63 6f 75 6e 74 0a 72 65 |; retry |count.re|
|00004240| 74 72 79 3a 09 70 75 73 | 68 09 63 78 0a 09 6d 6f |try:.pus|h.cx..mo|
|00004250| 76 09 64 78 2c 5b 73 69 | 5d 09 3b 20 64 72 69 76 |v.dx,[si|].; driv|
|00004260| 65 2c 20 68 65 61 64 0a | 09 6d 6f 76 09 63 78 2c |e, head.|.mov.cx,|
|00004270| 5b 73 69 2b 32 5d 09 3b | 20 63 79 6c 2c 20 73 65 |[si+2].;| cyl, se|
|00004280| 63 74 6f 72 0a 09 6d 6f | 76 09 62 78 2c 37 43 30 |ctor..mo|v.bx,7C0|
|00004290| 30 68 09 3b 20 64 65 73 | 74 69 6e 61 74 69 6f 6e |0h.; des|tination|
|000042a0| 20 28 65 73 3d 30 29 0a | 09 6d 6f 76 09 61 78 2c | (es=0).|.mov.ax,|
|000042b0| 30 32 30 31 68 09 3b 20 | 42 49 4f 53 20 72 65 61 |0201h.; |BIOS rea|
|000042c0| 64 20 6f 6e 65 20 73 65 | 63 74 6f 72 0a 09 69 6e |d one se|ctor..in|
|000042d0| 74 09 31 33 68 0a 09 6a | 6e 63 09 72 64 5f 6f 6b |t.13h..j|nc.rd_ok|
|000042e0| 0a 09 78 6f 72 09 61 78 | 2c 61 78 09 3b 20 72 65 |..xor.ax|,ax.; re|
|000042f0| 73 65 74 20 64 69 73 6b | 0a 09 69 6e 74 09 31 33 |set disk|..int.13|
|00004300| 68 0a 09 70 6f 70 09 63 | 78 0a 09 6c 6f 6f 70 09 |h..pop.c|x..loop.|
|00004310| 72 65 74 72 79 0a 09 6d | 6f 76 09 73 69 2c 20 6f |retry..m|ov.si, o|
|00004320| 66 66 73 65 74 20 6d 73 | 67 72 65 61 64 20 2b 20 |ffset ms|gread + |
|00004330| 43 4f 44 45 4f 52 47 0a | 09 6a 6d 70 09 65 72 72 |CODEORG.|.jmp.err|
|00004340| 6f 72 0a 72 64 5f 6f 6b | 3a 09 70 6f 70 09 63 78 |or.rd_ok|:.pop.cx|
|00004350| 0a 0a 3b 20 43 68 65 63 | 6b 20 66 6f 72 20 76 61 |..; Chec|k for va|
|00004360| 6c 69 64 20 6d 61 67 69 | 63 20 6e 75 6d 62 65 72 |lid magi|c number|
|00004370| 20 69 6e 20 73 65 63 6f | 6e 64 61 72 79 20 62 6f | in seco|ndary bo|
|00004380| 6f 74 20 73 65 63 74 6f | 72 0a 09 6d 6f 76 09 61 |ot secto|r..mov.a|
|00004390| 78 2c 20 30 41 41 35 35 | 68 0a 09 61 73 73 75 6d |x, 0AA55|h..assum|
|000043a0| 65 09 64 73 3a 73 65 67 | 30 09 09 3b 20 41 63 74 |e.ds:seg|0..; Act|
|000043b0| 75 61 6c 6c 79 2c 20 63 | 6f 64 65 73 65 67 20 3d |ually, c|odeseg =|
|000043c0| 3d 20 73 65 67 30 0a 09 | 63 6d 70 09 61 78 2c 20 |= seg0..|cmp.ax, |
|000043d0| 6d 61 67 69 63 32 0a 09 | 61 73 73 75 6d 65 09 64 |magic2..|assume.d|
|000043e0| 73 3a 63 6f 64 65 73 65 | 67 0a 09 6a 7a 09 6d 61 |s:codese|g..jz.ma|
|000043f0| 67 69 63 5f 6f 6b 0a 09 | 6d 6f 76 09 73 69 2c 20 |gic_ok..|mov.si, |
|00004400| 6f 66 66 73 65 74 20 6d | 73 67 69 6e 76 61 6c 69 |offset m|sginvali|
|00004410| 64 20 2b 20 43 4f 44 45 | 4f 52 47 0a 09 6a 6d 70 |d + CODE|ORG..jmp|
|00004420| 09 65 72 72 6f 72 0a 6d | 61 67 69 63 5f 6f 6b 3a |.error.m|agic_ok:|
|00004430| 0a 0a 3b 20 4d 61 6b 65 | 20 73 75 72 65 20 64 73 |..; Make| sure ds|
|00004440| 3a 73 69 20 70 6f 69 6e | 74 73 20 74 6f 20 74 68 |:si poin|ts to th|
|00004450| 65 20 62 6f 6f 74 65 64 | 20 70 61 72 74 69 74 69 |e booted| partiti|
|00004460| 6f 6e 2c 20 61 6e 64 0a | 3b 20 4a 75 6d 70 20 74 |on, and.|; Jump t|
|00004470| 6f 20 74 68 65 20 73 65 | 63 6f 6e 64 61 72 79 20 |o the se|condary |
|00004480| 62 6f 6f 74 20 70 72 6f | 67 72 61 6d 2e 0a 09 6a |boot pro|gram...j|
|00004490| 6d 70 09 66 61 72 20 70 | 74 72 20 62 65 67 69 6e |mp.far p|tr begin|
|000044a0| 32 0a 0a 3b 20 4a 75 6d | 70 20 68 65 72 65 20 77 |2..; Jum|p here w|
|000044b0| 69 74 68 20 73 69 3d 65 | 72 72 6f 72 2d 6d 65 73 |ith si=e|rror-mes|
|000044c0| 73 61 67 65 0a 65 72 72 | 6f 72 3a 0a 09 63 61 6c |sage.err|or:..cal|
|000044d0| 6c 09 70 75 74 73 0a 09 | 63 61 6c 6c 09 70 75 74 |l.puts..|call.put|
|000044e0| 6e 6c 0a 09 6a 6d 70 09 | 6d 65 6e 75 0a 0a 3b 2a |nl..jmp.|menu..;*|
|000044f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004500| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004510| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004520| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0a 3b 20 53 |********|****.; S|
|00004530| 75 62 72 6f 75 74 69 6e | 65 73 0a 3b 2a 2a 2a 2a |ubroutin|es.;****|
|00004540| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004550| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004560| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004570| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0a 43 52 09 45 51 55 |********|*.CR.EQU|
|00004580| 09 31 33 0a 4c 46 09 45 | 51 55 09 31 30 0a 54 41 |.13.LF.E|QU.10.TA|
|00004590| 42 09 45 51 55 09 20 39 | 0a 0a 70 75 74 63 09 70 |B.EQU. 9|..putc.p|
|000045a0| 72 6f 63 09 6e 65 61 72 | 09 09 3b 20 70 72 69 6e |roc.near|..; prin|
|000045b0| 74 20 63 68 61 72 20 69 | 6e 20 41 4c 0a 09 6d 6f |t char i|n AL..mo|
|000045c0| 76 09 61 68 2c 20 30 45 | 68 09 09 3b 20 75 73 65 |v.ah, 0E|h..; use|
|000045d0| 73 3a 20 61 78 2c 20 62 | 78 0a 09 6d 6f 76 09 62 |s: ax, b|x..mov.b|
|000045e0| 78 2c 20 30 37 0a 09 69 | 6e 74 09 31 30 68 0a 09 |x, 07..i|nt.10h..|
|000045f0| 72 65 74 0a 70 75 74 63 | 09 65 6e 64 70 0a 0a 70 |ret.putc|.endp..p|
|00004600| 75 74 6e 6c 09 70 72 6f | 63 09 6e 65 61 72 09 09 |utnl.pro|c.near..|
|00004610| 3b 20 70 72 69 6e 74 20 | 61 20 6e 65 77 6c 69 6e |; print |a newlin|
|00004620| 65 0a 09 6d 6f 76 09 61 | 6c 2c 20 43 52 09 09 3b |e..mov.a|l, CR..;|
|00004630| 20 75 73 65 73 3a 20 61 | 78 2c 20 62 78 0a 09 63 | uses: a|x, bx..c|
|00004640| 61 6c 6c 09 70 75 74 63 | 0a 09 6d 6f 76 09 61 6c |all.putc|..mov.al|
|00004650| 2c 20 4c 46 0a 09 63 61 | 6c 6c 09 70 75 74 63 0a |, LF..ca|ll.putc.|
|00004660| 09 72 65 74 0a 70 75 74 | 6e 6c 09 65 6e 64 70 0a |.ret.put|nl.endp.|
|00004670| 0a 70 75 74 73 09 70 72 | 6f 63 09 6e 65 61 72 09 |.puts.pr|oc.near.|
|00004680| 09 3b 20 70 72 69 6e 74 | 20 73 74 72 69 6e 67 20 |.; print| string |
|00004690| 61 74 20 61 64 64 72 65 | 73 73 20 53 49 0a 09 6d |at addre|ss SI..m|
|000046a0| 6f 76 09 63 78 2c 38 30 | 09 09 3b 20 53 74 6f 70 |ov.cx,80|..; Stop|
|000046b0| 20 61 74 20 6e 75 6c 6c | 20 6f 72 20 43 58 20 63 | at null| or CX c|
|000046c0| 68 61 72 73 0a 70 75 74 | 6e 3a 09 6c 6f 64 73 62 |hars.put|n:.lodsb|
|000046d0| 09 09 09 3b 20 75 73 65 | 73 3a 20 61 78 2c 20 62 |...; use|s: ax, b|
|000046e0| 78 2c 20 63 78 2c 20 73 | 69 0a 09 63 6d 70 09 61 |x, cx, s|i..cmp.a|
|000046f0| 6c 2c 30 0a 09 6a 7a 09 | 70 75 74 73 5f 65 0a 09 |l,0..jz.|puts_e..|
|00004700| 70 75 73 68 09 63 78 0a | 09 63 61 6c 6c 09 70 75 |push.cx.|.call.pu|
|00004710| 74 63 0a 09 70 6f 70 09 | 63 78 0a 09 6c 6f 6f 70 |tc..pop.|cx..loop|
|00004720| 09 70 75 74 6e 0a 70 75 | 74 73 5f 65 3a 09 72 65 |.putn.pu|ts_e:.re|
|00004730| 74 0a 70 75 74 73 09 65 | 6e 64 70 0a 0a 3b 2a 2a |t.puts.e|ndp..;**|
|00004740| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004750| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004760| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004770| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 3b 20 41 20 6c 69 74 |********|.; A lit|
|00004780| 74 6c 65 20 73 70 61 63 | 65 20 68 65 72 65 20 6d |tle spac|e here m|
|00004790| 61 6b 65 73 20 74 68 69 | 73 20 70 72 6f 67 72 61 |akes thi|s progra|
|000047a0| 6d 20 6c 69 76 65 20 68 | 61 70 70 69 6c 79 20 77 |m live h|appily w|
|000047b0| 69 74 68 0a 3b 20 53 70 | 65 65 64 53 74 6f 72 2c |ith.; Sp|eedStor,|
|000047c0| 20 77 68 69 63 68 20 77 | 61 6e 74 73 20 74 6f 20 | which w|ants to |
|000047d0| 77 72 69 74 65 20 74 79 | 70 65 2d 6f 76 65 72 72 |write ty|pe-overr|
|000047e0| 69 64 65 20 73 74 75 66 | 66 20 68 65 72 65 2e 0a |ide stuf|f here..|
|000047f0| 3b 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |;*******|********|
|00004800| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004810| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004820| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0a 0a 09 6f 72 |********|***...or|
|00004830| 67 09 31 30 30 68 0a 3b | 2a 2a 2a 2a 2a 2a 2a 2a |g.100h.;|********|
|00004840| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004850| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004860| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004870| 2a 2a 0a 3b 20 53 74 72 | 69 6e 67 73 0a 3b 2a 2a |**.; Str|ings.;**|
|00004880| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004890| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000048a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000048b0| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 0a 70 72 6f 6d 70 74 |********|..prompt|
|000048c0| 09 09 64 62 09 22 42 6f | 6f 74 20 70 61 72 74 69 |..db."Bo|ot parti|
|000048d0| 74 69 6f 6e 3f 20 28 31 | 2d 34 29 20 22 2c 30 0a |tion? (1|-4) ",0.|
|000048e0| 6d 73 67 65 6d 70 74 79 | 09 64 62 09 22 45 6d 70 |msgempty|.db."Emp|
|000048f0| 74 79 21 22 2c 30 0a 6d | 73 67 72 65 61 64 09 09 |ty!",0.m|sgread..|
|00004900| 64 62 09 22 52 65 61 64 | 20 65 72 72 6f 72 21 22 |db."Read| error!"|
|00004910| 2c 30 0a 6d 73 67 69 6e | 76 61 6c 69 64 09 64 62 |,0.msgin|valid.db|
|00004920| 09 22 49 6e 76 61 6c 69 | 64 21 22 2c 30 0a 0a 63 |."Invali|d!",0..c|
|00004930| 6f 64 65 73 65 67 09 65 | 6e 64 73 0a 0a 3b 20 44 |odeseg.e|nds..; D|
|00004940| 65 63 6c 61 72 65 73 20 | 73 6f 6d 65 20 6f 66 66 |eclares |some off|
|00004950| 73 65 74 73 20 69 6e 20 | 73 65 67 6d 65 6e 74 20 |sets in |segment |
|00004960| 7a 65 72 6f 0a 73 65 67 | 30 09 73 65 67 6d 65 6e |zero.seg|0.segmen|
|00004970| 74 09 61 74 20 30 0a 0a | 09 6f 72 67 09 43 4f 44 |t.at 0..|.org.COD|
|00004980| 45 4f 52 47 20 2b 20 28 | 6f 66 66 73 65 74 20 62 |EORG + (|offset b|
|00004990| 65 67 69 6e 20 2d 20 6f | 66 66 73 65 74 20 6d 61 |egin - o|ffset ma|
|000049a0| 69 6e 29 0a 62 65 67 69 | 6e 31 09 65 71 75 09 24 |in).begi|n1.equ.$|
|000049b0| 0a 0a 3b 20 48 65 72 65 | 20 69 73 20 74 68 65 20 |..; Here| is the |
|000049c0| 6e 61 6d 65 20 74 61 62 | 6c 65 20 75 73 65 64 20 |name tab|le used |
|000049d0| 66 6f 72 20 74 68 65 20 | 70 61 72 74 69 74 69 6f |for the |partitio|
|000049e0| 6e 20 6d 65 6e 75 2e 0a | 3b 20 54 68 65 20 61 63 |n menu..|; The ac|
|000049f0| 63 6f 6d 70 61 6e 79 69 | 6e 67 20 66 64 69 73 6b |companyi|ng fdisk|
|00004a00| 20 70 72 6f 67 72 61 6d | 20 75 70 64 61 74 65 73 | program| updates|
|00004a10| 20 74 68 69 73 20 74 61 | 62 6c 65 2e 0a 09 6f 72 | this ta|ble...or|
|00004a20| 67 09 43 4f 44 45 4f 52 | 47 20 2b 20 31 38 30 68 |g.CODEOR|G + 180h|
|00004a30| 0a 70 6e 61 6d 65 73 09 | 64 62 09 33 32 20 64 75 |.pnames.|db.32 du|
|00004a40| 70 28 3f 29 0a 0a 3b 20 | 54 68 65 20 6c 6f 63 61 |p(?)..; |The loca|
|00004a50| 74 69 6f 6e 73 20 61 66 | 74 65 72 20 31 41 45 20 |tions af|ter 1AE |
|00004a60| 61 72 65 20 28 72 65 70 | 6f 72 74 65 64 6c 79 29 |are (rep|ortedly)|
|00004a70| 20 75 73 65 64 20 62 79 | 20 73 6f 6d 65 0a 3b 20 | used by| some.; |
|00004a80| 57 65 73 74 65 72 6e 20 | 44 69 67 69 74 61 6c 20 |Western |Digital |
|00004a90| 63 6f 6e 74 72 6f 6c 6c | 65 72 73 20 69 6e 20 22 |controll|ers in "|
|00004aa0| 61 75 74 6f 2d 63 6f 6e | 66 69 67 75 72 65 22 20 |auto-con|figure" |
|00004ab0| 6d 6f 64 65 2e 0a 3b 20 | 44 6f 6e 27 74 20 70 75 |mode..; |Don't pu|
|00004ac0| 74 20 61 6e 79 74 68 69 | 6e 67 20 63 72 69 74 69 |t anythi|ng criti|
|00004ad0| 63 61 6c 20 62 65 74 77 | 65 65 6e 20 68 65 72 65 |cal betw|een here|
|00004ae0| 20 61 6e 64 20 70 74 61 | 62 6c 65 2e 0a 0a 3b 20 | and pta|ble...; |
|00004af0| 48 65 72 65 20 69 73 20 | 74 68 65 20 70 61 72 74 |Here is |the part|
|00004b00| 69 74 69 6f 6e 20 74 61 | 62 6c 65 0a 09 6f 72 67 |ition ta|ble..org|
|00004b10| 09 43 4f 44 45 4f 52 47 | 20 2b 20 31 42 45 68 0a |.CODEORG| + 1BEh.|
|00004b20| 70 74 61 62 6c 65 09 64 | 62 09 28 34 20 2a 20 31 |ptable.d|b.(4 * 1|
|00004b30| 36 29 20 64 75 70 28 3f | 29 0a 0a 3b 20 48 65 72 |6) dup(?|)..; Her|
|00004b40| 65 20 69 73 20 77 68 65 | 72 65 20 74 68 65 20 73 |e is whe|re the s|
|00004b50| 65 63 6f 6e 64 61 72 79 | 20 62 6f 6f 74 20 73 65 |econdary| boot se|
|00004b60| 63 74 6f 72 20 69 73 20 | 6c 6f 61 64 65 64 2e 0a |ctor is |loaded..|
|00004b70| 09 6f 72 67 09 37 43 30 | 30 68 0a 62 65 67 69 6e |.org.7C0|0h.begin|
|00004b80| 32 09 65 71 75 09 24 0a | 09 6f 72 67 09 37 44 46 |2.equ.$.|.org.7DF|
|00004b90| 45 68 0a 6d 61 67 69 63 | 32 09 64 77 09 3f 0a 73 |Eh.magic|2.dw.?.s|
|00004ba0| 65 67 30 09 65 6e 64 73 | 0a 0a 09 65 6e 64 09 6d |eg0.ends|...end.m|
|00004bb0| 61 69 6e 0a 53 48 41 52 | 5f 45 4f 46 0a 69 66 20 |ain.SHAR|_EOF.if |
|00004bc0| 74 65 73 74 20 35 30 30 | 35 20 2d 6e 65 20 22 60 |test 500|5 -ne "`|
|00004bd0| 77 63 20 2d 63 20 3c 20 | 27 62 6f 6f 74 6d 65 6e |wc -c < |'bootmen|
|00004be0| 75 2e 61 73 6d 27 60 22 | 0a 74 68 65 6e 0a 09 65 |u.asm'`"|.then..e|
|00004bf0| 63 68 6f 20 73 68 61 72 | 3a 20 65 72 72 6f 72 20 |cho shar|: error |
|00004c00| 74 72 61 6e 73 6d 69 74 | 74 69 6e 67 20 22 27 62 |transmit|ting "'b|
|00004c10| 6f 6f 74 6d 65 6e 75 2e | 61 73 6d 27 22 20 27 28 |ootmenu.|asm'" '(|
|00004c20| 73 68 6f 75 6c 64 20 68 | 61 76 65 20 62 65 65 6e |should h|ave been|
|00004c30| 20 35 30 30 35 20 63 68 | 61 72 61 63 74 65 72 73 | 5005 ch|aracters|
|00004c40| 29 27 0a 66 69 0a 66 69 | 20 23 20 65 6e 64 20 6f |)'.fi.fi| # end o|
|00004c50| 66 20 6f 76 65 72 77 72 | 69 74 69 6e 67 20 63 68 |f overwr|iting ch|
|00004c60| 65 63 6b 0a 65 63 68 6f | 20 73 68 61 72 3a 20 65 |eck.echo| shar: e|
|00004c70| 78 74 72 61 63 74 69 6e | 67 20 22 27 62 6f 6f 74 |xtractin|g "'boot|
|00004c80| 61 75 74 6f 2e 61 73 6d | 27 22 20 27 28 36 34 32 |auto.asm|'" '(642|
|00004c90| 37 20 63 68 61 72 61 63 | 74 65 72 73 29 27 0a 69 |7 charac|ters)'.i|
|00004ca0| 66 20 74 65 73 74 20 2d | 66 20 27 62 6f 6f 74 61 |f test -|f 'boota|
|00004cb0| 75 74 6f 2e 61 73 6d 27 | 0a 74 68 65 6e 0a 09 65 |uto.asm'|.then..e|
|00004cc0| 63 68 6f 20 73 68 61 72 | 3a 20 77 69 6c 6c 20 6e |cho shar|: will n|
|00004cd0| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00004ce0| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 22 27 62 6f |isting f|ile "'bo|
|00004cf0| 6f 74 61 75 74 6f 2e 61 | 73 6d 27 22 0a 65 6c 73 |otauto.a|sm'".els|
|00004d00| 65 0a 63 61 74 20 3c 3c | 20 5c 53 48 41 52 5f 45 |e.cat <<| \SHAR_E|
|00004d10| 4f 46 20 3e 20 27 62 6f | 6f 74 61 75 74 6f 2e 61 |OF > 'bo|otauto.a|
|00004d20| 73 6d 27 0a 09 50 41 47 | 45 20 36 30 2c 31 33 32 |sm'..PAG|E 60,132|
|00004d30| 0a 3b 09 62 6f 6f 74 61 | 75 74 6f 3a 20 20 41 75 |.;.boota|uto: Au|
|00004d40| 74 6f 2d 62 6f 6f 74 20 | 76 65 72 73 69 6f 6e 20 |to-boot |version |
|00004d50| 6f 66 20 42 4f 4f 54 4d | 45 4e 55 20 70 72 6f 67 |of BOOTM|ENU prog|
|00004d60| 72 61 6d 0a 3b 09 62 79 | 20 47 6f 72 64 6f 6e 20 |ram.;.by| Gordon |
|00004d70| 57 2e 20 52 6f 73 73 2c | 20 41 75 67 20 31 39 39 |W. Ross,| Aug 199|
|00004d80| 30 0a 3b 0a 3b 09 53 65 | 65 20 74 68 65 20 66 69 |0.;.;.Se|e the fi|
|00004d90| 6c 65 20 62 6f 6f 74 6d | 65 6e 75 2e 64 6f 63 20 |le bootm|enu.doc |
|00004da0| 66 6f 72 20 75 73 65 72 | 20 69 6e 73 74 72 75 63 |for user| instruc|
|00004db0| 74 69 6f 6e 73 2e 0a 3b | 0a 3b 09 54 68 65 20 66 |tions..;|.;.The f|
|00004dc0| 6f 6c 6c 6f 77 69 6e 67 | 20 69 73 20 61 6e 20 6f |ollowing| is an o|
|00004dd0| 75 74 6c 69 6e 65 20 6f | 66 20 74 68 65 20 70 72 |utline o|f the pr|
|00004de0| 6f 67 72 61 6d 3a 0a 3b | 0a 3b 09 52 65 6c 6f 63 |ogram:.;|.;.Reloc|
|00004df0| 61 74 65 20 73 65 6c 66 | 20 66 72 6f 6d 20 30 78 |ate self| from 0x|
|00004e00| 37 43 30 30 20 74 6f 20 | 30 78 30 36 30 30 0a 3b |7C00 to |0x0600.;|
|00004e10| 09 44 69 73 70 6c 61 79 | 20 6d 65 73 73 61 67 65 |.Display| message|
|00004e20| 20 22 42 6f 6f 74 69 6e | 67 20 66 72 6f 6d 20 48 | "Bootin|g from H|
|00004e30| 44 30 2c 22 0a 3b 09 53 | 65 61 72 63 68 20 70 61 |D0,".;.S|earch pa|
|00004e40| 72 74 69 74 69 6f 6e 20 | 74 61 62 6c 65 20 66 6f |rtition |table fo|
|00004e50| 72 20 61 6e 20 61 63 74 | 69 76 65 20 65 6e 74 72 |r an act|ive entr|
|00004e60| 79 0a 3b 09 49 66 20 61 | 6e 20 61 63 74 69 76 65 |y.;.If a|n active|
|00004e70| 20 70 61 72 74 69 74 69 | 6f 6e 20 69 73 20 66 6f | partiti|on is fo|
|00004e80| 75 6e 64 2c 0a 3b 09 09 | 44 65 6c 61 79 20 77 68 |und,.;..|Delay wh|
|00004e90| 69 6c 65 20 77 61 74 63 | 68 69 6e 67 20 66 6f 72 |ile watc|hing for|
|00004ea0| 20 6b 65 79 20 70 72 65 | 73 73 20 28 35 20 73 65 | key pre|ss (5 se|
|00004eb0| 63 2e 29 0a 3b 09 09 49 | 66 20 28 6b 65 79 20 70 |c.).;..I|f (key p|
|00004ec0| 72 65 73 73 65 64 29 20 | 47 4f 54 4f 20 6d 65 6e |ressed) |GOTO men|
|00004ed0| 75 3a 0a 3b 09 09 45 6c | 73 65 20 47 4f 54 4f 20 |u:.;..El|se GOTO |
|00004ee0| 62 6f 6f 74 3a 0a 3b 09 | 09 45 6e 64 49 66 0a 3b |boot:.;.|.EndIf.;|
|00004ef0| 09 45 6c 73 65 20 28 6e | 6f 20 61 63 74 69 76 65 |.Else (n|o active|
|00004f00| 20 70 61 72 74 69 74 69 | 6f 6e 29 0a 3b 20 6d 65 | partiti|on).; me|
|00004f10| 6e 75 3a 09 09 44 69 73 | 70 6c 61 79 20 70 61 72 |nu:..Dis|play par|
|00004f20| 74 69 74 69 6f 6e 20 6d | 65 6e 75 0a 3b 09 09 50 |tition m|enu.;..P|
|00004f30| 72 6f 6d 70 74 20 66 6f | 72 20 61 6e 64 20 72 65 |rompt fo|r and re|
|00004f40| 61 64 20 75 73 65 72 20 | 73 65 6c 65 63 74 69 6f |ad user |selectio|
|00004f50| 6e 0a 3b 09 45 6e 64 49 | 66 0a 3b 20 62 6f 6f 74 |n.;.EndI|f.; boot|
|00004f60| 3a 09 42 6f 6f 74 20 66 | 72 6f 6d 20 74 68 65 20 |:.Boot f|rom the |
|00004f70| 73 65 6c 65 63 74 65 64 | 20 70 61 72 74 69 74 69 |selected| partiti|
|00004f80| 6f 6e 3a 0a 3b 09 28 77 | 61 73 20 73 65 6c 65 63 |on:.;.(w|as selec|
|00004f90| 74 65 64 20 62 79 20 75 | 73 65 72 2c 20 6f 72 20 |ted by u|ser, or |
|00004fa0| 77 61 73 20 61 63 74 69 | 76 65 29 0a 3b 09 52 65 |was acti|ve).;.Re|
|00004fb0| 61 64 20 66 69 72 73 74 | 20 73 65 63 74 6f 72 20 |ad first| sector |
|00004fc0| 6f 66 20 73 65 6c 65 63 | 74 65 64 20 70 61 72 74 |of selec|ted part|
|00004fd0| 69 74 69 6f 6e 20 69 6e | 74 6f 20 30 78 37 63 30 |ition in|to 0x7c0|
|00004fe0| 30 0a 3b 09 56 65 72 69 | 66 79 20 67 6f 6f 64 20 |0.;.Veri|fy good |
|00004ff0| 73 65 63 6f 6e 64 2d 73 | 74 61 67 65 20 62 6f 6f |second-s|tage boo|
|00005000| 74 20 73 65 63 74 6f 72 | 20 28 6d 61 67 69 63 20 |t sector| (magic |
|00005010| 77 6f 72 64 29 0a 3b 09 | 53 65 74 2d 75 70 20 63 |word).;.|Set-up c|
|00005020| 6f 72 72 65 63 74 20 72 | 65 67 69 73 74 65 72 20 |orrect r|egister |
|00005030| 76 61 6c 75 65 73 20 61 | 6e 64 20 6a 75 6d 70 20 |values a|nd jump |
|00005040| 74 6f 20 69 74 2e 0a 3b | 09 49 66 20 28 45 72 72 |to it..;|.If (Err|
|00005050| 6f 72 73 20 64 75 72 69 | 6e 67 20 62 6f 6f 74 29 |ors duri|ng boot)|
|00005060| 20 7b 20 63 6f 6d 70 6c | 61 69 6e 3b 20 47 4f 54 | { compl|ain; GOT|
|00005070| 4f 20 6d 65 6e 75 3a 20 | 7d 0a 3b 0a 0a 44 45 4c |O menu: |}.;..DEL|
|00005080| 41 59 09 65 71 75 09 35 | 2a 31 38 09 3b 20 69 6e |AY.equ.5|*18.; in|
|00005090| 20 74 69 63 6b 73 20 28 | 31 2f 31 38 20 73 65 63 | ticks (|1/18 sec|
|000050a0| 2e 29 0a 43 4f 44 45 4f | 52 47 09 65 71 75 20 30 |.).CODEO|RG.equ 0|
|000050b0| 36 30 30 68 09 3b 20 6f | 66 66 73 65 74 20 6f 66 |600h.; o|ffset of|
|000050c0| 20 74 68 69 73 20 63 6f | 64 65 20 69 6e 20 63 6f | this co|de in co|
|000050d0| 64 65 20 73 65 67 0a 3b | 20 41 6c 6c 20 76 61 6c |de seg.;| All val|
|000050e0| 75 65 73 20 63 6f 6d 70 | 75 74 65 64 20 66 72 6f |ues comp|uted fro|
|000050f0| 6d 20 6f 66 66 73 65 74 | 73 20 69 6e 20 63 6f 64 |m offset|s in cod|
|00005100| 65 73 65 67 20 6e 65 65 | 64 20 74 6f 20 62 65 0a |eseg nee|d to be.|
|00005110| 3b 20 61 64 6a 75 73 74 | 65 64 20 62 79 20 61 64 |; adjust|ed by ad|
|00005120| 64 69 6e 67 20 43 4f 44 | 45 4f 52 47 20 74 6f 20 |ding COD|EORG to |
|00005130| 65 61 63 68 2e 20 20 54 | 68 65 20 6f 62 76 69 6f |each. T|he obvio|
|00005140| 75 73 20 6d 65 74 68 6f | 64 2c 0a 3b 20 75 73 69 |us metho|d,.; usi|
|00005150| 6e 67 20 22 6f 72 67 20 | 43 4f 44 45 4f 52 47 22 |ng "org |CODEORG"|
|00005160| 20 63 61 75 73 65 73 20 | 4d 41 53 4d 2f 4c 49 4e | causes |MASM/LIN|
|00005170| 4b 20 74 6f 20 66 69 6c | 6c 20 69 6e 20 74 68 65 |K to fil|l in the|
|00005180| 20 73 70 61 63 65 2e 0a | 0a 63 6f 64 65 73 65 67 | space..|.codeseg|
|00005190| 09 73 65 67 6d 65 6e 74 | 0a 09 61 73 73 75 6d 65 |.segment|..assume|
|000051a0| 20 63 73 3a 63 6f 64 65 | 73 65 67 2c 20 64 73 3a | cs:code|seg, ds:|
|000051b0| 63 6f 64 65 73 65 67 0a | 0a 3b 20 49 6e 69 74 69 |codeseg.|.; Initi|
|000051c0| 61 6c 20 70 72 6f 67 72 | 61 6d 20 65 6e 74 72 79 |al progr|am entry|
|000051d0| 20 70 6f 69 6e 74 0a 3b | 20 28 41 73 73 65 6d 62 | point.;| (Assemb|
|000051e0| 6c 65 72 20 69 73 20 74 | 6f 6c 64 20 74 68 69 73 |ler is t|old this|
|000051f0| 20 69 73 20 61 74 20 6f | 66 66 73 65 74 20 7a 65 | is at o|ffset ze|
|00005200| 72 6f 2e 29 0a 0a 6d 61 | 69 6e 3a 0a 09 3b 20 53 |ro.)..ma|in:..; S|
|00005210| 65 74 20 75 70 20 74 68 | 65 20 73 74 61 63 6b 0a |et up th|e stack.|
|00005220| 09 78 6f 72 09 61 78 2c | 61 78 0a 09 6d 6f 76 09 |.xor.ax,|ax..mov.|
|00005230| 73 69 2c 37 43 30 30 68 | 09 3b 20 6a 75 73 74 20 |si,7C00h|.; just |
|00005240| 62 65 66 6f 72 65 20 6c | 6f 61 64 20 6c 6f 63 61 |before l|oad loca|
|00005250| 74 69 6f 6e 0a 09 63 6c | 69 0a 09 6d 6f 76 09 73 |tion..cl|i..mov.s|
|00005260| 73 2c 61 78 0a 09 6d 6f | 76 09 73 70 2c 73 69 0a |s,ax..mo|v.sp,si.|
|00005270| 09 73 74 69 0a 0a 3b 20 | 52 65 6c 6f 63 61 74 65 |.sti..; |Relocate|
|00005280| 20 74 68 69 73 20 63 6f | 64 65 20 66 72 6f 6d 20 | this co|de from |
|00005290| 30 3a 37 43 30 30 68 20 | 74 6f 20 30 3a 43 4f 44 |0:7C00h |to 0:COD|
|000052a0| 45 4f 52 47 0a 09 6d 6f | 76 09 64 73 2c 61 78 0a |EORG..mo|v.ds,ax.|
|000052b0| 09 6d 6f 76 09 65 73 2c | 61 78 0a 09 6d 6f 76 09 |.mov.es,|ax..mov.|
|000052c0| 73 69 2c 37 43 30 30 68 | 09 3b 20 77 68 65 72 65 |si,7C00h|.; where|
|000052d0| 20 74 68 69 73 20 70 72 | 6f 67 72 61 6d 20 69 73 | this pr|ogram is|
|000052e0| 20 69 6e 69 74 69 61 6c | 6c 79 20 6c 6f 61 64 65 | initial|ly loade|
|000052f0| 64 0a 09 6d 6f 76 09 64 | 69 2c 43 4f 44 45 4f 52 |d..mov.d|i,CODEOR|
|00005300| 47 0a 09 6d 6f 76 09 63 | 78 2c 30 31 30 30 68 0a |G..mov.c|x,0100h.|
|00005310| 09 63 6c 64 0a 09 72 65 | 70 09 6d 6f 76 73 77 0a |.cld..re|p.movsw.|
|00005320| 0a 3b 20 4a 75 6d 70 20 | 74 6f 20 72 65 6c 6f 63 |.; Jump |to reloc|
|00005330| 61 74 65 64 20 63 6f 64 | 65 20 28 30 3a 43 4f 44 |ated cod|e (0:COD|
|00005340| 45 4f 52 47 29 0a 09 6a | 6d 70 09 66 61 72 20 70 |EORG)..j|mp.far p|
|00005350| 74 72 20 62 65 67 69 6e | 31 0a 62 65 67 69 6e 09 |tr begin|1.begin.|
|00005360| 65 71 75 09 24 0a 09 6d | 6f 76 09 62 70 2c 73 70 |equ.$..m|ov.bp,sp|
|00005370| 09 3b 20 66 72 61 6d 65 | 20 70 6f 69 6e 74 65 72 |.; frame| pointer|
|00005380| 20 3d 20 30 78 37 43 30 | 30 0a 09 73 75 62 09 73 | = 0x7C0|0..sub.s|
|00005390| 70 2c 34 0a 3b 20 32 20 | 77 6f 72 64 73 20 6f 66 |p,4.; 2 |words of|
|000053a0| 20 6c 6f 63 61 6c 20 73 | 74 6f 72 61 67 65 3a 0a | local s|torage:.|
|000053b0| 3b 09 5b 62 70 2d 32 5d | 20 3d 20 70 74 61 62 6c |;.[bp-2]| = ptabl|
|000053c0| 65 20 69 6e 64 65 78 20 | 5b 30 2d 33 5d 0a 3b 09 |e index |[0-3].;.|
|000053d0| 5b 62 70 2d 34 5d 20 3d | 20 74 65 6d 70 6f 72 61 |[bp-4] =| tempora|
|000053e0| 72 79 20 76 61 6c 75 65 | 0a 0a 3b 20 44 69 73 70 |ry value|..; Disp|
|000053f0| 6c 61 79 20 6d 65 73 73 | 61 67 65 20 22 42 6f 6f |lay mess|age "Boo|
|00005400| 74 20 64 65 76 69 63 65 | 3a 20 48 44 30 22 0a 09 |t device|: HD0"..|
|00005410| 6d 6f 76 09 73 69 2c 20 | 6f 66 66 73 65 74 20 62 |mov.si, |offset b|
|00005420| 6f 6f 74 64 65 76 20 2b | 20 43 4f 44 45 4f 52 47 |ootdev +| CODEORG|
|00005430| 0a 09 63 61 6c 6c 09 70 | 75 74 73 0a 0a 3b 20 53 |..call.p|uts..; S|
|00005440| 65 61 72 63 68 20 70 61 | 72 74 69 74 69 6f 6e 20 |earch pa|rtition |
|00005450| 74 61 62 6c 65 20 66 6f | 72 20 61 6e 20 61 63 74 |table fo|r an act|
|00005460| 69 76 65 20 65 6e 74 72 | 79 0a 09 6d 6f 76 09 61 |ive entr|y..mov.a|
|00005470| 6c 2c 30 0a 73 65 61 72 | 63 68 3a 0a 09 63 61 6c |l,0.sear|ch:..cal|
|00005480| 6c 09 61 64 64 72 5f 70 | 74 09 3b 20 73 69 20 3d |l.addr_p|t.; si =|
|00005490| 20 26 20 70 74 61 62 6c | 65 5b 41 4c 5d 0a 09 6d | & ptabl|e[AL]..m|
|000054a0| 6f 76 09 44 4c 2c 5b 73 | 69 5d 0a 09 63 6d 70 09 |ov.DL,[s|i]..cmp.|
|000054b0| 44 4c 2c 38 30 68 0a 09 | 6a 7a 09 66 6f 75 6e 64 |DL,80h..|jz.found|
|000054c0| 0a 09 69 6e 63 09 61 6c | 0a 09 63 6d 70 09 61 6c |..inc.al|..cmp.al|
|000054d0| 2c 30 34 0a 09 6a 62 09 | 73 65 61 72 63 68 0a 3b |,04..jb.|search.;|
|000054e0| 20 41 63 74 69 76 65 20 | 70 61 72 74 69 74 69 6f | Active |partitio|
|000054f0| 6e 20 6e 6f 74 20 66 6f | 75 6e 64 0a 09 6a 6d 70 |n not fo|und..jmp|
|00005500| 09 6d 65 6e 75 0a 0a 66 | 6f 75 6e 64 3a 09 3b 20 |.menu..f|ound:.; |
|00005510| 46 6f 75 6e 64 20 61 20 | 70 61 72 74 69 74 69 6f |Found a |partitio|
|00005520| 6e 20 6d 61 72 6b 65 64 | 20 61 63 74 69 76 65 2e |n marked| active.|
|00005530| 0a 09 6d 6f 76 09 5b 62 | 70 2d 32 5d 2c 61 78 09 |..mov.[b|p-2],ax.|
|00005540| 3b 20 53 61 76 65 20 74 | 68 65 20 70 74 61 62 6c |; Save t|he ptabl|
|00005550| 65 20 61 72 72 61 79 20 | 69 6e 64 65 78 0a 0a 3b |e array |index..;|
|00005560| 20 44 65 6c 61 79 20 77 | 68 69 6c 65 20 77 61 74 | Delay w|hile wat|
|00005570| 63 68 69 6e 67 20 66 6f | 72 20 6b 65 79 20 70 72 |ching fo|r key pr|
|00005580| 65 73 73 20 28 32 20 73 | 65 63 2e 29 0a 3b 20 47 |ess (2 s|ec.).; G|
|00005590| 65 74 20 73 74 61 72 74 | 20 74 69 6d 65 2c 20 63 |et start| time, c|
|000055a0| 6f 6d 70 75 74 65 20 65 | 6e 64 20 74 69 6d 65 2e |ompute e|nd time.|
|000055b0| 0a 09 6d 6f 76 09 61 68 | 2c 30 30 0a 09 69 6e 74 |..mov.ah|,00..int|
|000055c0| 09 31 41 68 09 09 3b 20 | 42 49 4f 53 20 67 65 74 |.1Ah..; |BIOS get|
|000055d0| 20 74 69 6d 65 20 6f 66 | 20 64 61 79 0a 09 61 64 | time of| day..ad|
|000055e0| 64 09 64 78 2c 20 44 45 | 4c 41 59 09 3b 20 63 6f |d.dx, DE|LAY.; co|
|000055f0| 6d 70 75 74 65 20 65 6e | 64 20 74 69 6d 65 0a 09 |mpute en|d time..|
|00005600| 6d 6f 76 09 5b 62 70 2d | 34 5d 2c 64 78 09 3b 20 |mov.[bp-|4],dx.; |
|00005610| 73 61 76 65 20 65 78 70 | 69 72 61 74 69 6f 6e 20 |save exp|iration |
|00005620| 74 69 6d 65 0a 0a 3b 20 | 43 68 65 63 6b 20 66 6f |time..; |Check fo|
|00005630| 72 20 6b 65 79 20 70 72 | 65 73 73 0a 77 61 69 74 |r key pr|ess.wait|
|00005640| 6b 65 79 3a 0a 09 6d 6f | 76 09 61 68 2c 31 0a 09 |key:..mo|v.ah,1..|
|00005650| 69 6e 74 09 31 36 68 09 | 09 3b 20 42 49 4f 53 20 |int.16h.|.; BIOS |
|00005660| 4b 65 79 62 6f 61 72 64 | 0a 09 6a 6e 7a 09 6d 65 |Keyboard|..jnz.me|
|00005670| 6e 75 09 3b 20 6b 65 79 | 20 70 72 65 73 73 65 64 |nu.; key| pressed|
|00005680| 0a 0a 3b 20 43 68 65 63 | 6b 20 66 6f 72 20 65 78 |..; Chec|k for ex|
|00005690| 70 69 72 61 74 69 6f 6e | 20 6f 66 20 64 65 6c 61 |piration| of dela|
|000056a0| 79 0a 09 6d 6f 76 09 61 | 68 2c 30 30 0a 09 69 6e |y..mov.a|h,00..in|
|000056b0| 74 09 31 41 68 09 09 3b | 20 42 49 4f 53 20 67 65 |t.1Ah..;| BIOS ge|
|000056c0| 74 20 74 69 6d 65 20 6f | 66 20 64 61 79 0a 09 73 |t time o|f day..s|
|000056d0| 75 62 09 64 78 2c 5b 62 | 70 2d 34 5d 0a 09 6a 73 |ub.dx,[b|p-4]..js|
|000056e0| 09 77 61 69 74 6b 65 79 | 09 3b 20 64 65 6c 61 79 |.waitkey|.; delay|
|000056f0| 20 6e 6f 74 20 65 78 70 | 69 72 65 64 0a 0a 3b 20 | not exp|ired..; |
|00005700| 44 65 6c 61 79 20 68 61 | 73 20 65 78 70 69 72 65 |Delay ha|s expire|
|00005710| 64 2c 20 73 6f 20 62 6f | 6f 74 20 74 68 65 20 61 |d, so bo|ot the a|
|00005720| 63 74 69 76 65 20 70 61 | 72 74 69 74 69 6f 6e 0a |ctive pa|rtition.|
|00005730| 09 6d 6f 76 09 61 6c 2c | 27 2c 27 0a 09 63 61 6c |.mov.al,|','..cal|
|00005740| 6c 09 70 75 74 63 0a 09 | 6d 6f 76 09 61 78 2c 5b |l.putc..|mov.ax,[|
|00005750| 62 70 2d 32 5d 09 3b 20 | 70 74 61 62 6c 65 20 69 |bp-2].; |ptable i|
|00005760| 6e 64 65 78 0a 09 3b 20 | 74 68 65 20 69 6e 64 65 |ndex..; |the inde|
|00005770| 78 20 61 6e 64 20 6e 65 | 77 6c 69 6e 65 20 61 72 |x and ne|wline ar|
|00005780| 65 20 70 72 69 6e 74 65 | 64 20 6c 61 74 65 72 0a |e printe|d later.|
|00005790| 09 6a 6d 70 09 62 6f 6f | 74 0a 0a 3b 20 44 69 73 |.jmp.boo|t..; Dis|
|000057a0| 70 6c 61 79 20 70 61 72 | 74 69 74 69 6f 6e 20 6d |play par|tition m|
|000057b0| 65 6e 75 0a 6d 65 6e 75 | 3a 0a 09 6d 6f 76 09 61 |enu.menu|:..mov.a|
|000057c0| 68 2c 31 09 09 3b 20 66 | 6c 75 73 68 20 69 6e 70 |h,1..; f|lush inp|
|000057d0| 75 74 0a 09 69 6e 74 09 | 31 36 68 0a 09 6a 7a 09 |ut..int.|16h..jz.|
|000057e0| 66 6c 5f 64 6f 6e 65 0a | 09 6d 6f 76 09 61 68 2c |fl_done.|.mov.ah,|
|000057f0| 30 0a 09 69 6e 74 09 31 | 36 68 0a 09 6a 6d 70 09 |0..int.1|6h..jmp.|
|00005800| 6d 65 6e 75 0a 66 6c 5f | 64 6f 6e 65 3a 0a 0a 3b |menu.fl_|done:..;|
|00005810| 20 50 72 69 6e 74 20 70 | 61 72 74 69 74 69 6f 6e | Print p|artition|
|00005820| 20 6d 65 6e 75 20 66 72 | 6f 6d 20 6e 61 6d 65 20 | menu fr|om name |
|00005830| 74 61 62 6c 65 0a 0a 09 | 63 61 6c 6c 09 70 75 74 |table...|call.put|
|00005840| 6e 6c 09 09 3b 20 70 72 | 69 6e 74 20 6e 65 77 6c |nl..; pr|int newl|
|00005850| 69 6e 65 0a 09 6d 6f 76 | 09 73 69 2c 20 6f 66 66 |ine..mov|.si, off|
|00005860| 73 65 74 20 70 6e 61 6d | 65 73 20 3b 20 6e 6f 20 |set pnam|es ; no |
|00005870| 6f 72 67 20 66 69 78 2d | 75 70 20 68 65 72 65 0a |org fix-|up here.|
|00005880| 09 6d 6f 76 09 61 6c 2c | 20 27 31 27 0a 70 72 6e |.mov.al,| '1'.prn|
|00005890| 61 6d 65 3a 0a 09 70 75 | 73 68 09 73 69 0a 09 70 |ame:..pu|sh.si..p|
|000058a0| 75 73 68 09 61 78 0a 0a | 09 63 61 6c 6c 09 70 75 |ush.ax..|.call.pu|
|000058b0| 74 63 0a 09 6d 6f 76 09 | 61 6c 2c 27 20 27 0a 09 |tc..mov.|al,' '..|
|000058c0| 63 61 6c 6c 09 70 75 74 | 63 0a 09 6d 6f 76 09 63 |call.put|c..mov.c|
|000058d0| 78 2c 38 09 09 3b 20 6d | 61 78 69 6d 75 6d 20 6e |x,8..; m|aximum n|
|000058e0| 61 6d 65 20 6c 65 6e 67 | 74 68 0a 09 63 61 6c 6c |ame leng|th..call|
|000058f0| 09 70 75 74 6e 0a 09 63 | 61 6c 6c 09 70 75 74 6e |.putn..c|all.putn|
|00005900| 6c 0a 0a 09 70 6f 70 09 | 61 78 0a 09 70 6f 70 09 |l...pop.|ax..pop.|
|00005910| 73 69 0a 09 61 64 64 09 | 73 69 2c 38 0a 09 69 6e |si..add.|si,8..in|
|00005920| 63 09 61 6c 0a 09 63 6d | 70 09 61 6c 2c 27 34 27 |c.al..cm|p.al,'4'|
|00005930| 0a 09 6a 62 65 09 70 72 | 6e 61 6d 65 0a 0a 3b 20 |..jbe.pr|name..; |
|00005940| 50 72 6f 6d 70 74 20 66 | 6f 72 20 61 6e 64 20 72 |Prompt f|or and r|
|00005950| 65 61 64 20 75 73 65 72 | 20 73 65 6c 65 63 74 69 |ead user| selecti|
|00005960| 6f 6e 0a 73 65 6c 65 63 | 74 3a 0a 09 63 61 6c 6c |on.selec|t:..call|
|00005970| 09 70 75 74 6e 6c 0a 09 | 6d 6f 76 09 73 69 2c 20 |.putnl..|mov.si, |
|00005980| 6f 66 66 73 65 74 20 70 | 72 6f 6d 70 74 20 2b 20 |offset p|rompt + |
|00005990| 43 4f 44 45 4f 52 47 0a | 09 63 61 6c 6c 09 70 75 |CODEORG.|.call.pu|
|000059a0| 74 73 0a 09 3b 20 52 65 | 61 64 20 61 20 6b 65 79 |ts..; Re|ad a key|
|000059b0| 20 61 6e 64 20 63 6f 6e | 76 65 72 74 20 69 74 20 | and con|vert it |
|000059c0| 74 6f 20 61 20 6e 75 6d | 62 65 72 0a 09 6d 6f 76 |to a num|ber..mov|
|000059d0| 09 61 68 2c 30 0a 09 69 | 6e 74 09 31 36 68 0a 09 |.ah,0..i|nt.16h..|
|000059e0| 73 75 62 09 61 6c 2c 27 | 31 27 0a 09 63 6d 70 09 |sub.al,'|1'..cmp.|
|000059f0| 61 6c 2c 30 34 0a 09 6a | 6e 62 09 73 65 6c 65 63 |al,04..j|nb.selec|
|00005a00| 74 0a 09 3b 20 54 68 65 | 20 6b 65 79 20 61 6e 64 |t..; The| key and|
|00005a10| 20 61 20 6e 65 77 6c 69 | 6e 65 20 61 72 65 20 70 | a newli|ne are p|
|00005a20| 72 69 6e 74 65 64 20 62 | 65 6c 6f 77 0a 0a 62 6f |rinted b|elow..bo|
|00005a30| 6f 74 3a 0a 3b 20 42 6f | 6f 74 20 66 72 6f 6d 20 |ot:.; Bo|ot from |
|00005a40| 74 68 65 20 73 65 6c 65 | 63 74 65 64 20 70 61 72 |the sele|cted par|
|00005a50| 74 69 74 69 6f 6e 2e 0a | 3b 20 4f 6e 20 65 6e 74 |tition..|; On ent|
|00005a60| 72 79 20 74 6f 20 74 68 | 69 73 20 73 65 63 74 69 |ry to th|is secti|
|00005a70| 6f 6e 3a 20 20 41 4c 20 | 3d 20 69 6e 64 65 78 20 |on: AL |= index |
|00005a80| 6f 66 20 70 74 61 62 6c | 65 20 65 6c 65 6d 65 6e |of ptabl|e elemen|
|00005a90| 74 0a 0a 09 3b 20 67 65 | 74 20 61 64 64 72 65 73 |t...; ge|t addres|
|00005aa0| 73 20 6f 66 20 70 74 61 | 62 6c 65 20 65 6c 65 6d |s of pta|ble elem|
|00005ab0| 65 6e 74 0a 09 63 61 6c | 6c 09 61 64 64 72 5f 70 |ent..cal|l.addr_p|
|00005ac0| 74 09 3b 20 73 69 20 3d | 20 26 20 70 74 61 62 6c |t.; si =| & ptabl|
|00005ad0| 65 5b 41 4c 5d 0a 0a 09 | 3b 20 70 72 69 6e 74 20 |e[AL]...|; print |
|00005ae0| 74 68 65 20 70 61 72 69 | 74 69 6f 6e 20 69 6e 64 |the pari|tion ind|
|00005af0| 65 78 20 61 6e 64 20 61 | 20 6e 65 77 6c 69 6e 65 |ex and a| newline|
|00005b00| 0a 09 61 64 64 09 61 6c | 2c 27 31 27 0a 09 63 61 |..add.al|,'1'..ca|
|00005b10| 6c 6c 09 70 75 74 63 0a | 09 63 61 6c 6c 09 70 75 |ll.putc.|.call.pu|
|00005b20| 74 6e 6c 0a 0a 3b 20 43 | 68 65 63 6b 20 66 6f 72 |tnl..; C|heck for|
|00005b30| 20 76 61 6c 69 64 20 73 | 79 73 74 65 6d 20 49 44 | valid s|ystem ID|
|00005b40| 20 28 6e 6f 6e 2d 7a 65 | 72 6f 29 0a 0a 09 6d 6f | (non-ze|ro)...mo|
|00005b50| 76 09 61 6c 2c 5b 73 69 | 2b 34 5d 0a 09 63 6d 70 |v.al,[si|+4]..cmp|
|00005b60| 09 61 6c 2c 30 0a 09 6a | 6e 7a 09 69 64 5f 6f 6b |.al,0..j|nz.id_ok|
|00005b70| 0a 09 6d 6f 76 09 73 69 | 2c 20 6f 66 66 73 65 74 |..mov.si|, offset|
|00005b80| 20 6d 73 67 65 6d 70 74 | 79 20 2b 20 43 4f 44 45 | msgempt|y + CODE|
|00005b90| 4f 52 47 0a 09 6a 6d 70 | 09 65 72 72 6f 72 0a 69 |ORG..jmp|.error.i|
|00005ba0| 64 5f 6f 6b 3a 0a 0a 3b | 20 52 65 61 64 20 66 69 |d_ok:..;| Read fi|
|00005bb0| 72 73 74 20 73 65 63 74 | 6f 72 20 6f 66 20 73 65 |rst sect|or of se|
|00005bc0| 6c 65 63 74 65 64 20 70 | 61 72 74 69 74 69 6f 6e |lected p|artition|
|00005bd0| 20 69 6e 74 6f 20 30 78 | 37 63 30 30 0a 3b 20 41 | into 0x|7c00.; A|
|00005be0| 6c 73 6f 2c 20 6d 61 72 | 6b 20 74 68 69 73 20 65 |lso, mar|k this e|
|00005bf0| 6e 74 72 79 20 61 63 74 | 69 76 65 20 28 69 6e 20 |ntry act|ive (in |
|00005c00| 52 41 4d 20 6f 6e 6c 79 | 29 20 69 6e 20 63 61 73 |RAM only|) in cas|
|00005c10| 65 20 74 68 65 0a 3b 20 | 73 65 63 6f 6e 64 61 72 |e the.; |secondar|
|00005c20| 79 20 62 6f 6f 74 20 70 | 72 6f 67 72 61 6d 20 6c |y boot p|rogram l|
|00005c30| 6f 6f 6b 73 20 61 74 20 | 69 74 20 28 77 68 69 63 |ooks at |it (whic|
|00005c40| 68 20 69 74 20 6d 61 79 | 29 2e 0a 0a 09 6d 6f 76 |h it may|)....mov|
|00005c50| 09 61 6c 2c 38 30 68 09 | 3b 20 61 63 74 69 76 65 |.al,80h.|; active|
|00005c60| 20 66 6c 61 67 0a 09 6d | 6f 76 09 5b 73 69 5d 2c | flag..m|ov.[si],|
|00005c70| 20 61 6c 0a 09 6d 6f 76 | 09 63 78 2c 35 09 3b 20 | al..mov|.cx,5.; |
|00005c80| 72 65 74 72 79 20 63 6f | 75 6e 74 0a 72 65 74 72 |retry co|unt.retr|
|00005c90| 79 3a 09 70 75 73 68 09 | 63 78 0a 09 6d 6f 76 09 |y:.push.|cx..mov.|
|00005ca0| 64 78 2c 5b 73 69 5d 09 | 3b 20 64 72 69 76 65 2c |dx,[si].|; drive,|
|00005cb0| 20 68 65 61 64 0a 09 6d | 6f 76 09 63 78 2c 5b 73 | head..m|ov.cx,[s|
|00005cc0| 69 2b 32 5d 09 3b 20 63 | 79 6c 2c 20 73 65 63 74 |i+2].; c|yl, sect|
|00005cd0| 6f 72 0a 09 6d 6f 76 09 | 62 78 2c 37 43 30 30 68 |or..mov.|bx,7C00h|
|00005ce0| 09 3b 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 28 |.; desti|nation (|
|00005cf0| 65 73 3d 30 29 0a 09 6d | 6f 76 09 61 78 2c 30 32 |es=0)..m|ov.ax,02|
|00005d00| 30 31 68 09 3b 20 42 49 | 4f 53 20 72 65 61 64 20 |01h.; BI|OS read |
|00005d10| 6f 6e 65 20 73 65 63 74 | 6f 72 0a 09 69 6e 74 09 |one sect|or..int.|
|00005d20| 31 33 68 0a 09 6a 6e 63 | 09 72 64 5f 6f 6b 0a 09 |13h..jnc|.rd_ok..|
|00005d30| 78 6f 72 09 61 78 2c 61 | 78 09 3b 20 72 65 73 65 |xor.ax,a|x.; rese|
|00005d40| 74 20 64 69 73 6b 0a 09 | 69 6e 74 09 31 33 68 0a |t disk..|int.13h.|
|00005d50| 09 70 6f 70 09 63 78 0a | 09 6c 6f 6f 70 09 72 65 |.pop.cx.|.loop.re|
|00005d60| 74 72 79 0a 09 6d 6f 76 | 09 73 69 2c 20 6f 66 66 |try..mov|.si, off|
|00005d70| 73 65 74 20 6d 73 67 72 | 65 61 64 20 2b 20 43 4f |set msgr|ead + CO|
|00005d80| 44 45 4f 52 47 0a 09 6a | 6d 70 09 65 72 72 6f 72 |DEORG..j|mp.error|
|00005d90| 0a 72 64 5f 6f 6b 3a 09 | 70 6f 70 09 63 78 0a 0a |.rd_ok:.|pop.cx..|
|00005da0| 3b 20 43 68 65 63 6b 20 | 66 6f 72 20 76 61 6c 69 |; Check |for vali|
|00005db0| 64 20 6d 61 67 69 63 20 | 6e 75 6d 62 65 72 20 69 |d magic |number i|
|00005dc0| 6e 20 73 65 63 6f 6e 64 | 61 72 79 20 62 6f 6f 74 |n second|ary boot|
|00005dd0| 20 73 65 63 74 6f 72 0a | 09 6d 6f 76 09 61 78 2c | sector.|.mov.ax,|
|00005de0| 20 30 41 41 35 35 68 0a | 09 61 73 73 75 6d 65 09 | 0AA55h.|.assume.|
|00005df0| 64 73 3a 73 65 67 30 09 | 09 3b 20 41 63 74 75 61 |ds:seg0.|.; Actua|
|00005e00| 6c 6c 79 2c 20 63 6f 64 | 65 73 65 67 20 3d 3d 20 |lly, cod|eseg == |
|00005e10| 73 65 67 30 0a 09 63 6d | 70 09 61 78 2c 20 6d 61 |seg0..cm|p.ax, ma|
|00005e20| 67 69 63 32 0a 09 61 73 | 73 75 6d 65 09 64 73 3a |gic2..as|sume.ds:|
|00005e30| 63 6f 64 65 73 65 67 0a | 09 6a 7a 09 6d 61 67 69 |codeseg.|.jz.magi|
|00005e40| 63 5f 6f 6b 0a 09 6d 6f | 76 09 73 69 2c 20 6f 66 |c_ok..mo|v.si, of|
|00005e50| 66 73 65 74 20 6d 73 67 | 69 6e 76 61 6c 69 64 20 |fset msg|invalid |
|00005e60| 2b 20 43 4f 44 45 4f 52 | 47 0a 09 6a 6d 70 09 65 |+ CODEOR|G..jmp.e|
|00005e70| 72 72 6f 72 0a 6d 61 67 | 69 63 5f 6f 6b 3a 0a 0a |rror.mag|ic_ok:..|
|00005e80| 3b 20 4d 61 6b 65 20 73 | 75 72 65 20 64 73 3a 73 |; Make s|ure ds:s|
|00005e90| 69 20 70 6f 69 6e 74 73 | 20 74 6f 20 74 68 65 20 |i points| to the |
|00005ea0| 62 6f 6f 74 65 64 20 70 | 61 72 74 69 74 69 6f 6e |booted p|artition|
|00005eb0| 2c 20 61 6e 64 0a 3b 20 | 4a 75 6d 70 20 74 6f 20 |, and.; |Jump to |
|00005ec0| 74 68 65 20 73 65 63 6f | 6e 64 61 72 79 20 62 6f |the seco|ndary bo|
|00005ed0| 6f 74 20 70 72 6f 67 72 | 61 6d 2e 0a 09 6a 6d 70 |ot progr|am...jmp|
|00005ee0| 09 66 61 72 20 70 74 72 | 20 62 65 67 69 6e 32 0a |.far ptr| begin2.|
|00005ef0| 0a 3b 20 4a 75 6d 70 20 | 68 65 72 65 20 77 69 74 |.; Jump |here wit|
|00005f00| 68 20 73 69 3d 65 72 72 | 6f 72 2d 6d 65 73 73 61 |h si=err|or-messa|
|00005f10| 67 65 0a 65 72 72 6f 72 | 3a 0a 09 63 61 6c 6c 09 |ge.error|:..call.|
|00005f20| 70 75 74 73 0a 09 63 61 | 6c 6c 09 70 75 74 6e 6c |puts..ca|ll.putnl|
|00005f30| 0a 09 6a 6d 70 09 6d 65 | 6e 75 0a 0a 3b 2a 2a 2a |..jmp.me|nu..;***|
|00005f40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005f50| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005f60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005f70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0a 3b 20 53 75 62 |********|**.; Sub|
|00005f80| 72 6f 75 74 69 6e 65 73 | 0a 3b 2a 2a 2a 2a 2a 2a |routines|.;******|
|00005f90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005fa0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005fb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005fc0| 2a 2a 2a 2a 2a 2a 2a 0a | 43 52 09 45 51 55 09 31 |*******.|CR.EQU.1|
|00005fd0| 33 0a 4c 46 09 45 51 55 | 09 31 30 0a 54 41 42 09 |3.LF.EQU|.10.TAB.|
|00005fe0| 45 51 55 09 20 39 0a 0a | 70 75 74 63 09 70 72 6f |EQU. 9..|putc.pro|
|00005ff0| 63 09 6e 65 61 72 09 09 | 3b 20 70 72 69 6e 74 20 |c.near..|; print |
|00006000| 63 68 61 72 20 69 6e 20 | 41 4c 0a 09 6d 6f 76 09 |char in |AL..mov.|
|00006010| 61 68 2c 20 30 45 68 09 | 09 3b 20 75 73 65 73 3a |ah, 0Eh.|.; uses:|
|00006020| 20 61 78 2c 20 62 78 0a | 09 6d 6f 76 09 62 78 2c | ax, bx.|.mov.bx,|
|00006030| 20 30 37 0a 09 69 6e 74 | 09 31 30 68 0a 09 72 65 | 07..int|.10h..re|
|00006040| 74 0a 70 75 74 63 09 65 | 6e 64 70 0a 0a 70 75 74 |t.putc.e|ndp..put|
|00006050| 6e 6c 09 70 72 6f 63 09 | 6e 65 61 72 09 09 3b 20 |nl.proc.|near..; |
|00006060| 70 72 69 6e 74 20 61 20 | 6e 65 77 6c 69 6e 65 0a |print a |newline.|
|00006070| 09 6d 6f 76 09 61 6c 2c | 20 43 52 09 09 3b 20 75 |.mov.al,| CR..; u|
|00006080| 73 65 73 3a 20 61 78 2c | 20 62 78 0a 09 63 61 6c |ses: ax,| bx..cal|
|00006090| 6c 09 70 75 74 63 0a 09 | 6d 6f 76 09 61 6c 2c 20 |l.putc..|mov.al, |
|000060a0| 4c 46 0a 09 63 61 6c 6c | 09 70 75 74 63 0a 09 72 |LF..call|.putc..r|
|000060b0| 65 74 0a 70 75 74 6e 6c | 09 65 6e 64 70 0a 0a 70 |et.putnl|.endp..p|
|000060c0| 75 74 73 09 70 72 6f 63 | 09 6e 65 61 72 09 09 3b |uts.proc|.near..;|
|000060d0| 20 70 72 69 6e 74 20 73 | 74 72 69 6e 67 20 61 74 | print s|tring at|
|000060e0| 20 61 64 64 72 65 73 73 | 20 53 49 0a 09 6d 6f 76 | address| SI..mov|
|000060f0| 09 63 78 2c 38 30 09 09 | 3b 20 53 74 6f 70 20 61 |.cx,80..|; Stop a|
|00006100| 74 20 6e 75 6c 6c 20 6f | 72 20 43 58 20 63 68 61 |t null o|r CX cha|
|00006110| 72 73 0a 70 75 74 6e 3a | 09 6c 6f 64 73 62 09 09 |rs.putn:|.lodsb..|
|00006120| 09 3b 20 75 73 65 73 3a | 20 61 78 2c 20 62 78 2c |.; uses:| ax, bx,|
|00006130| 20 63 78 2c 20 73 69 0a | 09 63 6d 70 09 61 6c 2c | cx, si.|.cmp.al,|
|00006140| 30 0a 09 6a 7a 09 70 75 | 74 73 5f 65 0a 09 70 75 |0..jz.pu|ts_e..pu|
|00006150| 73 68 09 63 78 0a 09 63 | 61 6c 6c 09 70 75 74 63 |sh.cx..c|all.putc|
|00006160| 0a 09 70 6f 70 09 63 78 | 0a 09 6c 6f 6f 70 09 70 |..pop.cx|..loop.p|
|00006170| 75 74 6e 0a 70 75 74 73 | 5f 65 3a 09 72 65 74 0a |utn.puts|_e:.ret.|
|00006180| 70 75 74 73 09 65 6e 64 | 70 0a 0a 61 64 64 72 5f |puts.end|p..addr_|
|00006190| 70 74 09 70 72 6f 63 09 | 6e 65 61 72 09 09 3b 20 |pt.proc.|near..; |
|000061a0| 73 65 74 20 53 49 20 3d | 20 61 64 64 72 65 73 73 |set SI =| address|
|000061b0| 20 6f 66 20 70 74 61 62 | 6c 65 5b 61 6c 5d 0a 09 | of ptab|le[al]..|
|000061c0| 70 75 73 68 09 61 78 09 | 09 3b 20 75 73 65 73 3a |push.ax.|.; uses:|
|000061d0| 20 63 78 20 28 62 75 74 | 20 70 72 65 73 65 72 76 | cx (but| preserv|
|000061e0| 65 73 20 61 78 29 0a 09 | 6d 6f 76 09 73 69 2c 20 |es ax)..|mov.si, |
|000061f0| 6f 66 66 73 65 74 20 70 | 74 61 62 6c 65 20 3b 20 |offset p|table ; |
|00006200| 6e 6f 20 6f 72 67 20 66 | 69 78 2d 75 70 20 68 65 |no org f|ix-up he|
|00006210| 72 65 0a 09 6d 6f 76 09 | 63 6c 2c 31 36 09 3b 20 |re..mov.|cl,16.; |
|00006220| 73 69 7a 65 20 6f 66 20 | 61 72 72 61 79 20 65 6c |size of |array el|
|00006230| 65 6d 65 6e 74 0a 09 6d | 75 6c 09 63 6c 09 09 3b |ement..m|ul.cl..;|
|00006240| 20 61 78 20 3d 20 61 6c | 20 2a 20 63 6c 0a 09 61 | ax = al| * cl..a|
|00006250| 64 64 09 73 69 2c 61 78 | 0a 09 70 6f 70 09 61 78 |dd.si,ax|..pop.ax|
|00006260| 0a 09 72 65 74 0a 61 64 | 64 72 5f 70 74 09 65 6e |..ret.ad|dr_pt.en|
|00006270| 64 70 0a 0a 3b 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |dp..;***|********|
|00006280| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006290| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000062a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0a |********|*******.|
|000062b0| 3b 20 53 74 72 69 6e 67 | 73 0a 3b 2a 2a 2a 2a 2a |; String|s.;*****|
|000062c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000062d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000062e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000062f0| 2a 2a 2a 2a 2a 0a 0a 62 | 6f 6f 74 64 65 76 09 09 |*****..b|ootdev..|
|00006300| 64 62 09 22 42 6f 6f 74 | 20 64 65 76 69 63 65 3a |db."Boot| device:|
|00006310| 20 68 64 30 22 2c 30 0a | 70 72 6f 6d 70 74 09 09 | hd0",0.|prompt..|
|00006320| 64 62 09 22 42 6f 6f 74 | 20 70 61 72 74 69 74 69 |db."Boot| partiti|
|00006330| 6f 6e 3f 20 28 31 2d 34 | 29 20 22 2c 30 0a 6d 73 |on? (1-4|) ",0.ms|
|00006340| 67 65 6d 70 74 79 09 64 | 62 09 22 45 6d 70 74 79 |gempty.d|b."Empty|
|00006350| 21 22 2c 30 0a 6d 73 67 | 72 65 61 64 09 09 64 62 |!",0.msg|read..db|
|00006360| 09 22 52 65 61 64 20 65 | 72 72 6f 72 21 22 2c 30 |."Read e|rror!",0|
|00006370| 0a 6d 73 67 69 6e 76 61 | 6c 69 64 09 64 62 09 22 |.msginva|lid.db."|
|00006380| 49 6e 76 61 6c 69 64 21 | 22 2c 30 0a 09 6f 72 67 |Invalid!|",0..org|
|00006390| 09 31 38 30 68 09 3b 20 | 74 68 69 73 20 70 61 64 |.180h.; |this pad|
|000063a0| 73 20 74 68 65 20 6c 65 | 6e 67 74 68 20 28 69 74 |s the le|ngth (it|
|000063b0| 20 73 65 65 6d 73 29 0a | 63 6f 64 65 73 65 67 09 | seems).|codeseg.|
|000063c0| 65 6e 64 73 0a 0a 3b 20 | 44 65 63 6c 61 72 65 73 |ends..; |Declares|
|000063d0| 20 73 6f 6d 65 20 6f 66 | 66 73 65 74 73 20 69 6e | some of|fsets in|
|000063e0| 20 73 65 67 6d 65 6e 74 | 20 7a 65 72 6f 0a 73 65 | segment| zero.se|
|000063f0| 67 30 09 73 65 67 6d 65 | 6e 74 09 61 74 20 30 0a |g0.segme|nt.at 0.|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.