Microsoft MVP성태의 닷넷 이야기
Windows: 36. Windows PE ISO 이미지 만들기 [링크 복사], [링크+제목 복사],
조회: 38180
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 4개 있습니다.)

Windows PE ISO 이미지 만들기


의외로 PE에 대한 자료가 웹에 많이 있어서 만들어 보는 것이 그다지 어렵지 않았습니다. 우선, technet에 소개된 마이크로소프트의 자료가 있고,

Windows PE 이미지 만들기 (Vista)
; https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-vista/cc766066(v=ws.10)

Windows PE와는 다른 "Bart PE"를 소개한 글들도 있습니다.

Bart's Preinstalled Environment (BartPE) bootable live windows CD/DVD
; http://www.nu2.nu/pebuilder/

PE Builder를 이용 BartPE(Windows PE) 만들기
; http://itka.kr/zbxe/?mid=oswindows&sort_index=readed_count&order_type=desc&document_srl=2231

제가 선택한 방법은 Bart PE가 아닌 Windows PE였습니다. 선택 기준은 ^^ 뚜렷하지 않았고 단지 지속적으로 향상될 가능성이라는 면에서 택한 것 뿐입니다. 게다가 복잡할 것 같은 이런 과정을 쭉 정리해준 아래의 글이 있어서 제법 쉽게 할 수 있었습니다. ^^

WINDOWS DESKTOP MANAGEMENT TIPS
How to create a Windows Vista boot CD with WinPE
; http://searchenterprisedesktop.techtarget.com/tip/0,289483,sid192_gci1297757,00.html?track=sy43&asrc=RSS_RSS-2_43

그럼, 한번 따라해 볼까요? ^^




1. AIK 다운로드


아래의 사이트에서 AIK를 다운로드, 설치합니다.

Automated Installation Kit (AIK) for Windows Vista SP1 and Windows Server 2008
; http://www.microsoft.com/downloads/details.aspx?FamilyId=94BB6E34-D890-4932-81A5-5B50C657DE08

[그림 1: Windows AIK Setup]
vista_windows_pe_install_1.png

2. PE 파일 복사

설치된 프로그램 "Windows PE Tools Command Prompt"를 실행시키면 다음과 같은 창이 보입니다. 시작 폴더가 "%ProgramFiles%\Windows AIK\Tools\PETools"임을 확인합니다.

[그림 2: "Windows PE Tools Command Prompt" 실행]
vista_windows_pe_install_2.png

이제 새로운 폴더로 PE 파일을 복사합니다. 이때 대상이 되는 폴더가 미리 생성되어 있으면 안됩니다. 예를 들어, 저 같은 경우에는 E:\VistaPE라는 경로를 지정했고, 이때 VistaPE라는 이름의 폴더는 없는 상태입니다. 아래는 실행 결과입니다.

E:\Program Files\Windows AIK\Tools\PETools>CopyPE x86 e:\VistaPE

===================================================
Creating Windows PE customization working directory

    e:\VistaPE
===================================================

        1 file(s) copied.
        1 file(s) copied.
E:\Program Files\Windows AIK\Tools\PETools\X86\boot\bcd
E:\Program Files\Windows AIK\Tools\PETools\X86\boot\boot.sdi
E:\Program Files\Windows AIK\Tools\PETools\X86\boot\bootfix.bin
E:\Program Files\Windows AIK\Tools\PETools\X86\boot\etfsboot.com
E:\Program Files\Windows AIK\Tools\PETools\X86\boot\fonts\chs_boot.ttf
E:\Program Files\Windows AIK\Tools\PETools\X86\boot\fonts\cht_boot.ttf
E:\Program Files\Windows AIK\Tools\PETools\X86\boot\fonts\jpn_boot.ttf
E:\Program Files\Windows AIK\Tools\PETools\X86\boot\fonts\kor_boot.ttf
E:\Program Files\Windows AIK\Tools\PETools\X86\boot\fonts\wgl4_boot.ttf
9 File(s) copied
E:\Program Files\Windows AIK\Tools\PETools\X86\EFI\microsoft\boot\bcd
E:\Program Files\Windows AIK\Tools\PETools\X86\EFI\microsoft\boot\fonts\chs_boot.ttf
E:\Program Files\Windows AIK\Tools\PETools\X86\EFI\microsoft\boot\fonts\cht_boot.ttf
E:\Program Files\Windows AIK\Tools\PETools\X86\EFI\microsoft\boot\fonts\jpn_boot.ttf
E:\Program Files\Windows AIK\Tools\PETools\X86\EFI\microsoft\boot\fonts\kor_boot.ttf
E:\Program Files\Windows AIK\Tools\PETools\X86\EFI\microsoft\boot\fonts\wgl4_boot.ttf
6 File(s) copied
        1 file(s) copied.
        1 file(s) copied.

Success

Updating path to include peimg, oscdimg, imagex

   E:\Program Files\Windows AIK\Tools\PETools\
   E:\Program Files\Windows AIK\Tools\PETools\..\x86


e:\VistaPE>

3. 사용자 정의 파일 복사


PE로 부팅했을 때 사용하고 싶은 파일들이 있다면 복사해 놓습니다. 저 같은 경우에는... 음... 딱히 필요한 파일이 없어서 그냥 생략했습니다.

4. Windows PE 이미지(Winpe.wim) 적용


2번 단계에서의 "Windows PE Tools Command Prompt" 프로그램을 다시 실행시켜서 "x86" 하위 폴더로 이동한 후, 아래와 같이 부팅 이미지를 "VistaPE" 폴더에 적용합니다. (비스타 사용자는, 이때 명령어 창을 관리자 권한으로 실행시켜야 합니다.)

[그림 3: imagex 프로그램으로 부팅 이미지 생성]
vista_windows_pe_install_3.png

Updating path to include peimg, oscdimg, imagex

   E:\Program Files\Windows AIK\Tools\PETools\
   E:\Program Files\Windows AIK\Tools\PETools\..\x86


C:\Windows\system32>cd "e:\Program Files\Windows AIK\tools\PETools\x86"

C:\Windows\system32>e:

e:\Program Files\Windows AIK\Tools\PETools\x86>imagex /apply winpe.wim 1 e:\VistaPE\mount

ImageX Tool for Windows
Copyright (C) Microsoft Corp. 1981-2005. All rights reserved.



Progress: 100%

Successfully applied image.



e:\Program Files\Windows AIK\Tools\PETools\x86>

5. 드라이버 및 패키지 설치


3번 단계에서는 단순 exe 유형의 프로그램을 복사했던 반면, 이번에는 드라이버나 일정 포맷에 맞게 미리 정의된 패키지를 설치할 수 있습니다. AIK에서 미리 제공되는 몇 가지 유형의 패키지가 있는데 선택해서 설치를 합니다.

참고로, 패키지 목록은 peimg /list 명령어를 통해서 아래와 같이 확인할 수 있습니다.

e:\Program Files\Windows AIK\Tools\PETools\x86>peimg /list e:\VistaPE\mount\Windows
Preinstallation Environment Image Setup Tool for Windows
Copyright (C) Microsoft Corporation. All rights reserved.

Culture:          en-US
Time zone offset: (GMT-08:00) Pacific Time (US & Canada)
Time zone name:   "Pacific Standard Time" (use with /timezone)

Lang  | Version       | Ins | Name
------+---------------+-----+-----------------------------------------------
en-US |6.0.6000.16386 |  -  | WinPE-HTA-Package
------+---------------+-----+-----------------------------------------------
      |6.0.6000.16386 |  -  | WinPE-HTA-Package
------+---------------+-----+-----------------------------------------------
en-US |6.0.6000.16386 |  -  | WinPE-MDAC-Package
------+---------------+-----+-----------------------------------------------
      |6.0.6000.16386 |  -  | WinPE-MDAC-Package
------+---------------+-----+-----------------------------------------------
en-US |6.0.6000.16386 |  -  | WinPE-Scripting-Package
------+---------------+-----+-----------------------------------------------
      |6.0.6000.16386 |  -  | WinPE-Scripting-Package
------+---------------+-----+-----------------------------------------------
en-US |6.0.6000.16386 |  -  | WinPE-WMI-Package
------+---------------+-----+-----------------------------------------------
      |6.0.6000.16386 |  -  | WinPE-WMI-Package
------+---------------+-----+-----------------------------------------------
en-US |6.0.6000.16386 |  -  | WinPE-XML-Package
------+---------------+-----+-----------------------------------------------
      |6.0.6000.16386 |  -  | WinPE-XML-Package
------+---------------+-----+-----------------------------------------------
      |6.0.6000.16386 |  -  | WinPE-FontSupport-JA-JP-Package
------+---------------+-----+-----------------------------------------------
      |6.0.6000.16386 |  -  | WinPE-FontSupport-KO-KR-Package
------+---------------+-----+-----------------------------------------------
      |6.0.6000.16386 |  -  | WinPE-FontSupport-ZH-CN-Package
------+---------------+-----+-----------------------------------------------
      |6.0.6000.16386 |  -  | WinPE-FontSupport-ZH-HK-Package
------+---------------+-----+-----------------------------------------------
      |6.0.6000.16386 |  -  | WinPE-FontSupport-ZH-TW-Package
------+---------------+-----+-----------------------------------------------

Listed 15 package(s).

PEIMG completed the operation successfully.

e:\Program Files\Windows AIK\Tools\PETools\x86>

그래서... 그냥 아래와 같은 배치 파일을 만들어서 실행시켜도 되겠지요.

e:\Program Files\Windows AIK\Tools\PETools\x86>type install-packages.bat
peimg /install=WinPE-XML-Package e:\VistaPE\mount
peimg /install=WinPE-HTA-Package e:\VistaPE\mount
peimg /install=WinPE-Scripting-Package e:\VistaPE\mount
peimg /install=WinPE-MDAC-Package e:\VistaPE\mount
peimg /install=WinPE-WMI-Package e:\VistaPE\mount

e:\Program Files\Windows AIK\Tools\PETools\x86>

6. 패키지 추가 완료 명시


원하는 패키지들을 모두 추가했다면, PE 이미지를 고정시켜줍니다. 일단 한번 아래와 같은 명령어로 고정이 되었다면 더 이상 패키지를 추가할 수 없기 때문에 원하는 패키지가 있다면 반드시 그 전에 추가해 주어야 합니다.

e:\Program Files\Windows AIK\Tools\PETools\x86>peimg /image=e:\VistaPE\mount /prep
Preinstallation Environment Image Setup Tool for Windows
Copyright (C) Microsoft Corporation. All rights reserved.

The /prep command will permanently modify a Windows PE image, so that it can
no longer be serviced.  This means that operations including:

   - Installing or uninstalling optional features
   - Applying hotfixes or other servicing packages
   - Installing language packs

Will not be possible on the prepared image.

To continue, enter "yes".  Any other input will exit the program.

Continue? yes
[==========================100.0%==========================]
PEIMG completed the operation successfully.

e:\Program Files\Windows AIK\Tools\PETools\x86>

위의 과정을 거치고 나면 최종 이미지에 지정되지 않은 모든 패키지 및 언어 팩들이 제거됩니다. 이 때문에 원래의 "E:\VistaPE" 폴더 크기가 1GB가 넘었는데, 위의 명령어 실행 이후 660MB 정도로 줄어들게 되었습니다.

7. ISO로 만들어질 이미지 생성


자... 이제 모든 설정이 적용된 이미지를 생성하면 됩니다.

e:\Program Files\Windows AIK\Tools\PETools\x86>imagex /boot /compress max /capture "e:\VistaPE\mount" "e:\VistaPE\iso\sources\boot.wim" "VistaPEImage"

ImageX Tool for Windows
Copyright (C) Microsoft Corp. 1981-2005. All rights reserved.


Files/folders excluded from image capture by default:

 \WINDOWS\CSC
 \RECYCLER
 \System Volume Information
 \pagefile.sys
 \hiberfil.sys
 \$ntfs.log


Progress: 100%

Successfully imaged e:\VistaPE\mount



e:\Program Files\Windows AIK\Tools\PETools\x86>

사실상, 이것으로 PE 이미지를 준비하는 작업은 완료가 되었습니다.

8. ISO 이미지 생성


7번 단계까지 해서 완료된 PE 이미지를 ISO로 변환시켜 줍니다. 이를 위해 AIK에는 oscdimg.exe라는 프로그램이 마련되어 있는데, 단순히 아래와 같이 실행시켜 주면 됩니다.

e:\Program Files\Windows AIK\Tools\PETools\x86>oscdimg -n e:\VistaPE\ISO e:\VistaPE\VistaPEImage.iso -n -be:\VistaPE\etfsboot.com

OSCDIMG 2.45 CD-ROM and DVD-ROM Premastering Utility
Copyright (C) Microsoft, 1993-2000.  All rights reserved.
For Microsoft internal use only.


Scanning source tree complete (17 files in 8 directories)

Computing directory information complete

Image file is 150368256 bytes

Writing 17 files in 8 directories to e:\VistaPE\VistaPEImage.iso

100% complete

Final image file is 150368256 bytes

Done.

e:\Program Files\Windows AIK\Tools\PETools\x86>

명령이 성공적으로 실행되고 나면 E:\VistaPE 폴더에 VistaPEImage.iso라는 이름의 ISO 이미지 파일이 생성됩니다. 용량도 146 MB로 확 줄었네요. ^^ 아래의 화면은 이 파일을 Virtual PC/Server에 마운팅시켜서 부팅시킨 모습입니다.

[그림 4: PE 이미지 부팅]
vista_windows_pe_install_4.png

이것으로 끝!



[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 2/22/2024]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 



2009-03-04 12시38분
위의 설명은 x86을 대상으로 했는데요. 원래 AIK를 다운로드 받으면 "en_windows_vista_windows_automated_installation_kit_dvd_X13-63415.iso" 라는 이미지 파일안에 "WAIKAMD64.MSI"라는 이름으로 x64용 설치 파일이 있는 데 이걸 실행시켜서 설치한 후에 본문에서 설명한 동일한 방법을 따르면 x64용이 됩니다.

x86과 x64를 합치는 방법도 있는데... 일단 오늘은 여기까지! ^^
kevin25

... 121  122  123  124  125  126  127  128  129  130  [131]  132  133  134  135  ...
NoWriterDateCnt.TitleFile(s)
1780정성태10/15/201424212오류 유형: 249. The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
1779정성태10/15/201419749오류 유형: 248. Active Directory에서 OU가 지워지지 않는 경우
1778정성태10/10/201418201오류 유형: 247. The Netlogon service could not create server share C:\Windows\SYSVOL\sysvol\[도메인명]\SCRIPTS.
1777정성태10/10/201421318오류 유형: 246. The processing of Group Policy failed. Windows attempted to read the file \\[도메인]\sysvol\[도메인]\Policies\{...GUID...}\gpt.ini
1776정성태10/10/201418333오류 유형: 245. 이벤트 로그 - Name resolution for the name _ldap._tcp.dc._msdcs.[도메인명]. timed out after none of the configured DNS servers responded.
1775정성태10/9/201419451오류 유형: 244. Visual Studio 디버깅 (2) - Unable to break execution. This process is not currently executing the type of code that you selected to debug.
1774정성태10/9/201426647개발 환경 구성: 246. IIS 작업자 프로세스의 20분 자동 재생(Recycle)을 끄는 방법
1773정성태10/8/201429799.NET Framework: 471. 웹 브라우저로 다운로드가 되는 파일을 왜 C# 코드로 하면 안되는 걸까요? [1]
1772정성태10/3/201418609.NET Framework: 470. C# 3.0의 기본 인자(default parameter)가 .NET 1.1/2.0에서도 실행될까? [3]
1771정성태10/2/201428108개발 환경 구성: 245. 실행된 프로세스(EXE)의 명령행 인자를 확인하고 싶다면 - Sysmon [4]
1770정성태10/2/201421715개발 환경 구성: 244. 매크로 정의를 이용해 파일 하나로 C++과 C#에서 공유하는 방법 [1]파일 다운로드1
1769정성태10/1/201424133개발 환경 구성: 243. Scala 개발 환경 구성(JVM, 닷넷) [1]
1768정성태10/1/201419557개발 환경 구성: 242. 배치 파일에서 Thread.Sleep 효과를 주는 방법 [5]
1767정성태10/1/201424646VS.NET IDE: 94. Visual Studio 2012/2013에서의 매크로 구현 - Visual Commander [2]
1766정성태10/1/201422512개발 환경 구성: 241. 책 "프로그래밍 클로저: Lisp"을 읽고 나서. [1]
1765정성태9/30/201426062.NET Framework: 469. Unity3d에서 transform을 변수에 할당해 사용하는 특별한 이유가 있을까요?
1764정성태9/30/201422306오류 유형: 243. 파일 삭제가 안 되는 경우 - The action can't be comleted because the file is open in System
1763정성태9/30/201423876.NET Framework: 468. PDB 파일을 연동해 소스 코드 라인 정보를 알아내는 방법파일 다운로드1
1762정성태9/30/201424555.NET Framework: 467. 닷넷에서 EIP/RIP 레지스터 값을 구하는 방법 [1]파일 다운로드1
1761정성태9/29/201421605.NET Framework: 466. 윈도우 운영체제의 보안 그룹 이름 및 설명 문자열을 바꾸는 방법파일 다운로드1
1760정성태9/28/201419889.NET Framework: 465. ICorProfilerInfo::GetILToNativeMapping 메서드가 0x80131358을 반환하는 경우
1759정성태9/27/201430995개발 환경 구성: 240. Visual C++ / x64 환경에서 inline-assembly를 매크로 어셈블리로 대체하는 방법파일 다운로드1
1758정성태9/23/201437895개발 환경 구성: 239. 원격 데스크톱 접속(RDP)을 기존의 콘솔 모드처럼 사용하는 방법 [1]
1757정성태9/23/201418435오류 유형: 242. Lync로 모임 참여 시 소리만 들리지 않는 경우 - 두 번째 이야기
1756정성태9/23/201427464기타: 48. NVidia 제품의 과다한 디스크 사용 [2]
1755정성태9/22/201434240오류 유형: 241. Unity Web Player를 설치해도 여전히 설치하라는 화면이 나오는 경우 [4]
... 121  122  123  124  125  126  127  128  129  130  [131]  132  133  134  135  ...