{"id":7837,"date":"2022-10-12T09:13:00","date_gmt":"2022-10-12T01:13:00","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=7837"},"modified":"2024-05-05T14:18:43","modified_gmt":"2024-05-05T06:18:43","slug":"%e4%bf%ae%e6%94%b9-grub-%e5%bc%95%e5%af%bc%e9%bb%98%e8%ae%a4%e5%90%af%e5%8a%a8%e9%a1%b9","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=7837","title":{"rendered":"\u4fee\u6539 GRUB \u5f15\u5bfc\u9ed8\u8ba4\u542f\u52a8\u9879"},"content":{"rendered":"<p>\u6211\u7535\u8111\u4e0a\u662f\u5148\u5b89\u88c5\u7684 Windows\uff0c\u7136\u540e\u53c8\u5b89\u88c5\u7684 Ubuntu\uff0c\u542f\u52a8\u7684\u65f6\u5019\u5f15\u5bfc\u662f Linux \u7684 GRUB\uff0c\u9ed8\u8ba4\u5012\u8ba1\u65f6\u5b8c\u4ee5\u540e\u542f\u52a8 Ubuntu\u3002<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/10\/image-1665536800688.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 1312px; --smush-placeholder-aspect-ratio: 1312\/274;\" \/><\/p>\n<p>\u4f46\u662f\u6211\u5e73\u65f6\u8fd8\u662f\u4f7f\u7528 Windows\uff0c\u53ea\u6709\u505a\u5f00\u53d1\u76f8\u5173\u7684\u65f6\u5019\u624d\u8fdb Ubuntu\uff0c\u6709\u65f6\u5019\u5f00\u673a\u540e\u6ca1\u6709\u53ca\u65f6\u9009 Windows\uff0c\u5c31\u542f\u52a8\u5230 Ubuntu \u91cc\u4e86\uff0c\u53c8\u8981\u91cd\u542f\u518d\u9009 Windows\uff0c\u4e0d\u662f\u5f88\u65b9\u4fbf\uff0c\u6240\u4ee5\u9700\u8981\u628a Windows \u8bbe\u7f6e\u6210\u9ed8\u8ba4\u3002<br \/>\n\u8fd9\u91cc\u8981\u5148\u8bb0\u4f4f Windows \u542f\u52a8\u9879\u7684\u5e8f\u53f7\uff0c\u6309 0\u30011\u30012&#8230;..\u8fd9\u6837\u6392\uff0c\u6211\u8fd9\u91cc Windows \u542f\u52a8\u9879\u5c31\u662f 2 \u4e86\u3002<\/p>\n<p>\u73b0\u5728\u5f00\u59cb\u4fee\u6539\u8bbe\u7f6e\uff0c\u542f\u52a8\u9879\u9009 Ubuntu \u9ad8\u7ea7\u9009\u9879\uff0c\u9009 recovery mode \u8fdb\u53bb<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/10\/image-1665537016011.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 913px; --smush-placeholder-aspect-ratio: 913\/189;\" \/><\/p>\n<p>\u7136\u540e\u9009 root \u8fdb\u7ec8\u7aef\u9875\u9762<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/10\/image-1665537057642.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 932px; --smush-placeholder-aspect-ratio: 932\/517;\" \/><br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/10\/image-1665537150162.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 826px; --smush-placeholder-aspect-ratio: 826\/239;\" \/><\/p>\n<p>\u8fd9\u91cc\u9700\u8981\u4fee\u6539 \/boot\/grub\/grub.cfg \u6587\u4ef6\uff0c\u9ed8\u8ba4\u662f\u6ca1\u6709\u7f16\u8f91\u6743\u9650\u7684\uff0c\u9700\u8981\u5148\u6dfb\u52a0\u7f16\u8f91\u6743\u9650\u3002<\/p>\n<pre><code class=\"language-bash\">chmod a+w \/boot\/grub\/grub.cfg<\/code><\/pre>\n<p>\u7136\u540e\u518d\u7f16\u8f91\u8fd9\u4e2a\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528 nano \u6216\u8005 vi \u7f16\u8f91\u5668\uff0c\u627e\u5230 <strong>set default<\/strong>\uff0c\u6539\u6210\u524d\u9762\u786e\u5b9a\u7684\u9700\u8981\u9ed8\u8ba4\u542f\u52a8\u7684\u9009\u9879\u7684\u5e8f\u53f7<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/10\/image-1665537347242.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 448px; --smush-placeholder-aspect-ratio: 448\/154;\" \/><\/p>\n<p>\u4fdd\u5b58\u4fee\u6539\uff0c\u7136\u540e\u5c06\u6587\u4ef6\u6743\u9650\u8fd8\u539f\uff0c\u53bb\u6389\u5199\u6743\u9650<\/p>\n<pre><code class=\"language-bash\">chmod a-w \/boot\/grub\/grub.cfg<\/code><\/pre>\n<p>\u5728\u7ec8\u7aef\u6267\u884c\u547d\u4ee4\u91cd\u542f<\/p>\n<pre><code class=\"language-bash\">reboot<\/code><\/pre>\n<p>\u5f00\u673a\u65f6\u518d\u6b21\u8fdb\u5165\u5f15\u5bfc\u83dc\u5355\uff0c\u6b64\u65f6\u9ed8\u8ba4\u9009\u62e9\u7684\u5c31\u662f Windows<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2022\/10\/image-1665537516243.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 694px; --smush-placeholder-aspect-ratio: 694\/234;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u7535\u8111\u4e0a\u662f\u5148\u5b89\u88c5\u7684 Windows\uff0c\u7136\u540e\u53c8\u5b89\u88c5\u7684 Ubuntu\uff0c\u542f\u52a8\u7684\u65f6\u5019\u5f15\u5bfc\u662f Linux \u7684 GRUB\uff0c\u9ed8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[1],"tags":[],"class_list":["post-7837","post","type-post","status-publish","format-standard","hentry","category-all"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/7837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7837"}],"version-history":[{"count":0,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/7837\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}