사용자 도구

사이트 도구


linux:ubuntu:grub

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
linux:ubuntu:grub [2020/07/01 15:00]
kwon37xi [EFI 파티션일 때 Repair]
linux:ubuntu:grub [2020/08/04 08:58]
kwon37xi 제거됨
줄 12: 줄 12:
   * http://www.ubuntu.or.kr/viewtopic.php?f=4&t=24338   * http://www.ubuntu.or.kr/viewtopic.php?f=4&t=24338
  
-==== 파일 자동 탐색 ====+===== themes ===== 
 +  * [[https://github.com/vinceliuice/grub2-themes|grub2-themes]] 몇몇 테마를 자동으로 깔아준다. 2k, 4k 등도 지원. 
 +  * [[https://www.gnome-look.org/browse/cat/109/order/latest/|grub 2 themes]] 
 +  * ''theme.txt'' 가 있는 폴더를 통으로(상위 디렉토리 빼고) 압축해서 ''grub-customizer''에서 install 해주면 된다. 
 +  * ''grub-customizer''는 ''/boot/grub/themes/'' 에 있는 테마만을 찾는데, 실제로 표준 경로는 ''/usr/share/grub/themes''라서 ''/etc/defualt/grub'' 파일에서 ''GRUB_THEME'' 항목을 직접 수정해줘야 한다. 
 +===== Font 등 변경 ===== 
 +  * [[https://m.blog.naver.com/PostView.nhn?blogId=any9122&logNo=220967365222&proxyReferer=https:%2F%2Fwww.google.com%2F|grub2 메뉴의 폰트, 대기시간, 해상도 수정하기 : 네이버 블로그]] 
 +  * [[http://blog.wxm.be/2014/08/29/increase-font-in-grub-for-high-dpi.html|Increase Font in GRUB for High DPI Screens | blog]] 
 + 
 +==== 배민 연성체 32 로 지정해보기 ==== 
 + 
 +<code> 
 +sudo grub-mkfont --output=/boot/grub/fonts/BMYEONSUNG32.pf2 --size=32 /path/to/BMYEONSUNG_ttf.ttf 
 +</code> 
 + 
 +  * ''/etc/default/grub'' 여기까지 하면 매칭 안되는 글씨(보통 한글)가 나올 때 ''GRUB_FONT''의 값을 사용함. 
 +<code> 
 +GRUB_FONT="/boot/grub/fonts/BMYEONSUNG32.pf2" 
 +</code> 
 +  * 사용중인 테마의 ''theme.txt'' 에서 글꼴을 ''BM YEONSUNG Regular''로 변경 
 +<code> 
 +item_font = "BM YEONSUNG Regular 32" 
 +font = "BM YEONSUNG Regular 32" 
 +</code> 
 + 
 +  * ''update-grub'' 
 + 
 +<code sh> 
 +sudo update-grub 
 +</code> 
 + 
 +===== 파일 자동 탐색 =====
   - ''/boot/grub'' 에 이미지 파일을 복사한다.   - ''/boot/grub'' 에 이미지 파일을 복사한다.
   - ''/etc/default/grub'' 파일에 화면 해상도를 지정한다.<code>   - ''/etc/default/grub'' 파일에 화면 해상도를 지정한다.<code>
줄 19: 줄 50:
   - ''update-grub''   - ''update-grub''
  
-==== 파일 명시 ====+===== 파일 명시 =====
   - ''/etc/default/grub''에 이미지 파일 명시<code>   - ''/etc/default/grub''에 이미지 파일 명시<code>
 GRUB_BACKGROUND="/path/to/image.png" GRUB_BACKGROUND="/path/to/image.png"
줄 41: 줄 72:
 ===== EFI 파티션일 때 Repair ===== ===== EFI 파티션일 때 Repair =====
   *  EFI 파티션이 있는 상태인데, ''BootRepair'' 가 잘 안되고''grub-efi''를 복구하고자 할때   *  EFI 파티션이 있는 상태인데, ''BootRepair'' 가 잘 안되고''grub-efi''를 복구하고자 할때
 +
 +<code sh>
 +# EFI 모드인지 확인하기
 +[ -d /sys/firmware/efi ] && echo "EFI boot on HDD" || echo "Legacy boot on HDD"
 +# 결과가 EFI boot on HDD 로 출력돼야 한다.
 +</code>
 +
   * [[https://askubuntu.com/questions/831216/how-can-i-reinstall-grub-to-the-efi-partition|boot - How can I reinstall GRUB to the EFI partition? - Ask Ubuntu]]   * [[https://askubuntu.com/questions/831216/how-can-i-reinstall-grub-to-the-efi-partition|boot - How can I reinstall GRUB to the EFI partition? - Ask Ubuntu]]
   * Ubuntu Live Media 로 **UEFI-mode**로 부팅해서 작업한다.   * Ubuntu Live Media 로 **UEFI-mode**로 부팅해서 작업한다.