{"id":316,"date":"2016-09-05T13:15:10","date_gmt":"2016-09-05T05:15:10","guid":{"rendered":"https:\/\/yyshell.com\/?p=316"},"modified":"2018-02-24T22:14:09","modified_gmt":"2018-02-24T14:14:09","slug":"%e5%ae%89%e8%a3%85windows-7%e5%92%8ccentos-7%e5%8f%8c%e7%b3%bb%e7%bb%9f%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/yyshell.com\/?p=316","title":{"rendered":"\u4f20\u7edfBIOS\u548cUEFI\u4e0b\u5b89\u88c5Windows\u548cCentOS 7\u53cc\u7cfb\u7edf\u6559\u7a0b"},"content":{"rendered":"<h3>\u5bf9\u4e8embr\u5f15\u5bfc\u542f\u52a8\u7684\u53cc\u7cfb\u7edf<\/h3>\n<p>\u7f51\u4e0a\u6709\u5b89\u88c5windows\u3001linux\u7684\u76f8\u5173\u6559\u7a0b\uff0c\u4f46\u5927\u90e8\u5206\u90fd\u4f1a\u7528\u5230easybcd\u8fd9\u4e2a\u8f6f\u4ef6\uff0c\u8fd8\u6709\u5c31\u662f\u8981\u914d\u5408winpe\u73af\u5883\u4e0b\u4f7f\u7528\u3002\u6211\u4eec\u8fd9\u91cc\u4e0d\u9700\u8981\u4f7f\u7528\u989d\u5916\u7684\u5de5\u5177\uff0c\u76f4\u63a5\u53ef\u4ee5\u641e\u5b9a\u3002<\/p>\n<p>\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u5148\u5b89\u88c5Windows 7\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6ce8\u610f\uff0c\u8981\u7a7a\u51fa\u4e00\u5b9a\u7684\u672a\u4f7f\u7528\u7a7a\u95f4\u7ed9Linux\u4f7f\u7528\uff01<\/li>\n<li>\u5728\u5269\u4f59\u7684\u5206\u533a\u4e2d\uff0c\u5b89\u88c5CentOS7\u64cd\u4f5c\u7cfb\u7edf\u3002<\/li>\n<\/ol>\n<p>\u63a5\u4e0b\u6765\uff0c\u542f\u52a8\u8fdb\u5165centos7\u7cfb\u7edf\uff0c\u7f16\u8f91\/etc\/grub.d\/40_custom\u8fd9\u4e2a\u6587\u4ef6<\/p>\n<p>vi \/etc\/grub.d\/40_custom<\/p>\n<p>\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\u5230\u5176\u4e2d<\/p>\n<pre class=\"lang:sh decode:true \">menuentry \"Windows 7\" {\r\n    set root='(hd0,1)'\r\n    chainloader +1\r\n}<\/pre>\n<p>\u8fd9\u4e2aWindows 7\u83dc\u5355\u76ee\u7684\u662f\u544a\u8bc9grub\u7a0b\u5e8f\uff0c\u5728\u7b2c\u4e00\u4e2a\u786c\u76d8\uff08hd0\uff09\u7684\u7b2c\u4e00\u4e2a\u5206\u533a\uff08hd0,1\uff09\u68c0\u67e5\u542f\u52a8\u5f15\u5bfc\u9879\u3002<\/p>\n<p>\u6700\u540e\u5c31\u662f\u66f4\u65b0grub\uff1a<\/p>\n<p>grub2-mkconfig -o \/boot\/grub2\/grub.cfg<\/p>\n<p>\u91cd\u542f\uff1a<\/p>\n<p>init 6<\/p>\n<p>\u6b64\u65f6\u5c31\u53ef\u4ee5\u770b\u5230\u542f\u52a8\u5f15\u5bfc\u9879\u4e86\uff1a<br \/>\n<a href=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/09\/dualboot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-317 size-full\" src=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/09\/dualboot.png\" alt=\"dualboot\" width=\"720\" height=\"400\" \/><\/a>\u6839\u636e\u9700\u8981\uff0c\u4e0a\u4e0b\u79fb\u52a8\u5149\u6807\uff0c\u9009\u62e9\u4f60\u9700\u8981\u542f\u52a8\u7684\u7cfb\u7edf\u3002<\/p>\n<h3>UEFI\u53cc\u7cfb\u7edf\u7684\u8bf4\u660e<\/h3>\n<p>UEFI\u5b89\u88c5Windows 10\uff0864\u4f4d\uff09\u548ccentos 7\u53cc\u7cfb\u7edf\u4e3a\u4f8b\uff0c\u7531\u4e8e\u5927\u90e8\u5206linux\u7cfb\u7edf\u4e0d\u652f\u6301UEFI\u7684secure boot\uff08\u8c8c\u4f3cRHEL7\u548c\u6700\u65b0\u7248\u7684CentOS7\u53ef\u4ee5\u5b89\u5168\u542f\u52a8\uff09\uff0c\u6240\u4ee5\uff0c\u5b89\u88c5\u8fd9\u79cd\u53cc\u7cfb\u7edf\u9700\u8981\u8fdb\u5165UEFI\uff0c\u5148\u628asecure boot\u7ed9\u5173\u95ed\u6389\u3002<\/p>\n<p>\u53e6\u5916\uff0cUEFI\u4e0b\uff0c\u78c1\u76d8\u9ed8\u8ba4\u4f7f\u7528GPT\u5206\u533a\uff0c\u8fd9\u70b9\u5927\u5bb6\u9700\u8981\u6ce8\u610f\u4e0b\uff1b\u6211\u4e5f\u63a8\u8350\u5148\u5b89\u88c5Windows 10\uff0c\u7a7a\u51fa\u4e00\u5b9a\u7684\u78c1\u76d8\u7a7a\u95f4\uff0c\u5728\u5b89\u88c5CentOS7\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u4e0d\u8981\u66f4\u6539\u5df2\u6709\u7684windows\u5206\u533a\u3002<\/p>\n<p>\u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u542f\u52a8\u9879\u4f1a\u770b\u5230\u591a\u51fa\u6765\u201cWindows Boot Manager\u201d<br \/>\n<a href=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/09\/uefiboot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-320 size-full\" src=\"https:\/\/yyshell.com\/wp-content\/uploads\/2016\/09\/uefiboot.png\" alt=\"uefiboot\" width=\"863\" height=\"669\" \/><\/a>\u60f3\u4eceWindows 10\u542f\u52a8\uff0c\u76f4\u63a5\u9009\u62e9Windows Boot Manager\u5373\u53ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5bf9\u4e8embr\u5f15\u5bfc\u542f\u52a8\u7684\u53cc\u7cfb\u7edf \u7f51\u4e0a\u6709\u5b89\u88c5windows\u3001linux\u7684\u76f8\u5173\u6559\u7a0b\uff0c\u4f46\u5927<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[32,17,31,21],"class_list":["post-316","post","type-post","status-publish","format-standard","hentry","category-linux","category-windows","tag-bios","tag-linux","tag-uefi","tag-windows"],"_links":{"self":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316"}],"version-history":[{"count":4,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/316\/revisions"}],"predecessor-version":[{"id":466,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/316\/revisions\/466"}],"wp:attachment":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}