{"id":8729,"date":"2020-09-14T16:58:31","date_gmt":"2020-09-14T08:58:31","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8729"},"modified":"2020-09-22T22:06:04","modified_gmt":"2020-09-22T14:06:04","slug":"bootadm","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/bootadm","title":{"rendered":"bootadm\u547d\u4ee4 – \u7ba1\u7406\u5f15\u5bfc\u914d\u7f6e"},"content":{"rendered":"\n

bootadm \u547d\u4ee4\u7ba1\u7406\u542f\u52a8\u5b58\u6863\uff0c\u5bf9\u4e8e x86 \u7684\u542f\u52a8\u73af\u5883\uff0c\u7ba1\u7406 GRUB\uff08GRand Unified Bootloader\uff09\u83dc\u5355\u3002 \u5bf9\u4e8ex86\u6765\u8bf4\uff0c\u652f\u6301Legacy GRUB\u548cGRUB2\uff08\u4f46\u4e0d\u662f\u540c\u65f6\uff09\u3002\u66f4\u65b0\u5b58\u6863\u9009\u9879\u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u4e00\u79cd\u66f4\u65b0\u5f15\u5bfc\u5b58\u6863\u7684\u65b9\u6cd5\uff0c\u4f5c\u4e3a\u4e00\u79cd\u9884\u9632\u63aa\u65bd\u6216\u4f5c\u4e3a\u6062\u590d\u7a0b\u5e8f\u7684\u4e00\u90e8\u5206\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>bootadm [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

update-archive<\/td>\u66f4\u65b0\u5f15\u5bfc\u5f52\u6863\u6587\u4ef6<\/td><\/tr>
set-menu<\/td>\u8bbe\u7f6e\u7f3a\u7701\u7684\u5f15\u5bfc\u9879<\/td><\/tr>
list-menu<\/td>\u663e\u793aGRUB \u83dc\u5355\u9879<\/td><\/tr>
add-entry<\/td>\u6dfb\u52a0\u83dc\u5355\u9879<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u66f4\u65b0\u5f15\u5bfc\u5f52\u6863\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# bootadm update-archive<\/pre>\n\n\n\n

\u8bbe\u7f6e\u7f3a\u7701\u7684\u5f15\u5bfc\u9879\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# bootadm set-menu default=5<\/code><\/pre>\n\n\n\n

\u663e\u793aGRUB \u83dc\u5355\u9879\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# bootadm list-menu<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"

bootadm \u547d\u4ee4\u7ba1\u7406\u542f\u52a8\u5b58\u6863\uff0c\u5bf9\u4e8e x86 \u7684\u542f\u52a8\u73af\u5883\uff0c\u7ba1\u7406 GRUB\uff08GRand Unified Boo […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8729"}],"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=8729"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8729\/revisions"}],"predecessor-version":[{"id":8930,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8729\/revisions\/8930"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}