– 설정 변경
# vim /etc/default/grub
– 설정사항 반영
BIOS: # grub2-mkconfig -o /boot/grub2/grub.cfg EFI: # grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg (RHEL : grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg)
* 아래 'EFI 사용 여부 확인'을 통해 확인
– 반영된것 확인
# ls -la /boot/grub2/../efi/EFI/redhat/grubenv # ls -la /boot/grub2/grubenv
– 재부팅 후 적용 확인 (커널)
# cat /proc/cmdline
– EFI 사용 여부 확인 (참고사항)
방법 1. grub. conf 의 위치
[root@Sample-local ~]# ls -la /boot/efi/EFI/redhat/grub.conf -rwx—— 1 root root 869 2015-09-09 13:26 /boot/efi/EFI/redhat/grub.conf [root@Sample-local ~]# ls -la /etc/grub.conf lrwxrwxrwx. 1 root root 32 2015-09-09 13:26 /etc/grub.conf -> ../boot/efi/EFI/redhat/grub.conf
방법 2. efi 디렉토리 존재 유무
[root@Sample-local ~]# ll /sys/firmware 합계 0 drwxr-xr-x 4 root root 0 2015-09-09 04:52 acpi drwxr-xr-x 3 root root 0 2015-09-09 13:27 efi drwxr-xr-x 12 root root 0 2015-09-09 13:27 memmap
방법 3. dmesg 를 통한 EFI 메모리 할당 정보 확인
[root@Sample-local ~]# dmesg |grep EFI EFI v2.30 by VMware, Inc. EFI: mem00: type=10, attr=0xf, range=[0x0000000000000000-0x0000000000001000) (0MB) EFI: mem01: type=7, attr=0xf, range=[0x0000000000001000-0x000000000009e000) (0MB) EFI: mem02: type=2, attr=0xf, range=[0x000000000009e000-0x00000000000a0000) (0MB) EFI: mem03: type=7, attr=0xf, range=[0x0000000000100000-0x000000007baa0000) (1977MB) EFI: mem04: type=2, attr=0xf, range=[0x000000007baa0000-0x000000007d2e5000) (24MB) EFI: mem05: type=4, attr=0xf, range=[0x000000007d2e5000-0x000000007da39000) (7MB) EFI: mem06: type=2, attr=0xf, range=[0x000000007da39000-0x000000007de39000) (4MB)
CentOS 7, 8 grub2 설정 변경