Grub4 Dos
grub4dos, USB Memory stick multiboot ¶이 문서에서 설명하는 내용은 아래와 같다.
되는 것과 안 되는 것 ¶iso 이미지로 부팅은 되지만, 제대로 사용 할 수 없는 경우가 많았다. 메모리에 로딩 후에 사용해도 마찬가지. 예를 들면
준비물 ¶
알아야 할 사항 ¶
메모리 스틱 포멧 ¶
grubinst ¶
오류 발생 ¶글 작성자인 JellyPo는 우분투에서 usb-creator를 사용해 메모리 스틱을 포멧 및 우분투 설치 매체로 잠깐 사용했더니 grubinst_gui 에서 오류가 발생했다. 윈도 계열과 리눅스 계열이 MBR 관련된 파티션 작성이 다른 점이 있어 그런듯 하다.
grub 복사 ¶이제 메모리 스틱을 보면 아무 파일도 안 보인다. 제대로 된 것 맞다. grubinst는 메모리 스틱 MBR 영역에 쓴 것이므로.
다운 받은 grub4dos 압축을 풀고 grldr과 menu.lst를 복사한다. 다른 버전으로 해볼 때 GRLDR로 대문자로 써야 하는 경우도 있었다.
이제 이 메모리 스틱으로 부팅하면 grub으로 부팅 된다.
OS 설치 파일을 복사하고 해당 설치 파일의 부트로더를 읽어들일 수 있게 하면 grub에서 여러 OS 설치 미디어(원래는 CD나 DVD였을)로 부팅 가능하다. 차후 작성 예정.
멀티 부팅 설정 ¶설치 이미지를 메모리 스틱에 복사하는 방법은 두 가지 방법이 있다.
CentOS6 Net install ISO로 부팅 ¶title CentOS 6 Net Install map /ISO/CentOS-6.0-i386-netinstall.iso (0xff) || map --mem /ISO/CentOS-6.0-i386-netinstall.iso (0xff) map --hook chainloader (0xff) CentOS6 Net install 파일 복사 후 부팅 ¶
title CentOS6 Install from memory stick kernel /isolinux/vmlinuz boot=isolinux initrd /isolinux/initrd.img Windows7 ISO로 설치 ¶
map /ISO/CentOS-6.0-i386-netinstall.iso (0xff) map --hook chainloader (0xff) Windows7 개별 파일로 설치 ¶
# 이렇게 했을 때는 실패했다. 설치 파일 및 디렉터리가 /win7/에 위치. title Win7 chainloader /win7/bootmgr # 설치 파일 및 디렉터리를 /로 이동 후엔 잘 됨. title Win7 chainloader /bootmgr 예제 ¶
# This is a sample menu.lst file. You should make some changes to it. # The old install method of booting via the stage-files has been removed. # Please install GRLDR boot strap code to MBR with the bootlace.com # utility under DOS/Win9x or Linux. color blue/green yellow/red white/magenta white/magenta timeout 30 default /default title CentOS 5.7 64bit Install find --set-root /iso/centos1.iso map /iso/centos1.iso (0xff) map (hd0) (hd1) # 디스크 스왑 map (hd1) (hd0) # 디스크 스왑 map --hook chainloader (0xff) rootnoverify (0xff) title hiren bootcd find --set-root /HBCD/menu.lst configfile /HBCD/menu.lst CentOS iso 이미지 사용시 디스크 스왑을 하는 이유 : 스왑 없이 설치할 경우 메모리 스틱(/dev/sdb)이 (hd0)으로, CentOS 설치 된 디스크 /dev/sda를 (hd1)로 설정되기 때문.
하드 디스크가 하나 일 때만 테스트 했기 때문에 여러개일 경우 어떻게 동작할지 보장 못함.
참고항목 GRUB
|