make no image on grub

Monday Jul 28, 2008

x86/x64 system에서 console에 대한 처리에 가장 적절한 답은, LOM에서 제공되는 java based의 virtual console일 것이다. 하지만, 이것이 마음에 들지 않거나 지원되지 아니하는 model일 경우 remote console로서는 SP/xLOM의 serial console redirection을 선택할 수 있다. 하지만 이와 같은 설정에는 한 가지 불편이 따른다. 바로, grub 화면이 보이지 않는다는 것이다.

이건 solaris의 grub에서 splashimage가 default로 지정되어 있기 때문인데, serial console에서는 image data를 처리할 수 없다. 간단히 comment out처리하여 console redirect된 화면을 image를 배제함으로써 원활히 볼 수 있다.

kj201100@spoc $ cd /boot/grub/
kj201100@spoc $ ls -al ./menu.lst
-rw-r--r--   1 root     sys         1853 Apr 23 14:11 ./menu.lst
kj201100@spoc $ vi ./menu.lst

     1  #pragma ident   "@(#)menu.lst   1.1     05/09/01 SMI"
     2  #
     3  # default menu entry to boot
     4  default 0
     5  #
     6  # menu timeout in second before default OS is booted
     7  # set to -1 to wait for user input
     8  timeout 10
     9  #
    10  # To enable grub serial console to ttya uncomment the following lines
    11  # and comment out the splashimage line below
    12  # WARNING: don't enable grub serial console when BIOS console serial
    13  #       redirection is active!!!
    14  #   serial --unit=0 --speed=9600
    15  #   terminal serial
    16  #
    17  # Uncomment the following line to enable GRUB splashimage on console
    18  splashimage /boot/grub/splash.xpm.gz
    19  #
    20  # To chainload another OS
    21  #
    22  # title Another OS
    23  #       root (hd,)
    24  #       chainloader +1
    25  #
    26  # To chainload a Solaris release not based on grub
    27  #

18번째 줄의 부분을 '#'으로 comment out처리하면 된다. 다음 reboot 시에는 완전히 image가 배제된 grub 화면을 볼 수 있다. 아름다운 것은 실용 앞에 의미를 상실한다. 실용적인 것은 간단하고 명료한 것이 기본이다.

[0] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg

single user mode via grub

Monday Jul 23, 2007

Solaris 10 U1 01/06 버전을 설치하면, 시작화면에서 GRUB을 만날 수 있다. GRUB은 특히, PC platform(x86/x64 platform)에서 다양한 운영체제를 손쉽게 전환하여 부팅할 수 있는 편리함을 제공한다. 매우 반겼을 이 기능에 하나의 의문이 생기는데, 전통적인(legacy) 방법의 single user mode boot은 어떻게 할지 궁금진다. 분명, GRUB에서 제공하는 'safe mode'는 single user mode와는 다른 기능이다.

GRUB, 정상적인 boot menu에서 'e' 를 입력하면,

root (hd0,0,a) kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive

와 같은 설정을 화면에 표시할 수 있다. 이 때, kernel /platform/i86pc/multiboot에서 다시 'e' 를 누르고 '-s' 를 추가(kernel /platform/i86pc/multiboot -s)하고 'b' 를 누르면, single user mode로 bootup할 수 있다. 종전(solaris 9까지의 intel platform solaris)의 boot 단계에서 'ESC' 누르고 'b -s' 라고 입력한 것과 같은 결과를 가져오게 된다. 이와 같은 방법은 종종 귀찮은 결과 - 기억력 감퇴에 따른 결정적 순간의 오류 - 를 가져오는데, GRUB의 menu를 수정하여 부팅 때마다 선택적으로 single user mode를 선택할 수 있다.

# vi /boot/grub/menu.lst
와 같이 GRUB의 menu 설정을 열어서,

title Solaris 10 1/06 Single User Boot
root (hd0,0,a)
kernel /platform/i86pc/multiboot -s
module /platform/i86pc/boot_archive

와 같이 네 줄의 값을 입력해 넣으면 된다. 두번째 행의 ‘root (hd0,0,a)’ 는 사용자 환경에 따라서 다르다. 이 부분은 미리 기본값으로 입력되어 있는 부분을 참조하면 손쉽다.


original post was on http://solarisinsider.com/archives/2006/05/10/108/ by me.

[0] Comments
Like this post? del.icio.us | furl | slashdot | technorati | digg