사용자 도구

사이트 도구


linux:grub

차이

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

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
linux:grub [2020/12/09 15:18]
kwon37xi [Boot Repair]
linux:grub [2023/01/13 15:55] (현재)
kwon37xi [Group Customozer]
줄 4: 줄 4:
   * [[https://help.ubuntu.com/community/StartUpManager|StartUpManager]] : Grub2 관리를 편리하게. 기본 부팅 OS 변경, 선택 시간 변경 등의 작업이 가능함.   * [[https://help.ubuntu.com/community/StartUpManager|StartUpManager]] : Grub2 관리를 편리하게. 기본 부팅 OS 변경, 선택 시간 변경 등의 작업이 가능함.
   * https://help.ubuntu.com/community/Grub2/   * https://help.ubuntu.com/community/Grub2/
-  *https://help.ubuntu.com/community/Grub2/Installing+  * https://help.ubuntu.com/community/Grub2/Installing 
 +  * [[linux:uefi|Linux UEFI]]
  
-===== Group Customozer ===== +===== Group Customizer ===== 
-2020년 현재 기본 패키지로 설치 가능.+[[linux:ubuntu:22.04|Ubuntu Linux 22.04 Jammy Jellyfish]]에서 기본 패키지에서 제거됨.
 <code sh> <code sh>
-sudo apt-get install grub-customizer+sudo add-apt-repository ppa:danielrichter2007/grub-customizer 
 +</code> 
 +그 이전 버전에는 기본으로 있음. 
 +===== Grub 자체가 노출이 안 될때 ===== 
 +  * 일부 상황에서 grub 이 화면에 안나오고 곧 바로 부팅되는 현상이 발생하는 경우가 있었음. 
 +  * [[https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1863434|Bug #1863434 “20.04 grub menu not visible” : Bugs : grub2 package : Ubuntu]] 
 +    * ''2.06'' 버전에서 해결됨. 
 +  * ''/etc/default/grub'' 파일에서 
 + 
 +<code> 
 +GRUB_TIMEOUT=5 # 적당한 값으로 
 +GRUB_TIMEOUT_STYLE="hidden" 
 + 
 +# 이 부분이 핵심이었음. 그렇지만 이렇게 하면 그래픽 테마를 적용할 수 없는 듯. 
 +GRUB_TERMINAL=console 
 +</code> 
 +  * 이제 ''grub'' 설정 변경 사항 적용. 
 + 
 +<code sh> 
 +sudo update-grub
 </code> </code>
  
 ===== 부팅화면에 바탕이미지 깔기 ===== ===== 부팅화면에 바탕이미지 깔기 =====
   * http://www.ubuntu.or.kr/viewtopic.php?f=4&t=24338   * http://www.ubuntu.or.kr/viewtopic.php?f=4&t=24338
 +
 +===== 해상도 Screen Resolution 변경 =====
 +  * [[https://askubuntu.com/questions/54067/how-to-safely-change-grub2-screen-resolution|How to safely change grub2 screen resolution? - Ask Ubuntu]]
 +  * 먼저 부팅시의 ''grub'' 화면에서 ''c'' 를 눌러 ''videoinfo'' 명령을 실행한다. 그 결과중에 원하는 해상도가 있는지 확인한다. 보통은 ''1920x1080x32'' 가 있을 것이다.
 +  * ''/etc/default/grub'' 파일에서 해상도 정보 넣기
 +<code>
 +# videoinfo 명령에서 나온 결과중에 원하는 해상도 지정
 +GRUB_GFXMODE="1920x1080x32"
 +# 테마도 해상도에 맞게 지정한다.
 +GRUB_THEME="/boot/grub/themes/tela-1k/theme.txt"
 +</code>
 +  * ''sudo update-grub'' 실행하고 재부팅
 +
  
 ===== themes ===== ===== themes =====
   * [[https://github.com/vinceliuice/grub2-themes|grub2-themes]] 몇몇 테마를 자동으로 깔아준다. 2k, 4k 등도 지원.   * [[https://github.com/vinceliuice/grub2-themes|grub2-themes]] 몇몇 테마를 자동으로 깔아준다. 2k, 4k 등도 지원.
-  * [[https://www.gnome-look.org/browse/cat/109/order/latest/|grub 2 themes]]+  * [[https://www.gnome-look.org/browse/cat/109/order/latest/|gnome-look grub 2 themes]]
   * ''theme.txt'' 가 있는 폴더를 통으로(상위 디렉토리 빼고) 압축해서 ''grub-customizer''에서 install 해주면 된다.   * ''theme.txt'' 가 있는 폴더를 통으로(상위 디렉토리 빼고) 압축해서 ''grub-customizer''에서 install 해주면 된다.
   * ''grub-customizer''는 ''/boot/grub/themes/'' 에 있는 테마만을 찾는데, 실제로 표준 경로는 ''/usr/share/grub/themes''라서 ''/etc/defualt/grub'' 파일에서 ''GRUB_THEME'' 항목을 직접 수정해줘야 한다.   * ''grub-customizer''는 ''/boot/grub/themes/'' 에 있는 테마만을 찾는데, 실제로 표준 경로는 ''/usr/share/grub/themes''라서 ''/etc/defualt/grub'' 파일에서 ''GRUB_THEME'' 항목을 직접 수정해줘야 한다.
   * [[https://www.gnome-look.org/p/1307852/|Tela grub theme - Gnome-look.org]] : 4k 지원   * [[https://www.gnome-look.org/p/1307852/|Tela grub theme - Gnome-look.org]] : 4k 지원
 +  * [[https://github.com/AdisonCavani/distro-grub-themes|distro-grub-themes]] 각 배포판별 Grub theme
   * 그외 기본 grub 테마들의 경우 사용자정의상태의 한글글꼴과 테마의 글꼴 크기(''theme.txt''에 보면 나옴)를 잘 맞춰 줘야 함.   * 그외 기본 grub 테마들의 경우 사용자정의상태의 한글글꼴과 테마의 글꼴 크기(''theme.txt''에 보면 나옴)를 잘 맞춰 줘야 함.
 <code sh> <code sh>
줄 82: 줄 116:
   - [[https://wnw1005.tistory.com/481|씨실과 날실 - IT :: 우분투에서 부트로더(boot loader) GNU GRUB 복구]]   - [[https://wnw1005.tistory.com/481|씨실과 날실 - IT :: 우분투에서 부트로더(boot loader) GNU GRUB 복구]]
   - [[https://wnw1005.tistory.com/480|씨실과 날실 - IT :: 리눅스 필수 설치 패키지 - boot-repair]]   - [[https://wnw1005.tistory.com/480|씨실과 날실 - IT :: 리눅스 필수 설치 패키지 - boot-repair]]
 +
 +==== boot-repair PPA 설치 ====
 +<code sh>
 +sudo add-apt-repository ppa:yannubuntu/boot-repair
 +sudo apt-get update
 +sudo apt-get install -y boot-repair && boot-repair
 +</code>
 +
 ===== EFI 파티션일 때 Repair ===== ===== EFI 파티션일 때 Repair =====
   *  EFI 파티션이 있는 상태인데, ''BootRepair'' 가 잘 안되고''grub-efi''를 복구하고자 할때   *  EFI 파티션이 있는 상태인데, ''BootRepair'' 가 잘 안되고''grub-efi''를 복구하고자 할때
linux/grub.1607494692.txt.gz · 마지막으로 수정됨: 2020/12/09 15:18 저자 kwon37xi