{"id":167,"date":"2012-11-27T14:47:11","date_gmt":"2012-11-27T06:47:11","guid":{"rendered":"http:\/\/www.freezhongzi.info\/?p=167"},"modified":"2012-11-27T14:47:11","modified_gmt":"2012-11-27T06:47:11","slug":"ubuntu%e8%a3%85win7%e5%8f%8c%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/bl4kraven.com\/index.php\/2012\/11\/27\/ubuntu%e8%a3%85win7%e5%8f%8c%e7%b3%bb%e7%bb%9f\/","title":{"rendered":"Ubuntu\u88c5Win7\u53cc\u7cfb\u7edf"},"content":{"rendered":"<p>\u6700\u8fd1\u670b\u53cb\u8001\u662f\u63a8\u8350\u6211\u88c5Win7\uff0c\u7981\u4e0d\u4f4f\u529d\u544a\u5c31\u88c5\u4e86\u4e00\u4e0b\u8bd5\u8bd5\u3002\u4e00\u822c\u6765\u8bf4\u8981\u5148\u88c5Windows\u518d\u88c5Linux\uff0c\u8fd9\u4e2a\u5730\u7403\u4eba\u90fd\u77e5\u9053\u3002\u56e0\u4e3awindows\u56de\u8986\u76d6MBR\u7684\u5f15\u5bfc\u8bb0\u5f55\uff0c\u5982\u679c\u9884\u5148\u88c5\u4e86Linux\u90a3\u4f60\u5c31\u5012\u9709\u4e86\uff08\u73b0\u5728\u6709\u4e86grub4dos\u60c5\u51b5\u597d\u4e00\u70b9\u4e86\uff09\u3002\u53cd\u89c2Linux\uff0c\u56e0\u4e3a\u6709\u795e\u5668grub\u4ec0\u4e48\u90fd\u80fd\u5f15\u5bfc\uff0c\u90a3\u5c31\u4e0d\u7528\u6015\u8986\u76d6\u4e86:)\u3002<\/p>\n<p>\u6211\u5df2\u7ecf\u88c5\u4e86Ubuntu\uff0c\u4e3a\u4e86\u4f53\u9a8cWin7\u5c31\u4e0d\u80fd\u7528\u666e\u901a\u65b9\u6cd5\u5b89\u88c5\u4e86\u3002<\/p>\n<h2>\u5206\u533a<\/h2>\n<p>\u9996\u5148\u7b2c\u4e00\u6b65\u5c31\u662f\u5212\u5206\u4e00\u4e2a\u4e3b\u5206\u533a\u7ed9Win7\uff08windows\u4e00\u5b9a\u8981\u88c5\u5728\u4e3b\u5206\u533a\u4e0a\uff0c\u800c\u4e0d\u662f\u903b\u8f91\u5206\u533a\uff09\u3002\u6211\u7528Ubuntu Live CD\u542f\u52a8\uff0c\u7528\u4e86gparted\u65e0\u635f\u5206\u533a\u8f6f\u4ef6\u641e\u5b9a\uff08\u7279\u522b\u9002\u5408\u5206\u5272\u8c03\u6574\u5206\u533a\uff0c\u800c\u4e14\u4e0d\u7528\u62c5\u5fc3\u6570\u636e\u4e22\u5931\uff0c\u7406\u8bba\u4e0a\u662f\u7684\uff09\u3002\u6700\u540e\u7684\u5206\u533a\u5982\u4e0b\uff0c\/dev\/sda4\u662f\u7ed9Win7\u7684\uff0c\u5206\u4e8640G\u7684\u7a7a\u95f4\uff08Win7\u5f88\u8017\u7a7a\u95f4\uff09\u3002\u5176\u4ed6\u8981\u6ce8\u610f\u7684\u662f\u8981\u53bb\u6389\/dev\/sda1\u7684Boot\u6807\u8bb0\uff08Linux\u7528\u4e0d\u5230\uff0c\u4e3b\u8981\u662f\u7559\u7ed9Windows\u7528\u7684\uff09\uff0c\u53ea\u6709\u4e00\u4e2a\u4e3b\u5206\u533a\u9700\u8981Boot\u800c\u4e14\u662f\/dev\/sda4\u3002<\/p>\n<pre><code>Device     Boot     Start      End       Blocks     Id  System\n\/dev\/sda1            2048    20000767     9999360   83  Linux\n\/dev\/sda2        20000768    20391935      195584   82  Linux swap \/ Solaris\n\/dev\/sda3        20393982   894525439   437065729    5  Extended\n\/dev\/sda4   *   894525440   976771071    41122816    7  HPFS\/NTFS\/exFAT\n\/dev\/sda5        20393984   894523391   437064704   83  Linux\n<\/code><\/pre>\n<h2>\u5907\u4efdMBR<\/h2>\n<p>\u4e0b\u4e00\u6b65\u662f\u5907\u4efdMBR\uff0c\u56e0\u4e3aWin7\u4f1a\u4fee\u6539MBR\uff0c\u5982\u679c\u8981\u627e\u56de\u4e4b\u524d\u7684Ubuntu\u53ea\u80fd\u6062\u590dMBR\uff1a<\/p>\n<pre><code>sudo dd if=\/dev\/sda of=.\/mbr.txt bs=512 count=1\n<\/code><\/pre>\n<p>\u8fd9\u91cc\u626f\u4e00\u4e0bMBR\uff0c\u7528hexdump\u770b\u770bmbr.txt<\/p>\n<pre><code>hexdump mbr.txt\n<\/code><\/pre>\n<p>\u57fa\u672c\u4e0aLinux\u548cWin7\u7684\u5206\u533a\u8868\u8bc6\u522b\u662f\u76f8\u540c\u7684\uff084\u4e2a\u5206\u533a\uff0c\u6bcf\u4e2a\u5206\u533a\u6709\u5206\u533a\u7c7b\u578b\uff1a\u4f8b\u59825\u8868\u793a\u6269\u5c55\u5206\u533a\uff0c\u5176\u4ed6\u7684\u662f\u4ec0\u4e48\u6587\u4ef6\u7cfb\u7edf\uff09\uff0c\u4e0d\u540c\u5728\u4e8e\u5206\u533a\u8868\u524d\u7684446\u4e2a\u5b57\u8282\u3002\u6240\u4ee5\u6062\u590d\u662f\u53ea\u8981\u6062\u590dMBR\u7684446\u4e2a\u5b57\u8282\u3002<\/p>\n<h2>\u88c5Win7<\/h2>\n<p>\u8fd9\u4e2a\u4e0d\u7528\u591a\u8bf4\uff0c\u5730\u7403\u4eba\u90fd\u4f1a\u3002<\/p>\n<h2>\u6062\u590dMBR<\/h2>\n<p>\u88c5\u5b8c\u4e86Win7\u5f53\u7136\u8fdb\u4e0d\u53bbUbuntu\u4e86\uff0c\u6240\u4ee5\u7528Live CD\u542f\u52a8\u8fdb\u53bb\u6062\u590dMBR\u4e86\u3002<\/p>\n<pre><code>sudo dd if=.\/mbr.txt of=\/dev\/sda bs=446 count=1\n<\/code><\/pre>\n<h2>\u66f4\u65b0Grub\u914d\u7f6e<\/h2>\n<p>\u6062\u590dMBR\u540e\u8fdb\u5165Ubuntu\u66f4\u65b0Grub\u914d\u7f6e\uff0cGrub\u4f1a\u626b\u63cf\u5206\u533a\u4ece\u800c\u8bc6\u522bWin7\u3002<\/p>\n<pre><code>$ sudo update-grub\nGenerating grub.cfg ...\nFound linux image: \/boot\/vmlinuz-3.2.0-34-generic-pae\nFound initrd image: \/boot\/initrd.img-3.2.0-34-generic-pae\nFound linux image: \/boot\/vmlinuz-3.2.0-33-generic-pae\nFound initrd image: \/boot\/initrd.img-3.2.0-33-generic-pae\nFound linux image: \/boot\/vmlinuz-3.2.0-32-generic-pae\nFound initrd image: \/boot\/initrd.img-3.2.0-32-generic-pae\nFound memtest86+ image: \/boot\/memtest86+.bin\nFound Windows 7 (loader) on \/dev\/sda4\ndone\n<\/code><\/pre>\n<p>OK\uff0c\u5927\u529f\u544a\u6210\u3002\u91cd\u542f\u7535\u8111\uff0c\u6309\u4f4fShift\u952e\u8fdb\u5165Grub\u9009\u62e9Win7\u5c31\u5c31\u53bb\u4e86\u3002\u8fdb\u4e86Win7\u624d\u53d1\u73b0\u6ca1\u6709\u7f51\u5361\u9a71\u52a8\u3001\u65e0\u7ebf\u9a71\u52a8\uff0c\u504f\u504f\u6211\u7684Dell\u7b14\u8bb0\u672c\u662f\u4e2a\u88f8\u673a\uff0c\u8fde\u5b98\u7f51\u90fd\u627e\u4e0d\u5230Win7\u9a71\u52a8-_-!!!\uff0c\u770b\u6765\u8fd8\u662fLinux\u597d\u554a\u3002<\/p>\n<p>BTW\uff1a\u4eca\u5929\u53d1\u73b0Win7\u7684\u8bbe\u5907\u7ba1\u7406\u5668\u91cc\u53ef\u4ee5\u5728\u7ebf\u641c\u7d22\u9a71\u52a8\uff0c\u8fd9\u4e2a\u6bd4\u8f83\u521b\u65b0\u554a:)\u3002A\u5361\u9a71\u52a8\u4ecd\u65e7\u6ca1\u7740\u843d\uff0c\u65e0\u6cd5\u5b89\u88c5\uff0c\u6682\u65f6\u7528\u4e86Intel\u7684\u96c6\u6210\u663e\u5361\u9a71\u52a8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u670b\u53cb\u8001\u662f\u63a8\u8350\u6211\u88c5Win7\uff0c\u7981\u4e0d\u4f4f\u529d\u544a\u5c31\u88c5\u4e86\u4e00\u4e0b\u8bd5\u8bd5\u3002\u4e00\u822c\u6765\u8bf4\u8981\u5148\u88c5Windo &hellip; <a href=\"https:\/\/bl4kraven.com\/index.php\/2012\/11\/27\/ubuntu%e8%a3%85win7%e5%8f%8c%e7%b3%bb%e7%bb%9f\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a> <a href=\"https:\/\/bl4kraven.com\/index.php\/2012\/11\/27\/ubuntu%e8%a3%85win7%e5%8f%8c%e7%b3%bb%e7%bb%9f\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-167","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/bl4kraven.com\/index.php\/wp-json\/wp\/v2\/posts\/167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bl4kraven.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bl4kraven.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bl4kraven.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bl4kraven.com\/index.php\/wp-json\/wp\/v2\/comments?post=167"}],"version-history":[{"count":0,"href":"https:\/\/bl4kraven.com\/index.php\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"wp:attachment":[{"href":"https:\/\/bl4kraven.com\/index.php\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bl4kraven.com\/index.php\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bl4kraven.com\/index.php\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}