{"id":134,"date":"2026-08-21T16:16:00","date_gmt":"2026-08-21T08:16:00","guid":{"rendered":"https:\/\/pc.wuhanioe.com\/index.php\/2026\/08\/21\/grub-%e5%bc%95%e5%af%bc%e6%8d%9f%e5%9d%8f%e5%af%bc%e8%87%b4-linux-%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8%ef%bc%9f%e8%bf%99%e6%a0%b7%e4%bf%ae%e5%a4%8d\/"},"modified":"2026-08-21T16:16:00","modified_gmt":"2026-08-21T08:16:00","slug":"grub-%e5%bc%95%e5%af%bc%e6%8d%9f%e5%9d%8f%e5%af%bc%e8%87%b4-linux-%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8%ef%bc%9f%e8%bf%99%e6%a0%b7%e4%bf%ae%e5%a4%8d","status":"publish","type":"post","link":"https:\/\/pc.wuhanioe.com\/index.php\/2026\/08\/21\/grub-%e5%bc%95%e5%af%bc%e6%8d%9f%e5%9d%8f%e5%af%bc%e8%87%b4-linux-%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8%ef%bc%9f%e8%bf%99%e6%a0%b7%e4%bf%ae%e5%a4%8d\/","title":{"rendered":"GRUB \u5f15\u5bfc\u635f\u574f\u5bfc\u81f4 Linux \u65e0\u6cd5\u542f\u52a8\uff1f\u8fd9\u6837\u4fee\u590d"},"content":{"rendered":"<p>\u53cc\u7cfb\u7edf\u91cd\u88c5 Windows\u3001\u610f\u5916\u65ad\u7535\u6216\u78c1\u76d8\u5206\u533a\u8c03\u6574\u4e4b\u540e\uff0c\u6700\u5e38\u9047\u5230\u7684\u753b\u9762\u5c31\u662f\u5f00\u673a\u76f4\u63a5\u8fdb BIOS\uff0c\u6216\u505c\u5728 <code>grub rescue&gt;<\/code> \u63d0\u793a\u7b26\u3002\u8fd9\u8bf4\u660e GRUB \u5f15\u5bfc\u8bb0\u5f55\u635f\u574f\u6216\u6307\u5411\u4e86\u9519\u8bef\u7684\u5206\u533a\u3002\u53ea\u8981 Linux \u5206\u533a\u672c\u8eab\u6ca1\u574f\uff0c\u7528\u4e00\u5f20 Live USB \u5c31\u80fd\u6551\u56de\u6765\u3002<\/p>\n<h2>\u4e00\u3001\u5224\u65ad\u6545\u969c\u7c7b\u578b<\/h2>\n<ol>\n<li>\u82e5\u5c4f\u5e55\u663e\u793a <code>grub&gt;<\/code> \u6216 <code>grub rescue&gt;<\/code>\uff0c\u8bf4\u660e\u5f15\u5bfc\u7a0b\u5e8f\u8fd8\u5728\u4f46\u914d\u7f6e\u4e22\u5931\u3002<\/li>\n<li>\u82e5\u76f4\u63a5\u8fdb BIOS\/UEFI\uff0c\u8bf4\u660e MBR \u6216 EFI \u5206\u533a\u91cc\u7684\u5f15\u5bfc\u9879\u88ab\u8986\u76d6\u3002<\/li>\n<li>\u5148\u786e\u8ba4\u80fd\u5426\u4ece BIOS \u542f\u52a8\u83dc\u5355\u770b\u5230 Linux \u6761\u76ee\uff0c\u80fd\u5219\u95ee\u9898\u8f83\u8f7b\u3002<\/li>\n<\/ol>\n<h2>\u4e8c\u3001\u7528 Live USB \u8fdb\u5165\u6551\u63f4\u73af\u5883<\/h2>\n<ol>\n<li>\u7528\u53e6\u4e00\u53f0\u7535\u8111\u5236\u4f5c Ubuntu \u7b49\u53d1\u884c\u7248\u7684<strong>\u542f\u52a8\u76d8<\/strong>\uff0c\u4ece\u8be5\u76d8\u542f\u52a8\u5e76\u9009\u62e9\u300e\u8bd5\u7528\u300f\u3002<\/li>\n<li>\u6253\u5f00\u7ec8\u7aef\uff0c\u6267\u884c <code>lsblk<\/code> \u786e\u8ba4\u6839\u5206\u533a\uff08\u5982 <code>\/dev\/sda2<\/code>\uff09\u4e0e EFI \u5206\u533a\uff08\u5982 <code>\/dev\/sda1<\/code>\uff09\u3002<\/li>\n<\/ol>\n<h2>\u4e09\u3001\u6302\u8f7d\u5e76 chroot \u8fdb\u5165\u539f\u7cfb\u7edf<\/h2>\n<ol>\n<li>\u6302\u8f7d\u6839\u5206\u533a\uff1a<code>sudo mount \/dev\/sda2 \/mnt<\/code>\u3002<\/li>\n<li>\u6302\u8f7d EFI\uff1a<code>sudo mount \/dev\/sda1 \/mnt\/boot\/efi<\/code>\u3002<\/li>\n<li>\u7ed1\u5b9a\u7cfb\u7edf\u76ee\u5f55\uff1a<code>sudo mount --bind \/dev \/mnt\/dev<\/code> \u7b49\uff0c\u518d <code>sudo chroot \/mnt<\/code>\u3002<\/li>\n<\/ol>\n<h2>\u56db\u3001\u91cd\u88c5 GRUB \u5230\u78c1\u76d8<\/h2>\n<ol>\n<li>\u5728 chroot \u5185\u6267\u884c <code>grub-install \/dev\/sda<\/code>\uff08\u6ce8\u610f\u662f\u6574\u5757\u78c1\u76d8\uff0c\u4e0d\u662f\u5206\u533a\uff09\u3002<\/li>\n<li>\u91cd\u65b0\u751f\u6210\u914d\u7f6e\uff1a<code>grub-mkconfig -o \/boot\/grub\/grub.cfg<\/code>\u3002<\/li>\n<li>\u9000\u51fa chroot\uff0c\u91cd\u542f\u5373\u53ef\u3002<\/li>\n<\/ol>\n<h2>\u4e94\u3001UEFI \u4e0e BIOS \u7684\u533a\u522b<\/h2>\n<p><strong>UEFI \u673a\u5668<\/strong>\u5fc5\u987b\u628a GRUB \u88c5\u5230 EFI \u7cfb\u7edf\u5206\u533a\uff0c\u5e76\u786e\u8ba4 <code>\/boot\/efi<\/code> \u5df2\u6302\u8f7d\uff1b<strong>\u65e7 BIOS \u673a\u5668<\/strong>\u5219\u5199\u5165 MBR\u3002\u82e5\u4e3b\u677f\u5f00\u542f\u4e86 Secure Boot\uff0c\u90e8\u5206\u53d1\u884c\u7248\u9700\u5148\u5173\u95ed\u6216 enrollment \u5bc6\u94a5\u3002<\/p>\n<p><strong>\u6280\u672f\u603b\u7ed3\uff1a<\/strong>GRUB \u4fee\u590d\u7684\u6838\u5fc3\u662f\u628a\u5f15\u5bfc\u7a0b\u5e8f\u91cd\u65b0\u5199\u56de\u6b63\u786e\u7684\u78c1\u76d8\u6216 EFI \u5206\u533a\uff0c\u5e76\u91cd\u5efa\u914d\u7f6e\u6587\u4ef6\u3002\u638c\u63e1 chroot \u6551\u63f4\u6d41\u7a0b\u540e\uff0c\u7edd\u5927\u591a\u6570\u5f15\u5bfc\u6545\u969c\u90fd\u80fd\u5728\u5341\u5206\u949f\u5185\u89e3\u51b3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u501f\u52a9 Live USB \u8fdb\u5165\u6551\u63f4\u73af\u5883\uff0cchroot \u540e\u91cd\u88c5 GRUB \u4fee\u590d\u5f15\u5bfc\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-134","post","type-post","status-publish","format-standard","hentry","category-3"],"_links":{"self":[{"href":"https:\/\/pc.wuhanioe.com\/index.php\/wp-json\/wp\/v2\/posts\/134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pc.wuhanioe.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pc.wuhanioe.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pc.wuhanioe.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pc.wuhanioe.com\/index.php\/wp-json\/wp\/v2\/comments?post=134"}],"version-history":[{"count":0,"href":"https:\/\/pc.wuhanioe.com\/index.php\/wp-json\/wp\/v2\/posts\/134\/revisions"}],"wp:attachment":[{"href":"https:\/\/pc.wuhanioe.com\/index.php\/wp-json\/wp\/v2\/media?parent=134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pc.wuhanioe.com\/index.php\/wp-json\/wp\/v2\/categories?post=134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pc.wuhanioe.com\/index.php\/wp-json\/wp\/v2\/tags?post=134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}