{"id":1678,"date":"2011-09-05T19:26:00","date_gmt":"2011-09-05T11:26:00","guid":{"rendered":""},"modified":"2013-11-22T09:26:06","modified_gmt":"2013-11-22T01:26:06","slug":"xp-win7-%e5%8f%8aubuntu%e7%9a%84%e5%bc%95%e5%af%bc%e4%bf%ae%e5%a4%8d","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/1678.html","title":{"rendered":"XP Win7 \u53caUbuntu\u7684\u5f15\u5bfc\u4fee\u590d"},"content":{"rendered":"<p>1) \u4fee\u590d XP \u7cfb\u7edf\u5f15\u5bfc<\/p>\n<p>\u5982\u679c\u662f\u5b89\u88c5Ubuntu\u65f6\u6539\u5199\u4e86mbr\u5bfc\u81f4\u65e0\u6cd5\u542f\u52a8,\u53ef\u4ee5\u4f7f\u7528XP\u7684\u5b89\u88c5\u76d8(\u5b89\u88c5\u7248\u7684\u54e6,Ghost\u7684\u4e0d\u884c,\u67d0\u4e9b\u7cbe\u7b80\u7248\u7684\u4e5f\u4e0d\u53ef\u4ee5)\u8fdb\u5165\u4fee\u590d\u63a7\u5236\u53f0\u8fdb\u884c\u5f15\u5bfc\u4fee\u590d(\u4e3a\u4e86\u622a\u56fe\u8bf4\u660e\u65b9\u4fbf,\u4ee5\u4e0b\u5728VM\u865a\u62df\u673a\u4e2d\u5355\u7cfb\u7edf\u5f15\u5bfc\u4fee\u590d\u64cd\u4f5c,\u591a\u7cfb\u7edf\u4e5f\u7c7b\u4f3c)<\/p>\n<p>\u653e\u5165XP\u7cfb\u7edf\u5149\u76d8,\u4ece\u5149\u76d8\u5f15\u5bfc\u8fdb\u5165,\u9996\u5148\u4f1a\u8fdb\u884c\u4e00\u786c\u4ef6\u4ec0\u4e48\u7684\u68c0\u6d4b,\u4e4b\u540e\u6309&#8221;R&#8221;\u8fdb\u5165&#8221;\u6062\u590d\u63a7\u5236\u53f0&#8221;<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/fb2b6323674275c94623e8d0.jpg\" alt=\"\" \/><\/p>\n<p>\u4f9d\u6b21\u8f93\u51651(XP\u7684\u5b89\u88c5\u76d8\u7b26\uff09\u7ba1\u7406\u5458\u5bc6\u7801\uff08\u6ca1\u5c31\u76f4\u63a5\u56de\u8f66\uff09.<br \/>\n\u5728C:windows&gt;\u4e0b\u8f93\u5165fixboot\u6839\u636e\u63d0\u793a\u8f93\u5165y<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/d51f414b09ac134e09f7efd0.jpg\" alt=\"\" \/><\/p>\n<p>\u5728C:windows&gt;\u4e0b\u8f93\u5165fixmbr\u6839\u636e\u63d0\u793a\u8f93\u5165y<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/8ca60d3a1ea49c8715cecbd9.jpg\" alt=\"\" \/><\/p>\n<p>\u7136\u540e\u8f93\u5165exit\u9000\u51fa\u91cd\u8d77\u5c31\u53ef\u4ee5\u4e86.<\/p>\n<p>2) \u4fee\u590dWin7\u7cfb\u7edf\u5f15\u5bfc<\/p>\n<p>\u53ef\u4ee5\u628a\u8fd9\u4e2a\u8fc7\u7a0b\u7b80\u5355\u5730\u6982\u62ec\u4e3a\uff1aBIOS&#8211;&gt;MBR&#8211;&gt;DPT&#8211;&gt;pbr&#8211;&gt; Bootmgr&#8211;&gt;bcd&#8211;&gt;Winload.exe&#8211;&gt;\u5185\u6838\u52a0\u8f7d &#8211;&gt;\u6574\u4e2awindows7\u7cfb\u7edf<br \/>\n\u5982\u679c\u662f\u5b89\u88c5Ubuntu\u65f6\u6539\u5199\u4e86mbr\u5bfc\u81f4\u65e0\u6cd5\u542f\u52a8Win7:<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/bb0655b48ffb40a336d3cad9.jpg\" alt=\"\" \/><\/p>\n<p>\u653e\u5165windows7\u7684\u5b89\u88c5\u5149\u76d8\uff0c\u91cd\u542f\u540e\u4ece\u5149\u76d8\u5f15\u5bfc\uff0c\u5728\u5b89\u88c5\u754c\u9762\u9009\u4fee\u590d\u8ba1\u7b97\u673a(\u6216\u51fa\u73b0\u56fe\u5f62\u9875\u9762\u65f6\u6309\u5feb\u6377\u952eShift+F10)\uff0c\u7136\u540e\u9009\u62e9\u547d\u4ee4\u884c\uff0c\u8f93\u5165 bootrec \/fixmbr\u56de\u8f66,\u6765\u91cd\u5199Win7\u7684mbr.<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/e388c7eb52df63bed539c9d9.jpg\" alt=\"\" \/><\/p>\n<p>\u5982\u679cmbr\u4fee\u590d\u540e\u4ecd\u4e0d\u80fd\u8fdb\u7cfb\u7edf,\u6216\u4e0d\u662fmbr\u5f15\u5bfc\u95ee\u9898,\u662f\u5b89\u88c5XP\u5bfc\u81f4Win7\u7684\u5f15\u5bfc\u6302\u6389:<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/f7772ea56c2b5c9a9052eed0.jpg\" alt=\"\" \/><\/p>\n<p>\u53ef\u4ee5\u4f7f\u7528bootsect\u547d\u4ee4\u6765\u4fee\u590d.\u540c\u6837\u653e\u5165win7\u5149\u76d8\u8fdb\u5165\u547d\u4ee4\u884c,\u8f93\u5165bootsect \/nt60 sys \/mbr\u56de\u8f66\u5373\u53ef.<br \/>\nbootsect\u8fd9\u4e2a\u547d\u4ee4\u4f1a\u6539\u5199\u6d3b\u52a8\u5206\u533a\u7684pbr\uff0c\u5e76\u540c\u65f6\u4f1a\u6539\u5199mbr\uff0c\u4f7f\u5f97mbr\u548cpbr\u9002\u5408\u4e8ewindows7\u548cvista\u3002<br \/>\nbootsect.exe\u7a0b\u5e8f\u4f4d\u4e8ewindows7\u5b89\u88c5\u5149\u76d8\u7684boot\u76ee\u5f55\u4e0b\uff0c\u53ef\u4ee5\u628a\u8fd9\u4e2a\u6587\u4ef6\u63d0\u53d6\u51fa\u6765\uff0c\u5728xp\u4e0b\u7684\u547d\u4ee4\u884c\u53ef\u4ee5\u8fd0\u884c\u8fd9\u4e2a\u7a0b\u5e8f\uff0c\u4e5f\u53ef\u4ee5\u5728winpe\u4e0b\u7684\u547d\u4ee4\u884c\u8fd0\u884c\u8fd9\u4e2a\u7a0b\u5e8f\uff0c\u56e0\u800c\u8fd9\u4e2a\u7a0b\u5e8f\u5728\u4f7f\u7528\u65f6\u5f88\u65b9\u4fbf\u3002\u800cbootrec.exe\u547d\u4ee4\u7684\u4f7f\u7528\u5c31\u6ca1\u8fd9\u4e48\u65b9\u4fbf\u4e86\u3002\u6240\u4ee5BOOTSECT\u547d\u4ee4\u88ab\u5e94\u7528\u5f97\u66f4\u4e3a\u5e7f\u6cdb\u4e00\u4e9b\u3002<br \/>\n\u6ce8:\u672c\u60f3\u5728\u865a\u62df\u673a\u4e2d\u6f14\u793a\u622a\u56fe\u7684,\u53d1\u73b0\u672c\u4eba\u4e0b\u7684\u662fX64\u7684Win7,\u5728VM\u4e0b\u65e0\u6cd5\u8fd0\u884c,\u6545\u672c\u6bb5Win7\u4fee\u590d\u501f\u9274\u00a0<a href=\"http:\/\/blog.sina.com.cn\/s\/blog_49f914ab0100htql.html\" target=\"_blank\">\u54f2\u4e5f\u65b0\u6d6a\u535a\u5ba2<\/a>\u00a0\u4e0a\u7684\u4e00\u4e9b\u4e1c\u4e1c&#8230;<\/p>\n<p>3) \u4fee\u590d Ubuntu\u7cfb\u7edf\u5f15\u5bfc<\/p>\n<p>\u5982\u679c\u5b89\u88c5windows\u7684\u65f6\u5019\u65f6\u628aUbuntu\u7684\u5f15\u5bfc\u7ed9\u6bc1\u4e86(\u88c5windows\u65f6,\u5b83\u4e0d\u4f1a\u5173\u5fc3\u4f60\u7684mbr\u4e0a\u8fd8\u6709\u5176\u5b83\u7684\u7cfb\u7edf\u6216\u5f15,\u76f4\u63a5\u7ed9\u4f60\u91cd\u5199\u4e86\u5b83\u7684\u5f15\u5bfc).\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7Ubuntu\u5149\u76d8(\u6216U\u76d8)\u4e0a\u7684Ubuntu Live\u6765\u4fee\u590d\u8fd9\u4e2a\u95ee\u9898(\u8fd9\u91cc\u5148\u8c08Ubuntu9.10\u4ee5\u540e\u7684\u7248\u672c,\u56e0\u4e3a\u8fd9\u4e2a\u7248\u672c\u540e,Ubuntu\u7684Grub\u5f15\u5bfc\u6539\u8fc7\u4e86,\u622a\u56fe\u7248\u672c\u4e3aUbuntu11.04)<\/p>\n<p>\u653e\u5165Ubuntu\u5149\u76d8,\u9009\u62e9\u8bd5\u7528Ubuntu\u800c\u4e0d\u5b89\u88c5,\u8fdb\u5165Ubuntu Live<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/71d71bcf7ec28054b600c8d9.jpg\" alt=\"\" \/><\/p>\n<p>\u8fdb\u5165Ubuntu Live\u540e,\u6253\u5f00\u7ec8\u7aef,\u6211\u4eec\u9700\u8981root\u6743\u9650.<br \/>\n\u8f93\u5165 sudo -i.<br \/>\n\u4e4b\u540e\u67e5\u770bUbuntu\u6240\u5b89\u88c5\u5230\u7684\u5730\u65b9:<br \/>\n\u8f93\u5165 fdisk -l \u00a0 (\u8fd9\u662f\u5c0f\u5199\u7684&#8221;L&#8221;\u54e6)<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/8eeedb38fc116f9e3a87ced9.jpg\" alt=\"\" \/><\/p>\n<p>\u6211\u8fd9\u7535\u8111\u4e0a\u5b89\u88c5\u5728sda2\u5206\u533a\u4e0a.\u6302\u8f7dsda2\u5230\/mnt\u4e0a\u5c31\u53ef\u4ee5\u4e86.<br \/>\n\u8f93\u5165mount \/dev\/sda2 \/mnt \u00a0 (\u6ce8\u610f\/mnt\u524d\u9762\u6709\u4e00\u4e2a\u7a7a\u683c)<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/fe1e07f6bc5acd4f720eecd0.jpg\" alt=\"\" \/><\/p>\n<p>\u8981\u5728\u8fd8\u8981\u63d0\u4e00\u4e0b,\u5982\u679c\u4f60\u7684\/boot\u662f\u5355\u72ec\u5728\u4e00\u4e2a\u5206\u533a,\u8fd8\u9700\u8981\u88c5\u90a3\u4e2a\u5206\u533a\u6302\u5230\/mnt\/boot\u4e0a,\u4f8b\u5982,\/boot\u5728sda5\u5206\u533a\u4e0a.<br \/>\n\u8f93\u5165 mount \/dev\/sda5 \/mnt\/boot<br \/>\n\u4e3a\u4e86\u786e\u4fdd\/boot\u662f\u5426\u6302\u4e0a,\u53ef\u4ee5\u4f7f\u7528\u00a0ls \/boot\u00a0\u6765\u67e5\u5bfb.<\/p>\n<p>\u597d\u4e86,\u51c6\u5907\u5de5\u505a\u90fd\u5b8c\u6210\u4e86,\u63a5\u4e0b\u6765\u5c31\u662f\u5b89\u88c5grub,\u4e5f\u5c31\u4e00\u547d\u4ee4.<br \/>\n\u8f93\u5165\u00a0grub-install &#8211;root-directory=\/mnt \/dev\/sda (\u6ce8\u610f\u4e00\u70b9\u662f\/mnt\u524d\u9762\u6ca1\u6709\u7a7a\u683c,\u800c \/dev\u524d\u9762\u6709\u4e00\u4e2a\u7a7a\u683c)<br \/>\n\u5f53\u4f60\u770b\u5230&#8221;Installation finished. No error reported.&#8221;\u65f6\u8bf4\u660e\u5df2\u7ecf\u5b89\u88c5\u6210\u529f\u4e86<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/6d04b80171e26feae950cdd9.jpg\" alt=\"\" \/><\/p>\n<p>\u8fd9\u65f6\u53ea\u8981\u91cd\u8d77\u4e00\u4e0b,\u5c31\u53ef\u4ee5\u770b\u5230\u719f\u6089\u7684Ubuntu\u7684Grub\u5f15\u5bfc\u9875\u9762\u4e86.<\/p>\n<p><img decoding=\"async\" src=\".\/wp-content\/uploads\/hibaidu\/b1ca9e53b52a27630cf3e3d0.jpg\" alt=\"\" \/><\/p>\n<p>RP\u8fd8\u597d,\u6062\u590d\u4e4b\u540eWindows\u7684\u7cfb\u7edf\u8d77\u52a8\u8fd8\u5728,\u5982\u679c\u6ca1\u6709\u5176\u5b83\u7684\u7cfb\u7edf\u8d77\u5230\u4e86.\u6211\u4eec\u53ef\u4ee5\u8fdbUbuntu\u7cfb\u7edf\u4fee\u6539Grub\u5f15\u5bfc\u5c31\u53ef\u4ee5\u4e86.\u5173\u4e8egrub.cfg\u7684\u4fee\u6539,\u8bf7\u770b\u4e0b\u56de\u5206\u6790.\u6216\u81ea\u5df1\u53bb\u7f51\u4e0agoogle\u4e00\u4e0b\u5427&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1) \u4fee\u590d XP \u7cfb\u7edf\u5f15\u5bfc \u5982\u679c\u662f\u5b89\u88c5Ubuntu\u65f6\u6539\u5199\u4e86mbr\u5bfc\u81f4\u65e0\u6cd5\u542f\u52a8,\u53ef\u4ee5\u4f7f\u7528XP\u7684\u5b89\u88c5\u76d8(\u5b89\u88c5\u7248\u7684\u54e6 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1678","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=1678"}],"version-history":[{"count":2,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1678\/revisions"}],"predecessor-version":[{"id":5038,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1678\/revisions\/5038"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=1678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=1678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=1678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}