📄 allman4.ps
字号:
(\257oppy)256 3582 A3883(types)S4140(except)S4448(the)S4616(true)S(360k)200 4818 A5063(type,)S2424 V(because)319 1080 A1432(it)S1521(is)S(indistinguishable)686 1621 A2340(from)S2570(the)S(720k)200 2727 A2961(type.)S3218(This)S3431(only)S3643(means)S3934(that)S4119(the)S4276(size)S4467(of)S4585(the)S(\257oppy)256 4742 A5032(is)S5133(not)S2544 V1080(estimated)S1491(right.)S2712 V1080(Bits)S1270(2)S10 R-11320(-)S10 R1377(6)S1455(of)S1567(the)S1718(minor)S1986(device)S2277(number)S2612(may)S2813(be)S2937(set)S3078(to)S3185(the)S(\257oppy)256 3337 A3622(disk)S3818(type)S4020(to)S4127(make)S4374(it)S(known)273 4459 A4761(to)S4868(the)S5020(driver)S2832 V1080(what)S1309(type)S1515(of)S1632(diskette)S1978(it)S2067(is)S2167(reading)S2502(or)S(writing.)316 2618 A2991(The)S(non-auto)357 3180 A3569(devices)S(should)267 3903 A4202(be)S4329(used)S4545(for)S(formatting,)450 4695 A5177(or)S2952 V1080(when)S1323(one)S1493(wants)S1753(to)S1856(be)S1976(absolutely)S2414(sure)S2607(that)S2783(the)S2931(device)S3219(is)S(accessed)353 3311 A3689(right.)S3954(These)S4220(devices)S4547(exist)S4762(for)S4905(drive)S5137(0:)S3192 V1280(type)S1630(device)S2080(minor)S2480(media)S3312 V1330(0)S1680(fd0)S2130(0)S2480(autodetect)S3432 V1330(1)S1680(pc0)S2130(4)S(360k,)225 2480 A2730(5.25")S3552 V1330(2)S1680(at0)S2130(8)S2480(1.2M,)S2744(5.25")S3672 V1330(3)S(qd0)150 1680 A2130(12)S(360k)200 2480 A2705(in)S2808(a)S(720k,)225 2878 A3128(5.25")S3369(drive)S3792 V1330(4)S1680(ps0)S2130(16)S(720k,)225 2480 A2730(3.5")S3912 V1330(5)S1680(pat0)S2130(20)S(360k)200 2480 A2705(in)S2808(a)S2878(1.2M,)S3142(5.25")S3383(drive)S4032 V1330(6)S(qh0)150 1680 A2130(24)S(720k)200 2480 A2705(in)S2808(a)S2878(1.2M,)S3142(5.25")S3383(drive)S4152 V1330(7)S1680(PS0)S2130(28)S2480(1.44M,)S2794(3.5")S4320 V1080(Type)S1324(4)S1411(may)S1621(also)S1820(be)S1952(used)S2174(for)S2330(the)S2491(rarely)S2765(seen)S(720k,)225 2982 A3245(5.25")S(\257oppies)318 3499 A3855(\(type)S4100(2)S4188(made)S4444(them)S4683(obsolete)S5056(fast.\))S4440 V1080(Note)S1302(that)S1479(these)S1712("types")S2032(only)S2236(describe)S2597(the)S(\257oppies)318 2745 A3088(from)S3309(a)S3379(software)S3752(point)S3983(of)S4092(view,)S4338(type)S4536(1)S4611(and)S4781(4)S4856(drives)S5127(use)S4560 V1080(the)S1228(same)S1460(parameters.)S4728 V1080(If)S1180(the)S1336(format)S1638(bit)S1777(\(bit)S1950(7\))S2067(is)S2167(set,)S2337(then)S2543(the)S2699(driver)S2973(interprets)S3387(write)S3628(commands)S4096(as)S4213(track)S(formatting)425 4448 A4906(requests.)S4848 V1080(This)S1284(is)S1376(used)S1585(by)S1710(the)S10 B1858(format)S10 R2155(\(1\))S2298(command.)S5016 V1080(If)S1174(the)S1323(type)S1522(bits)S1693(are)S1843(set)S1981(to)S2085(28,)S2236(29,)S2387(30,)S2538(or)S2649(31,)S2801(then)S3001(the)S3151(driver)S3419(uses)S3619(a)S(partition)341 3691 A4059(table)S(found)234 4282 A4543(in)S4648(sector)S4916(0)S4993(to)S5098(par-)S5136 V(tition)212 1080 A1318(the)S(\257oppy.)281 1467 A1799(The)S(partitions)380 1982 A2388(of)S10 B2498(fd0)S10 R2664(may)S2863(be)S(accessed)353 2984 A3363(as)S10 B3473(fd0a)S10 R(through)312 3689 A10 B4026(fd0d)S10 R4222(.)S4297(See)S10 B4468(hd)S10 R4580(\(4\))S4723(for)S4866(a)S4936(descrip-)S5256 V1080(tion)S1261(of)S1370(the)S(partition)341 1518 A1884(table,)S2130(and)S2300(associated)S2739(ioctl)S2943(commands.)S5424 V9 R720(F)S722(FI)S774(IL)S807(LE)S865(ES)S923(S)S5544 V10 R1080(/dev/fd[0)S10 R-11449(-)S10 R1506(3],)S1675(/dev/pc[0)S10 R-12055(-)S10 R2112(3],)S2281(/dev/at[0)S10 R-12639(-)S10 R2696(3],)S2865(/dev/qd[0)S10 R-13250(-)S10 R3307(3],)S3476(/dev/ps[0)S10 R-13850(-)S10 R3907(3],)S4076(/dev/pat[0)S10 R-14484(-)S10 R4541(3],)S4710(/dev/qh[0)S10 R-15095(-)S10 R5152(3],)S5664 V1080(/dev/PS[0)S10 R-11477(-)S10 R1534(3],)S1668(/dev/fd[0)S10 R-12037(-)S10 R2094(3][a)S10 R-12257(-)S10 R2314(d])S5832 V9 R720(S)S722(SE)S774(EE)S832(E)S913(A)S915(AL)S983(LS)S1041(SO)S1093(O)S5952 V10 B1080(format)S10 R1377(\(1\),)S10 B1545(hd)S10 R1657(\(4\),)S10 B1825(part)S10 R2010(\(8\).)S6120 V9 R720(B)S722(BU)S784(UG)S852(GS)S920(S)S6240 V10 R1080(The)S1271(driver)S1546(does)S1764(not)S(know)223 1926 A2183(the)S2340(size)S2531(of)S2649(a)S(360k)200 2728 A2962(diskette)S3309(in)S3421(a)S(360k)200 3500 A3734(5.25")S3984(drive,)S(because)319 4250 A4604(it)S4695(uses)S4903(the)S(720k)200 5061 A6360 V1080(parameters)S1552(for)S1699(it.)S1834(So)S1969(it)S(will)157 2053 A2238(happily)S2567(try)S2707(to)S2813(read)S3015(past)S3205(the)S3356(end)S3529(making)S3858(all)S3987(kinds)S4232(of)S4344(interesting)S4797(noises.)S5126(It's)S6480 V1080(a)S(good)200 1150 A1375(thing)S1606(these)S1838(drives)S2109(are)S2258(practically)S2709(obsolete.)S6648 V1080(The)S(partition)341 1272 A1648(table)S1879(is)S1981(only)S2194(read)S2403(when)S2656(the)S2814(drive)S3056(motor)S3331(is)S3433(off)S3587(and)S3768(only)S3982(for)S4136(an)S4267(auto)S4476(or)S(partition)341 4596 A4973(device.)S6768 V1080(The)S1266(driver)S1536(assumes)S1900(that)S2079(a)S(\257oppy)256 2152 A2436(in)S2542(a)S2615(drive)S2850(with)S3057(a)S(running)312 3130 A3470(motor)S3738(can't)S3968(have)S4186(been)S(replaced)342 4404 A4774(all)S4903(of)S5015(a)S5088(sud-)S6888 V1080(den.)S7056 V9 R720(A)S722(AU)S790(UT)S858(TH)S916(HO)S984(OR)S1052(R)S7176 V10 R1080(Kees)S1307(J.)S1396(Bot)S1566(\(kjb@cs.vu.nl\))S7903 V720(Page)S941(1)S4455(September)S4911(17,)S(1996)200 5061 A8143 VEP%%Page: 1 8BP/slant 0 def/height 0 def480 V10 R720(HD)S874(\()S916(4)S974(\))S2696(Eighth)S(Edition)296 2989 A4973(HD)S5127(\()S5169(4)S5227(\))S960 V9 R720(N)S722(NA)S790(AM)S858(ME)S940(E)S1080 V10 R1080(hd)S10 R-11205(-)S10 R1287(winchester)S1749(hard)S1953(disk)S1248 V9 R720(D)S722(DE)S790(ES)S848(SC)S900(CR)S962(RI)S1024(IP)S1057(PT)S1109(TI)S1167(IO)S1200(ON)S1268(N)S1368 V10 R1080(The)S10 B1274(hd*)S10 R1473(family)S1773(of)S1894(devices)S2233(refer)S2462(to)S2577(the)S2737(Winchester)S3233(hard)S3449(disk)S3654(drivers)S3972(for)S4128(the)S4289(IBM)S4517(XT,)S4715(AT)S4888(and)S5071(PS/2)S1488 V1080(machines,)S1513(but)S1669(may)S1870(also)S2060(refer)S2280(to)S2386(the)S2537(generic)S2862(\(and)S3069(slower\))S3400(BIOS)S3658(based)S3915(hard)S4122(disk)S4317(driver.)S4636(These)S4904(disks)S5137(are)S1608 V1080(arrays)S1353(of)S(512)150 1463 A1639(byte)S1838(sectors,)S(although)351 2169 A2546(Minix)S2817(always)S3123(works)S3395(with)S3600(two)S3777(sectors)S4084(at)S4184(a)S4256(time)S4462(due)S4634(to)S4739(its)S(1024)200 4861 A5088(byte)S1728 V1080(block)S1333(size.)S1570(You)S1773(can)S1943(read)S2147(or)S2260(write)S2497(any)S2671(number)S3007(of)S3120(bytes)S3361(however,)S3762(Minix)S4036(takes)S4272(care)S4470(of)S(cutting)279 4583 A4891(and)S5065(past-)S1848 V1080(ing)S1233(incomplete)S1705(blocks)S1992(together.)S2016 V1080(The)S1262(devices)S1589(may)S1787(be)S1907(divided)S2233(into)S2414(three)S2641(classes:)S2256 V1440(The)S1628(devices)S1961(with)S2171(a)S2247(minor)S2518(device)S2812(number)S3150(that)S3332(is)S3430(a)S(multiple)335 3506 A3872(of)S3988(5,)S4095(i.e.)S10 B4275(hd0)S10 R4469(or)S10 B4585(hd5)S10 R4747(,)S4804(refer)S5028(to)S5138(the)S2376 V1440(whole)S1714(hard)S1921(disk)S2116(0)S2194(and)S2367(1.)S(Through)346 2495 A2869(these)S3104(devices)S3434(one)S3607(has)S(access)258 3769 A4055(to)S4161(any)S4334(block)S4585(on)S4713(the)S4863(hard)S5069(disk.)S2496 V1440(Most)S1671(notably)S1997(the)S(partition)341 2145 A2511(table,)S2757(that)S2933(can)S3098(be)S(found)234 3218 A3477(in)S3580(the)S3728(\256rst)S3910(sector)S4176(of)S4285(the)S4433(disk.)S2736 V1440(The)S1625(devices)S1955(with)S2162(a)S2235(minor)S2503(device)S2794(number)S3129(that)S3308(is)S3403(not)S3559(a)S(multiple)335 3632 A3995(of)S4107(5,)S4210(i.e.)S10 B4386(hd1)S10 R4548(,)S10 B4601(hd2)S10 R4763(,)S(...,)100 4816 A10 B4945(hd6)S10 R5107(,)S(...,)100 5161 A2856 V1440(refer)S1661(to)S1768(primary)S(partitions)380 2116 A2525(of)S2638(the)S2789(lower)S3047(numbered)S3477(whole)S3751(hard)S3958(disk)S4153(device.)S4494(These)S4763(devices)S5093(nor-)S2976 V1440(mally)S1694(contain)S2015(MS-DOS)S2421(or)S2530(Minix)S2800(\256le)S2954(systems.)S(/dev/hd1)351 3347 A3723(is)S3815(often)S4047(the)S4195(MS-DOS)S4601(C:)S4721(drive.)S3216 V1440(Minor)S1716(devices)S2043(from)S(128)150 2264 A2439(up)S2564(may)S2762(refer)S2979(to)S3082(Minix)S(subpartitions)519 3352 A3896(within)S4178(primary)S(partitions)380 4523 A4929(if)S5017(a)S5088(sub-)S3336 V(partition)341 1440 A1823(table)S2061(has)S2237(been)S(placed)263 2469 A2774(in)S2893(a)S2979(Minix)S3265(primary)S(partition.)366 3625 A4057(The)S(subpartitions)519 4255 A4815(of)S10 B4940(hd3)S10 R5143(for)S3456 V1440(instance,)S1829(are)S1987(named)S10 B2290(hd3a)S10 R(through)312 2537 A10 B2884(hd3d)S10 R3102(.)S3187(Their)S3441(minor)S3716(device)S4014(numbers)S4395(may)S4603(be)S4733(calculated)S5177(as)S3576 V(128)150 1440 A1615(+)S(16*drive)357 1697 A2079(+)S(4*partition)441 2161 A2627(+)S(subpartition,)505 2709 A(counting)351 3239 A3615(the)S(partitions)380 3763 A4168(from)S4389(zero.)S3744 V1440(If)S1534(a)S1605(primary)S(partition)341 1950 A2317(is)S2410(an)S2531(extended)S(partition)341 2920 A3287(then)S3486(up)S3612(to)S3716(four)S3911(logical)S(partitions)380 4212 A4619(can)S4786(be)S(accessed)353 4908 A3864 V1440(as)S(subpartitions)519 1559 A2113(of)S2232(that)S2418(extended)S(partition.)366 2816 A3242(This)S3456(allows)S3754(one)S3933(to)S(access)258 4045 A4337(foreign)S4662(\256le)S4825(systems)S5177(of)S3984 V1440(other)S1672(operating)S2077(systems,)S2445(Minix)S2715(\256le)S2869(systems)S3212(are)S3361(not)S3514(normally)S(placed)263 3902 A4190(in)S4293(logical)S(partitions.)405 4592 A4152 V9 R720(P)S722(PA)S774(AR)S842(RT)S904(TI)S962(IT)S995(TI)S1053(IO)S1086(ON)S1154(NI)S1222(IN)S1255(NG)S1323(G)S4272 V10 R1080(The)S1262(\256rst)S1444(sector)S1710(of)S1819(a)S1889(drive)S2121(\(or)S(partition)341 2264 A2630(for)S(subpartitioning\))642 2773 A3440(contains)S3800(the)S(partition)341 3948 A4314(table)S4535(at)S4633(byte)S4831(offset)S(446.)175 5086 A4392 V1080(This)S1284(is)S1376(what)S(each)185 1597 A1807(of)S1916(the)S2064(four)S2257(entries)S(looks)217 2551 A2793(like)S2969(as)S3078(de\256ned)S3399(in)S(<ibm/partition.h>:)742 3502 A4632 V1080(/*)S1183(Description)S1678(of)S1787(entry)S2019(in)S2122(the)S(partition)341 2270 A2636(table.)S2907(*/)S4872 V1080(struct)S1329(part_entry)S1768({)S4992 V1180(unsigned)S1567(char)S(bootind;)334 1766 A2630(/*)S(boot)178 2733 A2936(indicator)S3319(0/ACTIVE_FLAG)S4480(*/)S5112 V1180(unsigned)S1567(char)S1766(start_head;)S2630(/*)S2733(head)S2948(value)S3191(for)S3334(\256rst)S3516(sector)S4480(*/)S5232 V1180(unsigned)S1567(char)S1766(start_sec;)S2630(/*)S2733(sector)S2999(value)S3242(+)S3324(high)S3527(2)S3602(cyl)S3750(bits)S4480(*/)S5352 V1180(unsigned)S1567(char)S1766(start_cyl;)S2630(/*)S2733(low)S2909(8)S2984(cylinder)S3339(bits)S4480(*/)S5472 V1180(unsigned)S1567(char)S1766(sysind;)S2630(/*)S2733(system)S3037(indicator)S4480(*/)S5592 V1180(unsigned)S1567(char)S1766(last_head;)S2630(/*)S2733(h/s/c)S2948(for)S3091(the)S3239(last)S3404(sector)S4480(*/)S5712 V1180(unsigned)S1567(char)S1766(last_sec;)S5832 V1180(unsigned)S1567(char)S1766(last_cyl;)S5952 V1180(unsigned)S(long)178 1567 A1770(lowsec;)S2630(/*)S2733(logical)S3032(\256rst)S3214(sector)S4480(*/)S6072 V1180(unsigned)S(long)178 1567 A1770(size;)S2630(/*)S2733(size)S2915(of)S(partition)341 3024 A3390(in)S3493(sectors)S4480(*/)S6192 V1080(};)S6432 V1080(#de\256ne)S1401(ACTIVE_FLAG)S(0x80)200 2280 A2630(/*)S2733(value)S2976(for)S3119(active)S3385(in)S(bootind)306 3488 A3819(\256eld)S4480(*/)S6552 V1080(#de\256ne)S1401(NR_PARTITIONS)S2280(4)S2630(/*)S2733(number)S3065(of)S3174(entries)S3468(in)S3571(table)S4480(*/)S6672 V1080(#de\256ne)S1401(PART_TABLE_OFF)S(0x1BE)279 2280 A2630(/*)S2733(offset)S2988(of)S3097(table)S3318(in)S(boot)17
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -