Grub
GNU GRUB(대개 GRUB)은 GNU 프로젝트의 부트로더이다. 대부분 운영 체제의 커널을 불러올 수 있으며, 인자를 넘겨 줄 수도 있다. GNU GRUB의 이전 이름은 GRand Unified Bootloader이었고 이는 대통일 이론의 영문 이름의 패러디이다. 대부분 리눅스 배포판에서 부트로더로 사용한다.
List of commands
- halt
- 시스템 종료
bootloader-id
여러 운영체제 마다 부여하는 ID.
Example
Ubuntu 16.04 및 Ubuntu 18.04가 설치되어 있습니다. 우분투 16.04로 부팅하고 실행합니다.
그런 다음 우분투 18.04로 부팅 한 후
UEFI 시작. 설정에서 나는 이름으로 새 부트 항목을 참조 Ubuntu1604하고 Ubuntu1804첫 번째 장소에 새 항목 세트 하나에 부팅 순서를 재 배열.
Set older kernel as default grub entry
기본 GRUB 진입점을 변경하는 방법.
/etc/default/grub
파일 열고
와 같이 서브 메뉴가 있다면 ">"문자열로 구분하면 된다. 참고로 메뉴 인덱스는 0부터 시작한다.
위와 같이 입력할 경우 index1
의 서브메뉴의 index2
로 집입한다. 가 된다.
Submenu Designation Examples
All of the following examples indicate the first menuentry in the first submenu. Titles are easier to use but numbers are also acceptable for either or both values.
Examples: In the following examples, the main menu consists of the current kernel, a recovery mode option, and the submenu "Previous Linux versions" as the third entry. The desired default is the first entry in the first submenu.
- GRUB_DEFAULT="Previous Linux versions>Ubuntu, with Linux 3.2.0-18-generic-pae"
- GRUB_DEFAULT="Previous Linux versions>0"
- GRUB_DEFAULT="2>0"
- GRUB_DEFAULT="2>Ubuntu, with Linux 3.2.0-18-generic-pae"
Here is a graphic example. Note that the 2 menuentries immediately below the "Previous Linux versions" would not be visible on booting until the "Previous Linux versions" entry was selected.
Grub_submenu-examples.png
nomodeset
The newest kernels have moved the video mode setting into the kernel. So all the programming of the hardware specific clock rates and registers on the video card happen in the kernel rather than in the X driver when the X server starts.. This makes it possible to have high resolution nice looking splash (boot) screens and flicker free transitions from boot splash to login screen. Unfortunately, on some cards this doesnt work properly and you end up with a black screen. Adding the nomodeset parameter instructs the kernel to not load video drivers and use BIOS modes instead until X is loaded.