GRUB2 Quick Start/ko

이 글에서는 GRUB2를 가져오는 방법과 초간단 설정으로 GRUB2을 동작하는 방법을 설명합니다. 더욱 실제적인 정보를 찾아보려면 GRUB2를 참고하십시오. 기존의 GRUB 에서 GRUB2로 옮겨가는 방법을 찾아보려면 GRUB2로 옮겨가기를 보십시오.

GRUB2 프로그램 설치
The package is slotted which means both grub-0.97 and grub-2.xx may be installed at the same time. However, while both versions of GRUB can be installed simultaneously, only one version of GRUB may be active as the system's bootloader at a time.

To install GRUB2, first set the GRUB_PLATFORMS variable with one or more appropriate values in the system's. If unset, GRUB2 will guess which platform to use on the system. It guesses  (which is the MBR style of installation) for / architectures.

변수를 설정했다면, 프로그램을 이머지하십시오:

GRUB2 부트 로더 활성화
가능하다면 를 마운트하십시오:

When using an EFI platform, make sure that the EFI System Partition is available (mounted) at. This can either be through a specific mount point (at ) or by having an entire partition formatted with the FAT filesystem. This will effectually render into a large EFI System Partition.

Presuming only is FAT:

Run the utility to copy the relevant files to. On the PC platform, this also installs a boot image to the Master Boot Record (MBR) or a partition's boot sector.

MBR에 GRUB2를 설치하려면:

EFI 기능 탑재 시스템에 GRUB2를 설치하려면:

The command accepts a   option to specify which CPU/Platform to install. If unspecified, will make a guess: on / it will use the   value by default.

자동 설정
GRUB2 is traditionally configured by using the program to generate a configuration file.

generates the configuration file based on template sections located in. The default templates should cover most common boot setups.

이 템플릿의 동작은 의 변수를 설정하여 통제할 수 있습니다. 더 많은 정보는 GRUB 설명서en 를 살펴보십시오.

커널 이름 형태
In order for to detect the available Linux kernel(s), their names must start with  or.

예를 들자면:

When using an initramfs, its name should start with or  and end with. The version must match one of a kernel image. File names generated by will also work.

예를 들자면:

To generate the file, execute the  command like so:

메시지를 출력하지 않는 커널 압축해제
To silence kernel decompression at boot time, edit and add   to the GRUB_CMDLINE_LINUX_DEFAULT variable.

Systemd
To boot systemd while using GRUB2 make the GRUB_CMDLINE_LINUX variable look like this:

다른 운영체제 불러오기
can also generate configurations to load other operating systems. This requires the package.

To boot Windows, the also needs to be installed. It allows for the utility to probe NTFS filesystems.

직접 설정
Users do not need to use. The file can be edited manually as well.

대부분의 사용자가 기존의 GRUB 형식을 사용했듯이 다음 예제에서는 기존의 GRUB 설정에서 가져온 정보를 기반으로 설정 파일을 작성하는 방법을 보여줍니다.

추가 참조

 * GRUB2 - The 'full' GRUB2 article contains more information and an extensive list of resources.