Oracle® Solaris 11.2 시스템 부트 및 종료

인쇄 보기 종료

업데이트 날짜: 2014년 7월
 
 

x86: GRUB 메뉴에서 부트 항목을 제거하는 방법

bootadm 명령의 remove-entry 하위 명령을 사용하여 GRUB 메뉴에서 지정된 항목 또는 쉼표로 구분된 항목 목록을 제거할 수 있습니다. 이름이 동일한 여러 항목을 지정할 경우 해당 이름을 사용하는 모든 항목이 제거됩니다.

  1. root 역할을 맡습니다.

    Oracle Solaris 11.2의 사용자 및 프로세스 보안 의 지정된 관리 권한 사용을 참조하십시오.

  2. (옵션)현재 부트 항목을 나열합니다.
    # bootadm list-menu
  3. GRUB 메뉴에서 지정된 항목을 제거합니다.
    # bootadm remove-entry [-P pool] [{entry-title [,entry-title...] |
    	-i entry-number[,entry-number...]}
  4. 항목이 제거되었는지 확인합니다.
    # bootadm list-menu

    주 - 변경 사항이 표시되지 않으면 grub.cfg 파일에서 변경 사항이 적용되었는지 확인하십시오.
예 2-9  x86: GRUB 메뉴에서 부트 항목 제거

다음 예에서는 GRUB 메뉴에서 항목 번호 2를 제거하는 과정을 보여 줍니다.

# bootadm list-menu
The location of the boot loader configuration file is /rpool/boot/grub
default 2
console graphics
timeout 30
0 Oracle Solaris 11/11
1 Oracle Solaris 11.2
2 Oracle Solaris 11_test
bootadm remove-entry -i 2
1 entry removed
# bootadm list-menu
The location of the boot loader configuration file is /rpool/boot/grub
default 2
console graphics
timeout 30
0 Oracle Solaris 11/11
1 Oracle Solaris 11.2