본문 바로가기

카테고리 없음

bcdboot로 윈도우 부팅 메뉴 간단하게 추가하기(Vista, 7)

hdd에 설치된 os를 bcdboot 명령어로 부팅 메뉴에 추가하기

이번에는 윈도우 내장 부팅용 툴인 bcdboot을 소개합니다.
(지원 운영체제 : Vista, Win7, 2008)

먼저 CMD 창을 관리자 모드로 실행해주세요.

시작>cmd 치신 후 엔터 치시면 됩니다.


bcdboot "추가할 OS의 윈도우 드라이브 폴더" /l ko-KR

Vista, 7에서 Vista, 7의 부팅 메뉴만 가능합니다 - Server 2008군도 포함!

일단 cmd를 관리자 권한으로 실행해주세요.

그 다음 아래의 명령어를 기억해두기만 하세요.

 bcdboot "추가할 OS의 윈도우 폴더"

그러니까 아래와 같이 입력하면 되는 것이죠. - by Frey

 bcdboot "E:\Windows" /l ko-KR"

 

여기서 추가할 OS의 윈도우 폴더란 "%windir%", "C:\Windows"같은 경로를 말합니다.
하지만 아직 이 명령어를 치면 안됩니다. 기본 언어가 영문이기 때문이죠.

만약 영문으로 사용하시려면, 그냥 치셔도 되나, 한글로 사용하시려면 아래와 같이 쳐야 합니다.

 bcdboot "추가할 OS의 윈도우 폴더" /l ko-KR

여기서 ko-KR은 한국어를 뜻하고, /l 스위치(명령줄의 속성이라고도 합니다.)는 언어 설정을 뜻합니다.

그럼 아래와 같은 결과가 나옵니다.

Boot files successfully created.

하지만 그 다음 명령어를 입력하지 않으면 그 값이 기본으로 설정됩니다.

그래서 이런 명령어를 쳐 줘야죠.

 bcdedit /default {current}

 bcdedit /set {bootmgr} resumeobject {current}

왜냐하면 bcdboot은 그 메뉴를 {default}로 설정하기 때문이죠.

 

아래와 같이 뜨면 필시 바꿔줘야 합니다.


Windows 부팅 관리자
--------------------
identifier              {bootmgr}
device                  partition=C:
description             Windows Boot Manager
locale                  en-us
inherit                 {globalsettings}
default                 {default}
resumeobject            {f600fad3-bf7d-11de-a19c-fe0e15821ed0}
displayorder            {default}
                        {current}
toolsdisplayorder       {memdiag}
timeout                 30

Windows 부팅 로더
-------------------
identifier              {default}
device                  partition=C:
path                    \Windows\system32\winload.exe
description             Windows 7
locale                  en-us
inherit                 {bootloadersettings}
osdevice                partition=C:
systemroot              \Windows
resumeobject            {f600fad3-bf7d-11de-a19c-fe0e15821ed0}
nx                      OptIn
detecthal               Yes

Windows 부팅 로더
-------------------
identifier              {current}
device                  locate=\Windows\system32\winload.exe
path                    \Windows\system32\winload.exe
description             Windows 7
locale                  ko-KR
inherit                 {bootloadersettings}
recoverysequence        {f600fac5-bf7d-11de-a19c-fe0e15821ed0}
recoveryenabled         Yes
osdevice                locate=\Windows
systemroot              \Windows
resumeobject            {f600fac3-bf7d-11de-a19c-fe0e15821ed0}
nx                      OptIn
numproc                 1
usefirmwarepcisettings  No

기울어진 부분은 컴퓨터에 따라 다르나, 굵은 부분은 중요한 부분입니다.

 

하지만 제가 위에서 거론했던 명렁어,

 bcdedit /default {current}

를 쳐주면 아래와 같이 변합니다.


Windows 부팅 관리자
--------------------
identifier              {bootmgr}
device                  partition=C:
description             Windows Boot Manager
locale                  en-us
inherit                 {globalsettings}
default                 {current}
resumeobject            {current}
displayorder            {f600fad4-bf7d-11de-a19c-fe0e15821ed0}
                        {current}
toolsdisplayorder       {memdiag}
timeout                 30

Windows 부팅 로더
-------------------
identifier              {f600fad4-bf7d-11de-a19c-fe0e15821ed0}
device                  partition=D:
path                    \Windows\system32\winload.exe
description             Windows 7
locale                  en-us
inherit                 {bootloadersettings}
osdevice                partition=D:
systemroot              \Windows
resumeobject            {f600fad3-bf7d-11de-a19c-fe0e15821ed0}
nx                      OptIn
detecthal               Yes

Windows 부팅 로더
-------------------
identifier              {current}
device                  locate=\Windows\system32\winload.exe
path                    \Windows\system32\winload.exe
description             Windows 7
locale                  ko-KR
inherit                 {bootloadersettings}
recoverysequence        {f600fac5-bf7d-11de-a19c-fe0e15821ed0}
recoveryenabled         Yes
osdevice                locate=\Windows
systemroot              \Windows
resumeobject            {f600fac3-bf7d-11de-a19c-fe0e15821ed0}
nx                      OptIn
numproc                 1
usefirmwarepcisettings  No

이를 잘 이용하면, sysprep을 이용해 캡쳐한 이미지를 메인 컴퓨터로 재부팅해 테스트할 수도 있는 환경이 만들어집니다.

확인은 bcdedit을 통해 가능합니다.