지정한 디스크에 GRUB을 설치하는 GRUB전용명령어 setup 사용법
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,392 조회
- 0 추천
- 목록
본문
지정한 디스크에 GRUB을 설치하는 GRUB전용명령어 setup 사용법
사용형식 : setup [--prefix=DIR] [--stage2=STAGE2_FILE] [--force-lba] 설치할장치명
[IMAGE_DEVICE]
지정한 디스크장치에 GRUB을 자동적으로 설치해주는 명령어입니다.
즉, 부팅파티션으로 생성하기 위하여 지정한 디바이스에 GRUB을 설치합니다.
아래의 예는 root명령어로 디스크의 첫번째 파티션(hd1,0)을 루트디바이스로 지정한 후에 setup명령어로 이 디스크에 GRUB을 설치한 예입니다.
[root@su252 ~]# grub Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename.]
grub> root (hd1,0) Filesystem type is ext2fs, partition type 0x83
grub> grub> setup (hd1) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 15 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd1) (hd1)1+15 p (hd1,0)/boot/grub/stage2 /boot/ grub/grub.conf"... succeeded Done.
grub> |
관련자료
-
이전
-
다음