{"id":6986,"date":"2020-04-26T19:12:17","date_gmt":"2020-04-26T11:12:17","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6986"},"modified":"2022-05-22T13:00:49","modified_gmt":"2022-05-22T05:00:49","slug":"grub-install","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/grub-install","title":{"rendered":"grub-install\u547d\u4ee4 – \u5728\u8bbe\u5907\u4e0a\u5b89\u88c5GRUB\u670d\u52a1"},"content":{"rendered":"\n
grub-install\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cGRand Unified Bootloader install\u201d\u7684\u7f29\u5199\uff0c\u5176\u529f\u80fd\u662f\u7528\u4e8e\u5728\u8bbe\u5907\u4e0a\u5b89\u88c5GRUB\u670d\u52a1\u3002GRUB\u662f\u4e00\u4e2a\u591a\u91cd\u542f\u52a8\u52a0\u8f7d\u5668\u670d\u52a1\uff0c\u65b0\u7684\u9879\u76ee\u6bd4\u6b64\u524dGRUB Legacy\u66f4\u52a0\u5f3a\u5927\uff0c\u5b9e\u73b0\u4e86\u6a21\u5757\u5316\u548c\u589e\u5f3a\u4e86\u79fb\u690d\u6027\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528grub-install\u547d\u4ee4\u5c06GRUB\u5b89\u88c5\u5230\u6307\u5b9a\u786c\u76d8\u6216\u5206\u533a\u4e0a\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>grub-install [\u53c2\u6570] \u8bbe\u5907<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u5b89\u88c5GRUB\u5230\u6307\u5b9a\u7684\u786c\u76d8\u4e2d\uff1a<\/p>\n\n\n\n \u5b89\u88c5GRUB\u5230\u6307\u5b9a\u7684\u786c\u76d8\u4e2d\uff0c\u4e0d\u63a2\u6d4b\u4efb\u4f55\u8f6f\u76d8\uff1a<\/p>\n\n\n\n \u5b89\u88c5GRUB\u5230\u6307\u5b9a\u7684\u786c\u76d8\u4e2d\uff0c\u5e76\u6307\u5b9a\u955c\u50cf\u76ee\u5f55\uff1a<\/p>\n\n\n\n grub-install\u547d\u4ee4\u6765\u81ea\u4e8e\u82f1\u6587\u8bcd\u7ec4\u201cGRand Unified Bootloader install\u201d […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6986"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6986"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6986\/revisions"}],"predecessor-version":[{"id":9910,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6986\/revisions\/9910"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}--root-directory<\/td> \u5728\u6307\u5b9a\u76ee\u5f55\u5b89\u88c5GRUB\u955c\u50cf<\/td><\/tr> --grub-shell<\/td> \u4f7f\u7528\u6307\u5b9a\u6587\u4ef6\u4f5c\u4e3aGRUB Shell<\/td><\/tr> --no-floppy<\/td> \u4e0d\u63a2\u6d4b\u4efb\u4f55\u8f6f\u76d8\u9a71\u52a8\u5668<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# grub-install \/dev\/sdb<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# grub-install --no-floppy \/dev\/sdb<\/strong><\/pre>\n\n\n\n
[root@linuxcool ~]# grub-install --root-directory=\/tmp\/boot --no-floppy \/dev\/sdb<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"