강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

GRUB전용명령어 configfile 사용법

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

GRUB전용명령어  configfile 사용법

 

 

 

 

사용형식 : configfile FILE

 

 

 

 

지정한 파일을 GRUB의 설정파일로 로드 하는 명령어입니다. 

 

 

 

 아래와 같이 root명령어로 (hd0,0)를 루트디바이스로 지정하였습니다. 

 

 

 

 

 

grub> root (hd0,0)

root (hd0,0)

 Filesystem type is ext2fs, partition type 0x83

grub>

 

 

 

 

그리고 configfile명령어를 이용하여 아래와 같이 /grub/grub.conf파일을 GRUB의 설정파일로 불러들인 것입니다. 

 

 

 

 

 

[참고사항]

리눅스에서의 경로는 /boot/grub/grub.conf 입니다. 

 

 

 

 GRUB에서의 경로지정에 대해서는 뒤에 나오는 root명령어를 참조해 주시기 바랍니다. 

 

 

 

 

 

grub> configfile /grub/grub.conf

configfile /grub/grub.conf

 

 

 

 

 

위와 같이 configfile명령어로 /grub/grub.conf파일을 불러들이면 아래화면과 같이 나옵니다. 

 

 

 

 

 

GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 

-------------------------------------------------------------------

 0: Fedora (2.6.27.5-117.fc10.i686)

-------------------------------------------------------------------

 

      Use the ^ and v keys to select which entry is highlighted.

      Press enter to boot the selected OS, 'e' to edit the

      commands before booting, 'a' to modify the kernel arguments

      before booting, or 'c' for a command-line.

 

The selected entry is 0     Highlighted entry is 0:

 

 

 

 

, 이 화면에서 GRUB부팅화면이 정상적으로 작동하는가를 확인할 수 있습니다. 

 

 

 

 

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,038 명
  • 현재 강좌수 :  35,818 개
  • 현재 접속자 :  87 명