리눅스관련/커널2009/12/02 11:05
사실 grub2 배경 해상도를 설정하는 법인데...
전 그래픽 카드가 지원을 않해서 제대로 동작하는지 확인을 못했습니다.

다만 이렇게 이런식으로 grub2 설정파일을 바꾸는구나 하고 이해하시면 되겠습니다.

터미널을 열고 다음 명령을 실행합니다.

$ sudo gedit /etc/grub.d/00_header
if loadfont `make_system_path_relative_to_its_root ${GRUB_FONT_PATH}` ; then
  set gfxmode=${GRUB_GFXMODE}
  set gfxpayload=${GRUB_GFXMODE}    #add option
  insmod gfxterm
  insmod ${GRUB_VIDEO_BACKEND}
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi

이제 다음 명령을 실행합니다.

$ sudo gedit /etc/default/grub
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1024x768  #remove '#'

이제 grub 2 를 업데이트 합니다.

$ sudo update-grub 또는 $ sudo update-grub2


이러면 /boot/grub/grub.cfg 다음과 같은 옵션이 추가됩니다.
set root=(hd0,1)
search --no-floppy --fs-uuid --set f6e534e2-3247-4ebb-b480-f530f7296565
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=1024x768
  set gfxpayload=1024x768     #here
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi

이런식으로 다른 옵션도 추가 가능합니다.
저작자 표시 비영리 동일 조건 변경 허락
Posted by 파이델