{"id":117,"date":"2008-08-01T12:00:00","date_gmt":"2008-08-01T12:00:00","guid":{"rendered":""},"modified":"2008-08-01T12:00:00","modified_gmt":"2008-08-01T12:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/www.inbreak.net\/archives\/117.html","title":{"rendered":"\u3010\u8f6c\u8f7d\u3011Linux \u5f15\u5bfc\u8fc7\u7a0b\u5185\u5e55"},"content":{"rendered":"

M. Tim Jones (mtj@mtjones.com), \u987e\u95ee\u5de5\u7a0b\u5e08, Emulex<\/p>\n

\u5f15\u5bfc Linux? \u7cfb\u7edf\u7684\u8fc7\u7a0b\u5305\u62ec\u5f88\u591a\u9636\u6bb5\u3002\u4e0d\u7ba1\u60a8\u662f\u5f15\u5bfc\u4e00\u4e2a\u6807\u51c6\u7684 x86 \u684c\u9762\u7cfb\u7edf\uff0c\u8fd8\u662f\u5f15\u5bfc\u4e00\u53f0\u5d4c\u5165\u5f0f\u7684 PowerPC? \u673a\u5668\uff0c\u5f88\u591a\u6d41\u7a0b\u90fd\u60ca\u4eba\u5730\u76f8\u4f3c\u3002\u672c\u6587\u5c06\u63a2\u7d22 Linux \u7684\u5f15\u5bfc\u8fc7\u7a0b\uff0c\u4ece\u6700\u521d\u7684\u5f15\u5bfc\u5230\u542f\u52a8\u7b2c\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u672c\u6587\u4ecb\u7ecd\u7684\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u5c06\u5b66\u4e60\u5230\u5404\u79cd\u4e0e\u5f15\u5bfc\u6709\u5173\u7684\u4e3b\u9898\uff0c\u4f8b\u5982\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u3001\u5185\u6838\u89e3\u538b\u3001\u521d\u59cb RAM \u78c1\u76d8\u4ee5\u53ca Linux \u5f15\u5bfc\u7684\u5176\u4ed6\u4e00\u4e9b\u5143\u7d20\u3002<\/p>\n

\u65e9\u671f\u65f6\uff0c\u542f\u52a8\u4e00\u53f0\u8ba1\u7b97\u673a\u610f\u5473\u7740\u8981\u7ed9\u8ba1\u7b97\u673a\u5582\u4e00\u6761\u5305\u542b\u5f15\u5bfc\u7a0b\u5e8f\u7684\u7eb8\u5e26\uff0c\u6216\u8005\u624b\u5de5\u4f7f\u7528\u524d\u7aef\u9762\u677f\u5730\u5740\/\u6570\u636e\/\u63a7\u5236\u5f00\u5173\u6765\u52a0\u8f7d\u5f15\u5bfc\u7a0b\u5e8f\u3002\u5c3d\u7ba1\u76ee\u524d\u7684\u8ba1\u7b97\u673a\u5df2\u7ecf\u88c5\u5907\u4e86\u5f88\u591a\u5de5\u5177\u6765\u7b80\u5316\u5f15\u5bfc\u8fc7\u7a0b\uff0c\u4f46\u662f\u8fd9\u4e00\u5207\u5e76\u6ca1\u6709\u5bf9\u6574\u4e2a\u8fc7\u7a0b\u8fdb\u884c\u5fc5\u8981\u7684\u7b80\u5316\u3002<\/p>\n

\u8ba9\u6211\u4eec\u5148\u4ece\u9ad8\u7ea7\u7684\u89c6\u89d2\u6765\u67e5\u770b Linux \u5f15\u5bfc\u8fc7\u7a0b\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u770b\u5230\u6574\u4e2a\u8fc7\u7a0b\u7684\u5168\u8c8c\u4e86\u3002\u7136\u540e\u5c06\u56de\u987e\u4e00\u4e0b\u5728\u5404\u4e2a\u6b65\u9aa4\u5230\u5e95\u53d1\u751f\u4e86\u4ec0\u4e48\u3002\u5728\u6574\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u53c2\u8003\u4e00\u4e0b\u5185\u6838\u6e90\u4ee3\u7801\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u4e86\u89e3\u5185\u6838\u6e90\u4ee3\u7801\u6811\uff0c\u5e76\u5728\u4ee5\u540e\u5bf9\u5176\u8fdb\u884c\u6df1\u5165\u5206\u6790\u3002<\/p>\n

\u6982\u8ff0<\/strong><\/p>\n

\u56fe 1 \u662f\u6211\u4eec\u5728 20,000 \u82f1\u5c3a\u7684\u9ad8\u5ea6\u770b\u5230\u7684\u89c6\u56fe\u3002<\/p>\n

\"\"<\/p>\n

\u5f53\u7cfb\u7edf\u9996\u6b21\u5f15\u5bfc\u65f6\uff0c\u6216\u7cfb\u7edf\u88ab\u91cd\u7f6e\u65f6\uff0c\u5904\u7406\u5668\u4f1a\u6267\u884c\u4e00\u4e2a\u4f4d\u4e8e\u5df2\u77e5\u4f4d\u7f6e\u5904\u7684\u4ee3\u7801\u3002\u5728\u4e2a\u4eba\u8ba1\u7b97\u673a\uff08PC\uff09\u4e2d\uff0c\u8fd9\u4e2a\u4f4d\u7f6e\u5728\u57fa\u672c\u8f93\u5165\/\u8f93\u51fa\u7cfb\u7edf\uff08BIOS\uff09\u4e2d\uff0c\u5b83\u4fdd\u5b58\u5728\u4e3b\u677f\u4e0a\u7684\u95ea\u5b58\u4e2d\u3002\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\u7684\u4e2d\u592e\u5904\u7406\u5355\u5143\uff08CPU\uff09\u4f1a\u8c03\u7528\u8fd9\u4e2a\u91cd\u7f6e\u5411\u91cf\u6765\u542f\u52a8\u4e00\u4e2a\u4f4d\u4e8e\u95ea\u5b58\/ROM \u4e2d\u7684\u5df2\u77e5\u5730\u5740\u5904\u7684\u7a0b\u5e8f\u3002\u5728\u8fd9\u4e24\u79cd\u60c5\u51b5\u4e0b\uff0c\u7ed3\u679c\u90fd\u662f\u76f8\u540c\u7684\u3002\u56e0\u4e3a PC \u63d0\u4f9b\u4e86\u5f88\u591a\u7075\u6d3b\u6027\uff0cBIOS \u5fc5\u987b\u786e\u5b9a\u8981\u4f7f\u7528\u54ea\u4e2a\u8bbe\u5907\u6765\u5f15\u5bfc\u7cfb\u7edf\u3002\u7a0d\u540e\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e2a\u8fc7\u7a0b\u3002<\/p>\n

\u5f53\u627e\u5230\u4e00\u4e2a\u5f15\u5bfc\u8bbe\u5907\u4e4b\u540e\uff0c\u7b2c\u4e00\u9636\u6bb5\u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u5c31\u88ab\u88c5\u5165 RAM \u5e76\u6267\u884c\u3002\u8fd9\u4e2a\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u5728\u5927\u5c0f\u4e0a\u5c0f\u4e8e 512 \u5b57\u8282\uff08\u4e00\u4e2a\u6247\u533a\uff09\uff0c\u5176\u4f5c\u7528\u662f\u52a0\u8f7d\u7b2c\u4e8c\u9636\u6bb5\u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u3002<\/p>\n

\u5f53\u7b2c\u4e8c\u9636\u6bb5\u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u88ab\u88c5\u5165 RAM \u5e76\u6267\u884c\u65f6\uff0c\u901a\u5e38\u4f1a\u663e\u793a\u4e00\u4e2a\u52a8\u753b\u5c4f\u5e55\uff0c\u5e76\u5c06 Linux \u548c\u4e00\u4e2a\u53ef\u9009\u7684\u521d\u59cb RAM \u78c1\u76d8\uff08\u4e34\u65f6\u6839\u6587\u4ef6\u7cfb\u7edf\uff09\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u3002\u5728\u52a0\u8f7d\u6620\u50cf\u65f6\uff0c\u7b2c\u4e8c\u9636\u6bb5\u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u5c31\u4f1a\u5c06\u63a7\u5236\u6743\u4ea4\u7ed9\u5185\u6838\u6620\u50cf\uff0c\u7136\u540e\u5185\u6838\u5c31\u53ef\u4ee5\u8fdb\u884c\u89e3\u538b\u548c\u521d\u59cb\u5316\u4e86\u3002\u5728\u8fd9\u4e2a\u9636\u6bb5\u4e2d\uff0c\u7b2c\u4e8c\u9636\u6bb5\u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u4f1a\u68c0\u6d4b\u7cfb\u7edf\u786c\u4ef6\u3001\u679a\u4e3e\u7cfb\u7edf\u94fe\u63a5\u7684\u786c\u4ef6\u8bbe\u5907\u3001\u6302\u8f7d\u6839\u8bbe\u5907\uff0c\u7136\u540e\u52a0\u8f7d\u5fc5\u8981\u7684\u5185\u6838\u6a21\u5757\u3002\u5b8c\u6210\u8fd9\u4e9b\u64cd\u4f5c\u4e4b\u540e\u542f\u52a8\u7b2c\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4\u7a0b\u5e8f\uff08init\uff09\uff0c\u5e76\u6267\u884c\u9ad8\u7ea7\u7cfb\u7edf\u521d\u59cb\u5316\u5de5\u4f5c\u3002<\/p>\n

\u8fd9\u5c31\u662f Linux \u5f15\u5bfc\u7684\u6574\u4e2a\u8fc7\u7a0b\u3002\u73b0\u5728\u8ba9\u6211\u4eec\u6df1\u5165\u6316\u6398\u4e00\u4e0b\u8fd9\u4e2a\u8fc7\u7a0b\uff0c\u5e76\u6df1\u5165\u7814\u7a76\u4e00\u4e0b Linux \u5f15\u5bfc\u8fc7\u7a0b\u7684\u4e00\u4e9b\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n

\u7cfb\u7edf\u542f\u52a8 <\/strong><\/p>\n

\u7cfb\u7edf\u542f\u52a8\u9636\u6bb5\u4f9d\u8d56\u4e8e\u5f15\u5bfc Linux \u7cfb\u7edf\u4e0a\u7684\u786c\u4ef6\u3002\u5728\u5d4c\u5165\u5f0f\u5e73\u53f0\u4e2d\uff0c\u5f53\u7cfb\u7edf\u52a0\u7535\u6216\u91cd\u7f6e\u65f6\uff0c\u4f1a\u4f7f\u7528\u4e00\u4e2a\u542f\u52a8\u73af\u5883\u3002\u8fd9\u65b9\u9762\u7684\u4f8b\u5b50\u5305\u62ec U-Boot\u3001RedBoot \u548c Lucent \u7684 MicroMonitor\u3002\u5d4c\u5165\u5f0f\u5e73\u53f0\u901a\u5e38\u90fd\u662f\u4e0e\u5f15\u5bfc\u76d1\u89c6\u5668\u642d\u914d\u9500\u552e\u7684\u3002\u8fd9\u4e9b\u7a0b\u5e8f\u4f4d\u4e8e\u76ee\u6807\u786c\u4ef6\u4e0a\u7684\u95ea\u5b58\u4e2d\u7684\u67d0\u4e00\u6bb5\u7279\u6b8a\u533a\u57df\uff0c\u5b83\u4eec\u63d0\u4f9b\u4e86\u5c06 Linux \u5185\u6838\u6620\u50cf\u4e0b\u8f7d\u5230\u95ea\u5b58\u5e76\u7ee7\u7eed\u6267\u884c\u7684\u65b9\u6cd5\u3002\u9664\u4e86\u53ef\u4ee5\u5b58\u50a8\u5e76\u5f15\u5bfc Linux \u6620\u50cf\u4e4b\u5916\uff0c\u8fd9\u4e9b\u5f15\u5bfc\u76d1\u89c6\u5668\u8fd8\u6267\u884c\u4e00\u5b9a\u7ea7\u522b\u7684\u7cfb\u7edf\u6d4b\u8bd5\u548c\u786c\u4ef6\u521d\u59cb\u5316\u8fc7\u7a0b\u3002\u5728\u5d4c\u5165\u5f0f\u5e73\u53f0\u4e2d\uff0c\u8fd9\u4e9b\u5f15\u5bfc\u76d1\u89c6\u5668\u901a\u5e38\u4f1a\u6d89\u53ca\u7b2c\u4e00\u9636\u6bb5\u548c\u7b2c\u4e8c\u9636\u6bb5\u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u3002<\/p>\n

\u5728 PC \u4e2d\uff0c\u5f15\u5bfc Linux \u662f\u4ece BIOS \u4e2d\u7684\u5730\u5740 0xFFFF0 \u5904\u5f00\u59cb\u7684\u3002BIOS \u7684\u7b2c\u4e00\u4e2a\u6b65\u9aa4\u662f\u52a0\u7535\u81ea\u68c0\uff08POST\uff09\u3002POST \u7684\u5de5\u4f5c\u662f\u5bf9\u786c\u4ef6\u8fdb\u884c\u68c0\u6d4b\u3002BIOS \u7684\u7b2c\u4e8c\u4e2a\u6b65\u9aa4\u662f\u8fdb\u884c\u672c\u5730\u8bbe\u5907\u7684\u679a\u4e3e\u548c\u521d\u59cb\u5316\u3002<\/p>\n

\u7ed9\u5b9a BIOS \u529f\u80fd\u7684\u4e0d\u540c\u7528\u6cd5\u4e4b\u540e\uff0cBIOS \u7531\u4e24\u90e8\u5206\u7ec4\u6210\uff1aPOST \u4ee3\u7801\u548c\u8fd0\u884c\u65f6\u670d\u52a1\u3002\u5f53 POST \u5b8c\u6210\u4e4b\u540e\uff0c\u5b83\u88ab\u4ece\u5185\u5b58\u4e2d\u6e05\u7406\u4e86\u51fa\u6765\uff0c\u4f46\u662f BIOS \u8fd0\u884c\u65f6\u670d\u52a1\u4f9d\u7136\u4fdd\u7559\u5728\u5185\u5b58\u4e2d\uff0c\u76ee\u6807\u64cd\u4f5c\u7cfb\u7edf\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u670d\u52a1\u3002<\/p>\n

\u8981\u5f15\u5bfc\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\uff0cBIOS \u8fd0\u884c\u65f6\u4f1a\u6309\u7167 CMOS \u7684\u8bbe\u7f6e\u5b9a\u4e49\u7684\u987a\u5e8f\u6765\u641c\u7d22\u5904\u4e8e\u6d3b\u52a8\u72b6\u6001\u5e76\u4e14\u53ef\u4ee5\u5f15\u5bfc\u7684\u8bbe\u5907\u3002\u5f15\u5bfc\u8bbe\u5907\u53ef\u4ee5\u662f\u8f6f\u76d8\u3001CD-ROM\u3001\u786c\u76d8\u4e0a\u7684\u67d0\u4e2a\u5206\u533a\u3001\u7f51\u7edc\u4e0a\u7684\u67d0\u4e2a\u8bbe\u5907\uff0c\u751a\u81f3\u662f USB \u95ea\u5b58\u3002<\/p>\n

\u901a\u5e38\uff0cLinux \u90fd\u662f\u4ece\u786c\u76d8\u4e0a\u5f15\u5bfc\u7684\uff0c\u5176\u4e2d\u4e3b\u5f15\u5bfc\u8bb0\u5f55\uff08MBR\uff09\u4e2d\u5305\u542b\u4e3b\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u3002MBR \u662f\u4e00\u4e2a 512 \u5b57\u8282\u5927\u5c0f\u7684\u6247\u533a\uff0c\u4f4d\u4e8e\u78c1\u76d8\u4e0a\u7684\u7b2c\u4e00\u4e2a\u6247\u533a\u4e2d\uff080 \u9053 0 \u67f1\u9762 1 \u6247\u533a\uff09\u3002\u5f53 MBR \u88ab\u52a0\u8f7d\u5230 RAM \u4e2d\u4e4b\u540e\uff0cBIOS \u5c31\u4f1a\u5c06\u63a7\u5236\u6743\u4ea4\u7ed9 MBR\u3002<\/p>\n

code:<\/font><\/p>\n


\n
\n\u63d0\u53d6 MBR \u7684\u4fe1\u606f<\/p>\n

\u8981\u67e5\u770b MBR \u7684\u5185\u5bb9\uff0c\u8bf7\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\uff1a
\n# dd if=\/dev\/hda of=mbr.bin bs=512 count=1 # od -xa mbr.bin<\/p>\n

\u8fd9\u4e2a dd \u547d\u4ee4\u9700\u8981\u4ee5 root \u7528\u6237\u7684\u8eab\u4efd\u8fd0\u884c\uff0c\u5b83\u4ece \/dev\/hda\uff08\u7b2c\u4e00\u4e2a IDE \u76d8\uff09 \u4e0a\u8bfb\u53d6\u524d 512 \u4e2a\u5b57\u8282\u7684\u5185\u5bb9\uff0c\u5e76\u5c06\u5176\u5199\u5165 mbr.bin \u6587\u4ef6\u4e2d\u3002od \u547d\u4ee4\u4f1a\u4ee5\u5341\u516d\u8fdb\u5236\u548c ASCII \u7801\u683c\u5f0f\u6253\u5370\u8fd9\u4e2a\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u5185\u5bb9\u3002
\n<\/em><\/p>\n


<\/blockquote>\n

\u7b2c\u4e00\u9636\u6bb5\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f <\/strong><\/p>\n

MBR \u4e2d\u7684\u4e3b\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u662f\u4e00\u4e2a 512 \u5b57\u8282\u5927\u5c0f\u7684\u6620\u50cf\uff0c\u5176\u4e2d\u5305\u542b\u7a0b\u5e8f\u4ee3\u7801\u548c\u4e00\u4e2a\u5c0f\u5206\u533a\u8868\uff08\u53c2\u89c1\u56fe 2\uff09\u3002\u524d 446 \u4e2a\u5b57\u8282\u662f\u4e3b\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\uff0c\u5176\u4e2d\u5305\u542b\u53ef\u6267\u884c\u4ee3\u7801\u548c\u9519\u8bef\u6d88\u606f\u6587\u672c\u3002\u63a5\u4e0b\u6765\u7684 64 \u4e2a\u5b57\u8282\u662f\u5206\u533a\u8868\uff0c\u5176\u4e2d\u5305\u542b 4 \u4e2a\u5206\u533a\u7684\u8bb0\u5f55\uff08\u6bcf\u4e2a\u8bb0\u5f55\u7684\u5927\u5c0f\u662f 16 \u4e2a\u5b57\u8282\uff09\u3002MBR \u4ee5\u4e24\u4e2a\u7279\u6b8a\u6570\u5b57\u7684\u5b57\u8282\uff080xAA55\uff09\u7ed3\u675f\u3002\u8fd9\u4e2a\u6570\u5b57\u4f1a\u7528\u6765\u8fdb\u884c MBR \u7684\u6709\u6548\u6027\u68c0\u67e5\u3002<\/p>\n

\u56fe 2. MBR \u5256\u6790<\/p>\n

\"\"<\/p>\n

\u4e3b\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u7684\u5de5\u4f5c\u662f\u67e5\u627e\u5e76\u52a0\u8f7d\u6b21\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\uff08\u7b2c\u4e8c\u9636\u6bb5\uff09\u3002\u5b83\u662f\u901a\u8fc7\u5728\u5206\u533a\u8868\u4e2d\u67e5\u627e\u4e00\u4e2a\u6d3b\u52a8\u5206\u533a\u6765\u5b9e\u73b0\u8fd9\u79cd\u529f\u80fd\u7684\u3002\u5f53\u627e\u5230\u4e00\u4e2a\u6d3b\u52a8\u5206\u533a\u65f6\uff0c\u5b83\u4f1a\u626b\u63cf\u5206\u533a\u8868\u4e2d\u7684\u5176\u4ed6\u5206\u533a\uff0c\u4ee5\u786e\u4fdd\u5b83\u4eec\u90fd\u4e0d\u662f\u6d3b\u52a8\u7684\u3002\u5f53\u8fd9\u4e2a\u8fc7\u7a0b\u9a8c\u8bc1\u5b8c\u6210\u4e4b\u540e\uff0c\u5c31\u5c06\u6d3b\u52a8\u5206\u533a\u7684\u5f15\u5bfc\u8bb0\u5f55\u4ece\u8fd9\u4e2a\u8bbe\u5907\u4e2d\u8bfb\u5165 RAM \u4e2d\u5e76\u6267\u884c\u5b83\u3002<\/p>\n

\u7b2c\u4e8c\u9636\u6bb5\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f <\/strong><\/p>\n

\u6b21\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\uff08\u7b2c\u4e8c\u9636\u6bb5\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\uff09\u53ef\u4ee5\u66f4\u5f62\u8c61\u5730\u79f0\u4e3a\u5185\u6838\u52a0\u8f7d\u7a0b\u5e8f\u3002\u8fd9\u4e2a\u9636\u6bb5\u7684\u4efb\u52a1\u662f\u52a0\u8f7d Linux \u5185\u6838\u548c\u53ef\u9009\u7684\u521d\u59cb RAM \u78c1\u76d8\u3002
\n\u5728 x86 PC \u73af\u5883\u4e2d\uff0c\u7b2c\u4e00\u9636\u6bb5\u548c\u7b2c\u4e8c\u9636\u6bb5\u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u4e00\u8d77\u79f0\u4e3a Linux Loader\uff08LILO\uff09\u6216 GRand Unified Bootloader\uff08GRUB\uff09\u3002\u7531\u4e8e LILO \u6709\u4e00\u4e9b\u7f3a\u70b9\uff0c\u800c GRUB \u514b\u670d\u4e86\u8fd9\u4e9b\u7f3a\u70b9\uff0c\u56e0\u6b64\u4e0b\u9762\u8ba9\u6211\u4eec\u5c31\u6765\u770b\u4e00\u4e0b GRUB\u3002\uff08\u6709\u5173 GRUB\u3001LILO \u548c\u76f8\u5173\u4e3b\u9898\u7684\u66f4\u591a\u5185\u5bb9\uff0c\u8bf7\u53c2\u9605\u672c\u6587\u540e\u9762\u7684 \u53c2\u8003\u8d44\u6599 \u90e8\u5206\u7684\u5185\u5bb9\u3002\uff09<\/p>\n

\u5173\u4e8e GRUB\uff0c\u5f88\u597d\u7684\u4e00\u4ef6\u4e8b\u60c5\u662f\u5b83\u5305\u542b\u4e86\u6709\u5173 Linux \u6587\u4ef6\u7cfb\u7edf\u7684\u77e5\u8bc6\u3002GRUB \u4e0d\u50cf LILO \u4e00\u6837\u4f7f\u7528\u88f8\u6247\u533a\uff0c\u800c\u662f\u53ef\u4ee5\u4ece ext2 \u6216 ext3 \u6587\u4ef6\u7cfb\u7edf\u4e2d\u52a0\u8f7d Linux \u5185\u6838\u3002\u5b83\u662f\u901a\u8fc7\u5c06\u4e24\u9636\u6bb5\u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u8f6c\u6362\u6210\u4e09\u9636\u6bb5\u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u6765\u5b9e\u73b0\u8fd9\u9879\u529f\u80fd\u7684\u3002\u9636\u6bb5 1 \uff08MBR\uff09\u5f15\u5bfc\u4e86\u4e00\u4e2a\u9636\u6bb5 1.5 \u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\uff0c\u5b83\u53ef\u4ee5\u7406\u89e3\u5305\u542b Linux \u5185\u6838\u6620\u50cf\u7684\u7279\u6b8a\u6587\u4ef6\u7cfb\u7edf\u3002\u8fd9\u65b9\u9762\u7684\u4f8b\u5b50\u5305\u62ec reiserfs_stage1_5\uff08\u8981\u4ece Reiser \u65e5\u5fd7\u6587\u4ef6\u7cfb\u7edf\u4e0a\u8fdb\u884c\u52a0\u8f7d\uff09\u6216 e2fs_stage1_5\uff08\u8981\u4ece ext2 \u6216 ext3 \u6587\u4ef6\u7cfb\u7edf\u4e0a\u8fdb\u884c\u52a0\u8f7d\uff09\u3002\u5f53\u9636\u6bb5 1.5 \u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u88ab\u52a0\u8f7d\u5e76\u8fd0\u884c\u65f6\uff0c\u9636\u6bb5 2 \u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u5c31\u53ef\u4ee5\u8fdb\u884c\u52a0\u8f7d\u4e86\u3002<\/p>\n

\u5f53\u9636\u6bb5 2 \u52a0\u8f7d\u4e4b\u540e\uff0cGRUB \u5c31\u53ef\u4ee5\u5728\u8bf7\u6c42\u65f6\u663e\u793a\u53ef\u7528\u5185\u6838\u5217\u8868\uff08\u5728 \/etc\/grub.conf \u4e2d\u8fdb\u884c\u5b9a\u4e49\uff0c\u540c\u65f6\u8fd8\u6709\u51e0\u4e2a\u8f6f\u7b26\u53f7\u94fe\u63a5 \/etc\/grub\/menu.lst \u548c \/etc\/grub.conf\uff09\u3002\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u5185\u6838\u751a\u81f3\u4fee\u6539\u9644\u52a0\u5185\u6838\u53c2\u6570\u3002\u53e6\u5916\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u547d\u4ee4\u884c\u7684 shell \u5bf9\u5f15\u5bfc\u8fc7\u7a0b\u8fdb\u884c\u9ad8\u7ea7\u624b\u5de5\u63a7\u5236\u3002<\/p>\n

\u5c06\u7b2c\u4e8c\u9636\u6bb5\u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u5bf9\u6587\u4ef6\u7cfb\u7edf\u8fdb\u884c\u67e5\u8be2\u4e86\uff0c\u5e76\u5c06\u9ed8\u8ba4\u7684\u5185\u6838\u6620\u50cf\u548c initrd \u6620\u50cf\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u3002\u5f53\u8fd9\u4e9b\u6620\u50cf\u6587\u4ef6\u51c6\u5907\u597d\u4e4b\u540e\uff0c\u9636\u6bb5 2 \u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u5c31\u53ef\u4ee5\u8c03\u7528\u5185\u6838\u6620\u50cf\u4e86\u3002<\/p>\n

code:<\/font><\/p>\n


\n
\nGRUB \u9636\u6bb5\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f<\/p>\n

\/boot\/grub \u76ee\u5f55\u4e2d\u5305\u542b\u4e86 stage1\u3001stage1.5 \u548c stage2 \u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\uff0c\u4ee5\u53ca\u5f88\u591a\u5176\u4ed6\u52a0\u8f7d\u7a0b\u5e8f\uff08\u4f8b\u5982\uff0cCR-ROM \u4f7f\u7528\u7684\u662f iso9660_stage_1_5\uff09\u3002
\n<\/em><\/p>\n


<\/blockquote>\n

\u5185\u6838<\/strong>
\n\u5f53\u5185\u6838\u6620\u50cf\u88ab\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u5e76\u4e14\u9636\u6bb5 2 \u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u91ca\u653e\u63a7\u5236\u6743\u4e4b\u540e\uff0c\u5185\u6838\u9636\u6bb5\u5c31\u5f00\u59cb\u4e86\u3002\u5185\u6838\u6620\u50cf\u5e76\u4e0d\u662f\u4e00\u4e2a\u53ef\u6267\u884c\u7684\u5185\u6838\uff0c\u800c\u662f\u4e00\u4e2a\u538b\u7f29\u8fc7\u7684\u5185\u6838\u6620\u50cf\u3002\u901a\u5e38\u5b83\u662f\u4e00\u4e2a zImage\uff08\u538b\u7f29\u6620\u50cf\uff0c\u5c0f\u4e8e 512KB\uff09\u6216\u4e00\u4e2a bzImage\uff08\u8f83\u5927\u7684\u538b\u7f29\u6620\u50cf\uff0c\u5927\u4e8e 512KB\uff09\uff0c\u5b83\u662f\u63d0\u524d\u4f7f\u7528 zlib \u8fdb\u884c\u538b\u7f29\u8fc7\u7684\u3002\u5728\u8fd9\u4e2a\u5185\u6838\u6620\u50cf\u524d\u9762\u662f\u4e00\u4e2a\u4f8b\u7a0b\uff0c\u5b83\u5b9e\u73b0\u5c11\u91cf\u786c\u4ef6\u8bbe\u7f6e\uff0c\u5e76\u5bf9\u5185\u6838\u6620\u50cf\u4e2d\u5305\u542b\u7684\u5185\u6838\u8fdb\u884c\u89e3\u538b\uff0c\u7136\u540e\u5c06\u5176\u653e\u5165\u9ad8\u7aef\u5185\u5b58\u4e2d\uff0c\u5982\u679c\u6709\u521d\u59cb RAM \u78c1\u76d8\u6620\u50cf\uff0c\u5c31\u4f1a\u5c06\u5b83\u79fb\u52a8\u5230\u5185\u5b58\u4e2d\uff0c\u5e76\u6807\u660e\u4ee5\u540e\u4f7f\u7528\u3002\u7136\u540e\u8be5\u4f8b\u7a0b\u4f1a\u8c03\u7528\u5185\u6838\uff0c\u5e76\u5f00\u59cb\u542f\u52a8\u5185\u6838\u5f15\u5bfc\u7684\u8fc7\u7a0b\u3002<\/p>\n

\u5f53 bzImage\uff08\u7528\u4e8e i386 \u6620\u50cf\uff09\u88ab\u8c03\u7528\u65f6\uff0c\u6211\u4eec\u4ece .\/arch\/i386\/boot\/head.S \u7684 start \u6c47\u7f16\u4f8b\u7a0b\u5f00\u59cb\u6267\u884c\uff08\u4e3b\u8981\u6d41\u7a0b\u56fe\u8bf7\u53c2\u770b\u56fe 3\uff09\u3002\u8fd9\u4e2a\u4f8b\u7a0b\u4f1a\u6267\u884c\u4e00\u4e9b\u57fa\u672c\u7684\u786c\u4ef6\u8bbe\u7f6e\uff0c\u5e76\u8c03\u7528 .\/arch\/i386\/boot\/compressed\/head.S \u4e2d\u7684 startup_32 \u4f8b\u7a0b\u3002\u6b64\u4f8b\u7a0b\u4f1a\u8bbe\u7f6e\u4e00\u4e2a\u57fa\u672c\u7684\u73af\u5883\uff08\u5806\u6808\u7b49\uff09\uff0c\u5e76\u6e05\u9664 Block Started by Symbol\uff08BSS\uff09\u3002\u7136\u540e\u8c03\u7528\u4e00\u4e2a\u53eb\u505a decompress_kernel \u7684 C \u51fd\u6570\uff08\u5728 .\/arch\/i386\/boot\/compressed\/misc.c \u4e2d\uff09\u6765\u89e3\u538b\u5185\u6838\u3002\u5f53\u5185\u6838\u88ab\u89e3\u538b\u5230\u5185\u5b58\u4e2d\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u8c03\u7528\u5b83\u4e86\u3002\u8fd9\u662f\u53e6\u5916\u4e00\u4e2a startup_32 \u51fd\u6570\uff0c\u4f46\u662f\u8fd9\u4e2a\u51fd\u6570\u5728 .\/arch\/i386\/kernel\/head.S \u4e2d\u3002<\/p>\n

\u5728\u8fd9\u4e2a\u65b0\u7684 startup_32 \u51fd\u6570\uff08\u4e5f\u79f0\u4e3a\u6e05\u9664\u7a0b\u5e8f\u6216\u8fdb\u7a0b 0\uff09\u4e2d\uff0c\u4f1a\u5bf9\u9875\u8868\u8fdb\u884c\u521d\u59cb\u5316\uff0c\u5e76\u542f\u7528\u5185\u5b58\u5206\u9875\u529f\u80fd\u3002\u7136\u540e\u4f1a\u4e3a\u4efb\u4f55\u53ef\u9009\u7684\u6d6e\u70b9\u5355\u5143\uff08FPU\uff09\u68c0\u6d4b CPU \u7684\u7c7b\u578b\uff0c\u5e76\u5c06\u5176\u5b58\u50a8\u8d77\u6765\u4f9b\u4ee5\u540e\u4f7f\u7528\u3002\u7136\u540e\u8c03\u7528 start_kernel \u51fd\u6570\uff08\u5728 init\/main.c \u4e2d\uff09\uff0c\u5b83\u4f1a\u5c06\u60a8\u5e26\u5165\u4e0e\u4f53\u7cfb\u7ed3\u6784\u65e0\u5173\u7684 Linux \u5185\u6838\u90e8\u5206\u3002\u5b9e\u9645\u4e0a\uff0c\u8fd9\u5c31\u662f Linux \u5185\u6838\u7684 main \u51fd\u6570\u3002<\/p>\n

code:<\/font><\/p>\n


\n
\nGRUB \u4e2d\u7684\u624b\u5de5\u5f15\u5bfc<\/p>\n

\u5728 GRUB \u547d\u4ee4\u884c\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 initrd \u6620\u50cf\u5f15\u5bfc\u4e00\u4e2a\u7279\u5b9a\u7684\u5185\u6838\uff0c\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n

grub> kernel \/bzImage-2.6.14.2
\n[Linux-bzImage, setup=0x1400, size=0x29672e]<\/p>\n

grub> initrd \/initrd-2.6.14.2.img
\n[Linux-initrd @ 0x5f13000, 0xcc199 bytes]<\/p>\n

grub> boot<\/p>\n

Uncompressing Linux… Ok, booting the kernel.<\/p>\n

\u5982\u679c\u60a8\u4e0d\u77e5\u9053\u8981\u5f15\u5bfc\u7684\u5185\u6838\u7684\u540d\u79f0\uff0c\u53ea\u9700\u4f7f\u7528\u659c\u7ebf\uff08\/\uff09\u7136\u540e\u6309\u4e0b Tab \u952e\u5373\u53ef\u3002GRUB \u4f1a\u663e\u793a\u5185\u6838\u548c initrd \u6620\u50cf\u5217\u8868\u3002
\n<\/em><\/p>\n


<\/blockquote>\n

\u56fe 3. Linux \u5185\u6838 i386 \u5f15\u5bfc\u7684\u4e3b\u8981\u51fd\u6570\u6d41\u7a0b
\n\"\"<\/p>\n

\u901a\u8fc7\u8c03\u7528 start_kernel\uff0c\u4f1a\u8c03\u7528\u4e00\u7cfb\u5217\u521d\u59cb\u5316\u51fd\u6570\u6765\u8bbe\u7f6e\u4e2d\u65ad\uff0c\u6267\u884c\u8fdb\u4e00\u6b65\u7684\u5185\u5b58\u914d\u7f6e\uff0c\u5e76\u52a0\u8f7d\u521d\u59cb RAM \u78c1\u76d8\u3002\u6700\u540e\uff0c\u8981\u8c03\u7528 kernel_thread\uff08\u5728 arch\/i386\/kernel\/process.c \u4e2d\uff09\u6765\u542f\u52a8 init \u51fd\u6570\uff0c\u8fd9\u662f\u7b2c\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4\u8fdb\u7a0b\uff08user-space process\uff09\u3002\u6700\u540e\uff0c\u542f\u52a8\u7a7a\u4efb\u52a1\uff0c\u73b0\u5728\u8c03\u5ea6\u5668\u5c31\u53ef\u4ee5\u63a5\u7ba1\u63a7\u5236\u6743\u4e86\uff08\u5728\u8c03\u7528 cpu_idle \u4e4b\u540e\uff09\u3002\u901a\u8fc7\u542f\u7528\u4e2d\u65ad\uff0c\u62a2\u5360\u5f0f\u7684\u8c03\u5ea6\u5668\u5c31\u53ef\u4ee5\u5468\u671f\u6027\u5730\u63a5\u7ba1\u63a7\u5236\u6743\uff0c\u4ece\u800c\u63d0\u4f9b\u591a\u4efb\u52a1\u5904\u7406\u80fd\u529b\u3002<\/p>\n

\u5728\u5185\u6838\u5f15\u5bfc\u8fc7\u7a0b\u4e2d\uff0c\u521d\u59cb RAM \u78c1\u76d8\uff08initrd\uff09\u662f\u7531\u9636\u6bb5 2 \u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u7684\uff0c\u5b83\u4f1a\u88ab\u590d\u5236\u5230 RAM \u4e2d\u5e76\u6302\u8f7d\u5230\u7cfb\u7edf\u4e0a\u3002\u8fd9\u4e2a initrd \u4f1a\u4f5c\u4e3a RAM \u4e2d\u7684\u4e34\u65f6\u6839\u6587\u4ef6\u7cfb\u7edf\u4f7f\u7528\uff0c\u5e76\u5141\u8bb8\u5185\u6838\u5728\u6ca1\u6709\u6302\u8f7d\u4efb\u4f55\u7269\u7406\u78c1\u76d8\u7684\u60c5\u51b5\u4e0b\u5b8c\u6574\u5730\u5b9e\u73b0\u5f15\u5bfc\u3002\u7531\u4e8e\u4e0e\u5916\u56f4\u8bbe\u5907\u8fdb\u884c\u4ea4\u4e92\u6240\u9700\u8981\u7684\u6a21\u5757\u53ef\u80fd\u662f initrd \u7684\u4e00\u90e8\u5206\uff0c\u56e0\u6b64\u5185\u6838\u53ef\u4ee5\u975e\u5e38\u5c0f\uff0c\u4f46\u662f\u4ecd\u7136\u9700\u8981\u652f\u6301\u5927\u91cf\u53ef\u80fd\u7684\u786c\u4ef6\u914d\u7f6e\u3002\u5728\u5185\u6838\u5f15\u5bfc\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u6b63\u5f0f\u88c5\u5907\u6839\u6587\u4ef6\u7cfb\u7edf\u4e86\uff08\u901a\u8fc7 pivot_root\uff09\uff1a\u6b64\u65f6\u4f1a\u5c06 initrd \u6839\u6587\u4ef6\u7cfb\u7edf\u5378\u8f7d\u6389\uff0c\u5e76\u6302\u8f7d\u771f\u6b63\u7684\u6839\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n

initrd \u51fd\u6570\u8ba9\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5c0f\u578b\u7684 Linux \u5185\u6838\uff0c\u5176\u4e2d\u5305\u62ec\u4f5c\u4e3a\u53ef\u52a0\u8f7d\u6a21\u5757\u7f16\u8bd1\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002\u8fd9\u4e9b\u53ef\u52a0\u8f7d\u7684\u6a21\u5757\u4e3a\u5185\u6838\u63d0\u4f9b\u4e86\u8bbf\u95ee\u78c1\u76d8\u548c\u78c1\u76d8\u4e0a\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u65b9\u6cd5\uff0c\u5e76\u4e3a\u5176\u4ed6\u786c\u4ef6\u63d0\u4f9b\u4e86\u9a71\u52a8\u7a0b\u5e8f\u3002\u7531\u4e8e\u6839\u6587\u4ef6\u7cfb\u7edf\u662f\u78c1\u76d8\u4e0a\u7684\u4e00\u4e2a\u6587\u4ef6\u7cfb\u7edf\uff0c\u56e0\u6b64 initrd \u51fd\u6570\u4f1a\u63d0\u4f9b\u4e00\u79cd\u542f\u52a8\u65b9\u6cd5\u6765\u83b7\u5f97\u5bf9\u78c1\u76d8\u7684\u8bbf\u95ee\uff0c\u5e76\u6302\u8f7d\u771f\u6b63\u7684\u6839\u6587\u4ef6\u7cfb\u7edf\u3002\u5728\u4e00\u4e2a\u6ca1\u6709\u786c\u76d8\u7684\u5d4c\u5165\u5f0f\u73af\u5883\u4e2d\uff0cinitrd \u53ef\u4ee5\u662f\u6700\u7ec8\u7684\u6839\u6587\u4ef6\u7cfb\u7edf\uff0c\u6216\u8005\u4e5f\u53ef\u4ee5\u901a\u8fc7\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf\uff08NFS\uff09\u6765\u6302\u8f7d\u6700\u7ec8\u7684\u6839\u6587\u4ef6\u7cfb\u7edf\u3002<\/p>\n

Init<\/strong><\/p>\n

\u5f53\u5185\u6838\u88ab\u5f15\u5bfc\u5e76\u8fdb\u884c\u521d\u59cb\u5316\u4e4b\u540e\uff0c\u5185\u6838\u5c31\u53ef\u4ee5\u542f\u52a8\u81ea\u5df1\u7684\u7b2c\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4\u5e94\u7528\u7a0b\u5e8f\u4e86\u3002\u8fd9\u662f\u7b2c\u4e00\u4e2a\u8c03\u7528\u7684\u4f7f\u7528\u6807\u51c6 C \u5e93\u7f16\u8bd1\u7684\u7a0b\u5e8f\u3002\u5728\u6b64\u4e4b\u524d\uff0c\u8fd8\u6ca1\u6709\u6267\u884c\u4efb\u4f55\u6807\u51c6\u7684 C \u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u5728\u684c\u9762 Linux \u7cfb\u7edf\u4e0a\uff0c\u7b2c\u4e00\u4e2a\u542f\u52a8\u7684\u7a0b\u5e8f\u901a\u5e38\u662f \/sbin\/init\u3002\u4f46\u662f\u8fd9\u4e0d\u662f\u4e00\u5b9a\u7684\u3002\u5f88\u5c11\u6709\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4f1a\u9700\u8981\u4f7f\u7528 init \u6240\u63d0\u4f9b\u7684\u4e30\u5bcc\u521d\u59cb\u5316\u529f\u80fd\uff08\u8fd9\u662f\u901a\u8fc7 \/etc\/inittab \u8fdb\u884c\u914d\u7f6e\u7684\uff09\u3002\u5728\u5f88\u591a\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u8c03\u7528\u4e00\u4e2a\u7b80\u5355\u7684 shell \u811a\u672c\u6765\u542f\u52a8\u5fc5\u9700\u7684\u5d4c\u5165\u5f0f\u5e94\u7528\u7a0b\u5e8f\u3002 <\/p>\n

\u7ed3\u675f\u8bed<\/strong><\/p>\n

\u4e0e Linux \u672c\u8eab\u975e\u5e38\u7c7b\u4f3c\uff0cLinux \u7684\u5f15\u5bfc\u8fc7\u7a0b\u4e5f\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u652f\u6301\u4f17\u591a\u7684\u5904\u7406\u5668\u548c\u786c\u4ef6\u5e73\u53f0\u3002\u6700\u521d\uff0c\u52a0\u8f7d\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u65b9\u6cd5\uff0c\u4e0d\u7528\u4efb\u4f55\u82b1\u67b6\u5b50\u5c31\u53ef\u4ee5\u5f15\u5bfc Linux\u3002LILO \u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u5bf9\u5f15\u5bfc\u80fd\u529b\u8fdb\u884c\u4e86\u6269\u5145\uff0c\u4f46\u662f\u5b83\u5374\u7f3a\u5c11\u6587\u4ef6\u7cfb\u7edf\u7684\u611f\u77e5\u80fd\u529b\u3002\u6700\u65b0\u4e00\u4ee3\u7684\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\uff0c\u4f8b\u5982 GRUB\uff0c\u5141\u8bb8 Linux \u4ece\u4e00\u4e9b\u6587\u4ef6\u7cfb\u7edf\uff08\u4ece Minix \u5230 Reise\uff09\u4e0a\u8fdb\u884c\u5f15\u5bfc\u3002 <\/p>\n

\u53c2\u8003\u8d44\u6599 <\/strong>
\n\u5b66\u4e60<\/p>\n

* \u60a8\u53ef\u4ee5\u53c2\u9605\u672c\u6587\u5728 developerWorks \u5168\u7403\u7ad9\u70b9\u4e0a\u7684 \u82f1\u6587\u539f\u6587 \u3002<\/p>\n

* Boot Records Revealed \u662f\u6709\u5173 MBR \u548c\u5404\u79cd\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u5f88\u597d\u7684\u8d44\u6e90\u3002\u8fd9\u4e2a\u8d44\u6e90\u4e0d\u4ec5\u4ec5\u662f\u6709\u5173 MBR \u7684\u8d44\u6599\u7684\u6c47\u7f16\uff0c\u8fd8\u8ba8\u8bba\u4e86 GRUB\u3001LILO \u548c\u5404\u79cd Windows? \u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u7684\u95ee\u9898\u3002<\/p>\n

* \u8bf7\u67e5\u770b Disk Geometry \u9875\u9762\u6765\u7406\u89e3\u78c1\u76d8\u53ca\u5176\u7ed3\u6784\u3002\u60a8\u4f1a\u53d1\u73b0\u6709\u5173\u78c1\u76d8\u7684\u6709\u7528\u5c5e\u6027\u3002<\/p>\n

* live CD \u662f\u4e00\u4e2a\u53ef\u4ee5\u4ece CD \u6216 DVD \u4e0a\u5f15\u5bfc\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5b83\u4e0d\u9700\u8981\u4f7f\u7528\u786c\u76d8\u3002<\/p>\n

* “\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u4e4b\u4e89\uff1a\u4e86\u89e3 LILO \u548c GRUB”\uff08developerWorks\uff0c2005 \u5e74 8 \u6708\uff09\u8be6\u7ec6\u4ecb\u7ecd\u4e86 LILO \u548c GRUB \u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u3002<\/p>\n

* \u5728 developerWorks \u4e0a\u7684 LPI \u8003\u8bd5\u51c6\u5907 \u7cfb\u5217\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u5b66\u4e60\u6709\u5173\u5f15\u5bfc Linux \u7cfb\u7edf\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u4ee5\u53ca\u5728\u51c6\u5907\u53c2\u52a0\u7cfb\u7edf\u7ba1\u7406\u5458\u8ba4\u8bc1\u8003\u8bd5\u65f6\u9700\u8981\u51c6\u5907\u7684 Linux \u57fa\u7840\u77e5\u8bc6\u3002<\/p>\n

* LILO \u662f GRUB \u7684\u5148\u9a71\uff0c\u4f46\u662f\u6211\u4eec\u53ef\u80fd\u53d1\u73b0\u5b83\u4f9d\u7136\u53ef\u4ee5\u5f15\u5bfc Linux\u3002<\/p>\n

* mkintrd \u547d\u4ee4\u7528\u6765\u521b\u5efa\u521d\u59cb\u7684 RAM \u78c1\u76d8\u6620\u50cf\u3002\u8fd9\u4e2a\u547d\u4ee4\u53ef\u4ee5\u7528\u6765\u6784\u5efa\u521d\u59cb\u7684\u6839\u6587\u4ef6\u7cfb\u7edf\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5f15\u5bfc\u5141\u8bb8\u63d0\u524d\u52a0\u8f7d\u8bbf\u95ee\u771f\u6b63\u6839\u6587\u4ef6\u7cfb\u7edf\u6240\u9700\u8981\u7684\u5757\u8bbe\u5907\u7684\u914d\u7f6e\u3002<\/p>\n

* \u5728 Debian Linux Kernel Project \u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u627e\u5230\u66f4\u591a\u6709\u5173 Linux \u5185\u6838\u3001\u5f15\u5bfc\u548c\u5d4c\u5165\u5f0f\u5f00\u53d1\u7684\u4fe1\u606f\u3002<\/p>\n

* \u5728 developerWorks Linux \u4e13\u533a \u4e2d\u53ef\u4ee5\u627e\u5230\u4e3a Linux \u5f00\u53d1\u4eba\u5458\u51c6\u5907\u7684\u66f4\u591a\u8d44\u6e90\u3002<\/p>\n

* \u968f\u65f6\u5173\u6ce8 developerWorks \u6280\u672f\u4e8b\u4ef6\u548c\u7f51\u7edc\u5e7f\u64ad\u3002 <\/p>\n

\u83b7\u5f97\u4ea7\u54c1\u548c\u6280\u672f<\/p>\n

* MicroMonitor \u4e3a\u5404\u79cd\u5c0f\u578b\u7684\u76ee\u6807\u8bbe\u5907\u63d0\u4f9b\u4e86\u5f15\u5bfc\u73af\u5883\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u76d1\u89c6\u5668\u5728\u5d4c\u5165\u5f0f\u73af\u5883\u4e2d\u5f15\u5bfc Linux\u3002\u5b83\u5df2\u7ecf\u79fb\u690d\u5230 ARM\u3001 XScale\u3001MIPS\u3001PowerPC\u3001Coldfire \u548c Hitachi \u7684 Super-H \u4e0a\u4e86\u3002<\/p>\n

* GNU GRUB \u662f\u4e00\u4e2a\u5177\u6709\u4f17\u591a\u9009\u9879\u548c\u7075\u6d3b\u6027\u7684\u5f15\u5bfc shell\u3002<\/p>\n

* LinuxBIOS \u662f BIOS \u7684\u4e00\u4e2a\u66ff\u4ee3\u54c1\u3002LinuxBIOS \u4e0d\u4f46\u53ef\u4ee5\u5f15\u5bfc Linux\uff0c\u800c\u4e14\u5b83\u672c\u8eab\u5c31\u662f\u4e00\u4e2a\u538b\u7f29\u7684 Linux \u5185\u6838\u3002<\/p>\n

* OpenBIOS \u662f\u53e6\u4e00\u4e2a\u53ef\u79fb\u690d\u7684 BIOS \u9879\u76ee\uff0c\u53ef\u4ee5\u5728\u5f88\u591a\u4f53\u7cfb\u7ed3\u6784\u4e0a\u8fdb\u884c\u64cd\u4f5c\uff0c\u4f8b\u5982 x86\u3001Alpha \u548c AMD64\u3002<\/p>\n

* \u5728 kernel.org \u4e0a\u53ef\u4ee5\u627e\u5230\u6700\u65b0\u7684\u5185\u6838\u6811\u3002<\/p>\n

* \u8ba2\u8d2d\u514d\u8d39\u7684 SEK for Linux\uff0c\u5b83\u6709\u4e24\u5f20 DVD\uff0c\u5176\u4e2d\u5305\u62ec\u6700\u65b0\u7684 IBM for Linux \u7684\u8bd5\u7528\u7248\u8f6f\u4ef6\uff0c\u8fd9\u4e9b\u8f6f\u4ef6\u5305\u62ec DB2?\u3001Lotus?\u3001Rational?\u3001Tivoli? \u548c WebSphere?\u3002<\/p>\n

* \u4f7f\u7528 IBM \u8bd5\u7528\u7248\u8f6f\u4ef6 \u6539\u8fdb\u60a8\u7684\u4e0b\u4e00\u4e2a\u5f00\u53d1\u9879\u76ee\uff0c\u4ece developerWorks \u4e0a\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\u8fd9\u4e9b\u8f6f\u4ef6\u3002<\/p>\n

\u8ba8\u8bba<\/p>\n

* \u901a\u8fc7\u53c2\u4e0e developerWorks blogs \u52a0\u5165 developerWorks \u793e\u533a\u3002 <\/p>\n

\u5173\u4e8e\u4f5c\u8005<\/strong>
\nM. Tim Jones \u662f\u4e00\u540d\u5d4c\u5165\u5f0f\u8f6f\u4ef6\u67b6\u6784\u5e08\uff0c\u4ed6\u662f GNU\/Linux Application Programming\u3001AI Application Programming \u548c BSD Sockets Programming from a Multilanguage Perspective \u7b49\u4e66\u7684\u4f5c\u8005\u3002\u4ed6\u7684\u5de5\u7a0b\u80cc\u666f\u6d89\u53ca\u4ece\u540c\u6b65\u592a\u7a7a\u8239\u5f00\u53d1\u5185\u6838\uff0c\u5230\u5d4c\u5165\u5f0f\u7cfb\u7edf\u67b6\u6784\u548c\u7f51\u7edc\u534f\u8bae\u5f00\u53d1\u3002Tim \u662f\u4f4d\u4e8e\u79d1\u7f57\u62c9\u591a\u5dde\u7684 Longmont \u7684 Emulex \u516c\u53f8\u7684\u4e00\u540d\u987e\u95ee\u5de5\u7a0b\u5e08\u3002<\/p>\n

\u6587\u7ae0\u6765\u6e90<\/strong>
\nhttp:\/\/www.ibm.com\/developerworks\/cn\/linux\/l-linuxboot\/<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5f15\u5bfc Linux? \u7cfb\u7edf\u7684\u8fc7\u7a0b\u5305\u62ec\u5f88\u591a\u9636\u6bb5\u3002\u4e0d\u7ba1\u60a8\u662f\u5f15\u5bfc\u4e00\u4e2a\u6807\u51c6\u7684 x86 \u684c\u9762\u7cfb\u7edf\uff0c\u8fd8\u662f\u5f15\u5bfc\u4e00\u53f0\u5d4c\u5165\u5f0f\u7684 PowerPC? \u673a\u5668\uff0c\u5f88\u591a\u6d41\u7a0b\u90fd\u60ca\u4eba\u5730\u76f8\u4f3c\u3002\u672c\u6587\u5c06\u63a2\u7d22 Linux \u7684\u5f15\u5bfc\u8fc7\u7a0b\uff0c\u4ece\u6700\u521d\u7684\u5f15\u5bfc\u5230\u542f\u52a8\u7b2c\u4e00\u4e2a\u7528\u6237\u7a7a\u95f4\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u672c\u6587\u4ecb\u7ecd\u7684\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u5c06\u5b66\u4e60\u5230\u5404\u79cd\u4e0e\u5f15\u5bfc\u6709\u5173\u7684\u4e3b\u9898\uff0c\u4f8b\u5982\u5f15\u5bfc\u52a0\u8f7d\u7a0b\u5e8f\u3001\u5185\u6838\u89e3\u538b\u3001\u521d\u59cb RAM \u78c1\u76d8\u4ee5\u53ca Linux \u5f15\u5bfc\u7684\u5176\u4ed6\u4e00\u4e9b\u5143\u7d20\u3002……………………..<\/p>\n

\u7ee7\u7eed\u9605\u8bfb »<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"views":4288,"_links":{"self":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/117"}],"collection":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":0,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/117\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/tags?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}