cat /etc/default/grub으로 GRUB 설정 확인
이 단계에서는 GRUB 설정 파일을 탐색합니다. GRUB (GRand Unified Bootloader) 는 Ubuntu 를 포함한 많은 Linux 배포판의 부트로더입니다. 컴퓨터를 시작할 때 실행되는 첫 번째 소프트웨어이며 운영 체제 커널을 로드하는 역할을 합니다.
GRUB 의 주요 설정 파일은 /etc/default/grub에 위치해 있습니다. 이 파일에는 부팅할 기본 운영 체제, 부팅 전 타임아웃, 커널 파라미터 등 GRUB 의 동작 방식을 결정하는 설정이 포함되어 있습니다.
cat 명령을 사용하여 이 파일의 내용을 살펴보겠습니다. cat 명령은 파일의 내용을 표시하는 데 사용됩니다.
아직 열려 있지 않다면 터미널을 엽니다. 데스크탑 왼쪽에서 Xfce 터미널 아이콘을 찾을 수 있습니다.
다음 명령을 입력하고 Enter 키를 누릅니다.
cat /etc/default/grub
터미널에 /etc/default/grub 파일의 내용이 출력됩니다. 다음과 유사한 형태일 것입니다.
## If you change this file, run 'update-grub' afterwards to update
## /boot/grub/grub.cfg.
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
## Uncomment to enable graphical terminal (grub-gfxpayload is needed)
#GRUB_TERMINAL=gfxterm
## The resolution used on graphical terminal
## settings below may not work on your chipset but may be useful for EFI panel
## sizes
#GRUB_GFXMODE=640x480
## Uncomment to disable graphical terminal on boot problems
#GRUB_TERMINAL_INPUT=console
## Uncomment to disable menu scrolling
#GRUB_MENU_SCROLL_STYLE=menu
## Uncomment to enable hidden menu by default
#GRUB_HIDDEN_TIMEOUT=0
#GRUB_HIDDEN_TIMEOUT_QUIET=true
## Uncomment to enable BadRAM filtering, modify to suit your needs
## This works only with Linux 2.6.25 or later using pci_filter_enable=1
## and needs BadRAM filtering support in the kernel
#GRUB_BADRAM="0x0123456789abcdef,0xghijkllmnopqrstuvwxyz"
## Uncomment to disable graphical boot (use text mode)
#GRUB_DISABLE_GRAPHICS_OVERRIDE=true
## If you want to enable the GRUB boot menu at boot time, uncomment the following line:
#GRUB_ENABLE_CRYPTODISK=y
## The following lines are for the default grub menu entry
#GRUB_INIT_TUNE="480 440 1"
## Uncomment to set a custom theme
#GRUB_THEME=/path/to/grub/theme
## Uncomment to enable os-prober, which detects other operating systems
#GRUB_DISABLE_OS_PROBER=false
이 파일에는 다양한 설정이 포함되어 있습니다. 예를 들어:
GRUB_DEFAULT: 부팅할 기본 메뉴 항목을 지정합니다. 0은 첫 번째 항목을 의미합니다.
GRUB_TIMEOUT: 기본 항목이 자동으로 부팅되기 전의 시간을 초 단위로 설정합니다.
GRUB_CMDLINE_LINUX_DEFAULT: 기본 항목을 부팅할 때 커널에 전달되는 커널 파라미터를 포함합니다.
이 파일을 이해하는 것은 고급 Linux 구성 및 부팅 문제 해결에 매우 중요합니다.
다음 단계로 진행하려면 계속을 클릭하십시오.