{"id":287,"date":"2023-07-04T16:19:02","date_gmt":"2023-07-04T07:19:02","guid":{"rendered":"http:\/\/tech.itdesk.co.kr\/?p=287"},"modified":"2023-07-04T16:19:02","modified_gmt":"2023-07-04T07:19:02","slug":"rhel-centos-grub2-%ec%84%a4%ec%a0%95","status":"publish","type":"post","link":"https:\/\/iwgh.duckdns.org\/?p=287","title":{"rendered":"rhel\/centos grub2 \uc124\uc815"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\ucc38\uc870 : <a href=\"https:\/\/wlsvud84.tistory.com\/24\">https:\/\/wlsvud84.tistory.com\/24<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>**GRUB \uc635\uc158\ubcc0\uacbd<\/strong><br>\/etc\/default\/grub \uc218\uc815 \ud6c4.<br>grub2-mkconfig -o \/boot\/grub2\/grub.cfg \uc744 \ud1b5\ud574 grub \uc801\uc6a9.<br><br>\uc774\ub54c.<br>booting mode \uac00 UEFI\uc758 \uacbd\uc6b0.<br>\/boot\/efi\/EFI\/centos\/grub.cfg (rhel\uc740 censos -> redhat)<br>booting mode \uac00 BIOS\/Lagacy\uc758 \uacbd\uc6b0<br>\/boot\/grub2\/grub.cfg<br>\ud30c\uc77c\uc744 \uc774\uc6a9\ud558\uc5ec mkconfig \uc2e4\ud589<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>**\ubd80\ud305\uac00\ub2a5\ud55c \ucee4\ub110 \ubc84\uc804 \ub9ac\uc2a4\ud2b8 \ud655\uc778 \ubc0f \ubcc0\uacbd<\/strong><br> \ud604\uc7ac \uc801\uc6a9\ub418\uc5b4 \uc788\ub294 \ubd80\ud305\ubc84\uc804 \ud655\uc778<br># grub2-editenv list\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc801\uc6a9\uac00\ub2a5\ud55c \ucee4\ub110\ubc84\uc804\ud655\uc778<br>grep ^menuentry \/boot\/grub2\/grub.cfg | cut -d &#8220;&#8216;&#8221; -f2-> grub.cfg<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud30c\uc77c\uc740 \ud658\uacbd\uc5d0 \ub9de\uac8c \ud655\uc778.\u00a0<br>grub2-set-default &#8220;CentOS Linux (3.10.0-1160.62.1.el7.x86_64) 7 (Core)&#8221;<br>-> \ub2e4\ub978 \ucee4\ub110\ubc84\uc804 1\uc21c\uc704\ub85c \ubd80\ud305\uc21c\uc11c \ubcc0\uacbd.\u00a0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">grub2-editenv list<br>saved_entry=CentOS Linux (3.10.0-1160.62.1.el7.x86_64) 7 (Core)-> \ud655\uc778<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<blockquote class=\"wp-block-quote has-small-font-size is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-small-font-size wp-block-paragraph\">ex><\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">[root@instance-20220414-nextcloud2 ~]# grub2-editenv list<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">saved_entry=CentOS Linux (3.10.0-1160.88.1.el7.x86_64) 7 (Core)<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">[root@instance-20220414-nextcloud2 ~]# grep ^menuentry \/boot\/efi\/EFI\/centos\/grub.cfg | cut -d &#8220;&#8216;&#8221; -f2<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">CentOS Linux (3.10.0-1160.88.1.el7.x86_64) 7 (Core)<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">CentOS Linux 7 Rescue acda96df79e7452399a2a74cc7a0203d (3.10.0-1160.62.1.el7.x86_64)<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">CentOS Linux (3.10.0-1160.62.1.el7.x86_64) 7 (Core)<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">CentOS Linux (3.10.0-1160.59.1.el7.x86_64) 7 (Core)<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">CentOS Linux (3.10.0-1160.el7.x86_64) 7 (Core)<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">CentOS Linux (0-rescue-813e1db7313944faa2482e2ddc83db3a) 7 (Core)<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">[root@instance-20220414-nextcloud2 ~]# grub2-set-default &#8220;CentOS Linux (3.10.0-1160.62.1.el7.x86_64) 7 (Core)&#8221;<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">[root@instance-20220414-nextcloud2 ~]# grub2-editenv list<\/p>\n\n\n\n<p class=\"has-small-font-size wp-block-paragraph\">saved_entry=CentOS Linux (3.10.0-1160.62.1.el7.x86_64) 7 (Core)<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\ucc38\uc870 : https:\/\/wlsvud84.tistory.com\/24 **GRUB \uc635\uc158\ubcc0\uacbd\/etc\/default\/grub \uc218\uc815 \ud6c4.grub2-mkconfig -o \/boot\/grub2\/grub.cfg \uc744 \ud1b5\ud574 grub \uc801\uc6a9. \uc774\ub54c.booting mode \uac00 UEFI\uc758 \uacbd\uc6b0.\/boot\/efi\/EFI\/centos\/grub.cfg (rhel\uc740 censos -> redhat)booting mode \uac00 BIOS\/Lagacy\uc758 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":117,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,1],"tags":[70,71,66,72,67,69,11,68],"class_list":["post-287","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-small","category-tech","tag-bios","tag-booting","tag-grub","tag-grub-cfg","tag-grub2","tag-lagacy","tag-linux","tag-uefi"],"_links":{"self":[{"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/posts\/287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=287"}],"version-history":[{"count":1,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/posts\/287\/revisions"}],"predecessor-version":[{"id":288,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/posts\/287\/revisions\/288"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=\/wp\/v2\/media\/117"}],"wp:attachment":[{"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iwgh.duckdns.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}