Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일
 
(연관된 글이 2개 있습니다.)

Windows 운영체제의 ISO 설치 파일에 미리 Device driver를 준비하는 방법

때로는 설치 프로그램이 구동되는 순간부터 사용자의 특정 PC 환경에 필요한 Device Driver를 미리 구동시켜야 할 수도 있습니다. 이에 대해서 검색해 보니, 다음과 같은 글이 나옵니다.

How-To: Add drivers manually to a USB drive to install Windows 7 using a USB 3.0 Port
; https://community.spiceworks.com/how_to/125921-how-to-add-drivers-manually-to-a-usb-drive-to-install-windows-7-using-a-usb-3-0-port

그러니까, 이 글은 위의 글을 보고 실습한 것입니다. 따라서, 그냥 원문 링크를 읽어보셔도 됩니다. ^^

참고로 이 글에서는 실습 환경을 Windows 8.1 with Update 설치 ISO 파일로 합니다. (하지만, 전반적인 내용은 Windows Vista 이후의 컴퓨터에는 모두 적용할 수 있을 것입니다.)




당연히, 윈도우 운영체제의 ISO 설치 파일이 있다는 가정에서 이야기를 시작합니다. 그리고, 그 설치 파일을 "Windows 7 USB/DVD DOWNLOAD TOOL"을 이용해 USB 드라이브로 구워줍니다. (이제부터 USB 드라이브가 F라고 가정하겠습니다.)

그다음, f:\sources 폴더에 있는 boot.wim 파일과 install.wim 파일을 D:\winpe\pe81 폴더에 복사하고, pe81 폴더 하위에 "mount"라는 이름으로 폴더를 하나 생성해 줍니다.

D:\winpe\pe81
            \boot.wim           [파일]
            \install.wim        [파일]
            \mount\             [폴더]

이후 관리자 권한의 cmd.exe 창을 띄우고, boot.wim 파일의 정보를 알아냅니다.

D:\winpe\pe81>dism /get-wiminfo /wimfile:d:\winpe\pe81\boot.wim

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Details for image : d:\winpe\pe81\boot.wim

Index : 1
Name : Microsoft Windows PE (x86)
Description : Microsoft Windows PE (x86)
Size : 966,273,915 bytes

Index : 2
Name : Microsoft Windows Setup (x86)
Description : Microsoft Windows Setup (x86)
Size : 1,446,047,672 bytes

boot.wim 파일은 말 그대로 USB 드라이브로 부팅했을 때의 실행 환경을 가지고 있습니다. 그리고 이 중에서 "Microsoft Windows Setup (x86)"이라고 쓰여있는 항목이 설치 프로그램을 시작할 때 실행되는 환경을 나타냅니다. 따라서, 설치 프로그램 단계부터 여러분이 원하는 Device Driver를 인식시켜야 한다면 boot.wim 파일에 드라이버 파일을 심어줘야 합니다. (만약 설치 프로그램 단계에서 인식시켜야 할 필요가 없다면 이 부분은 건너뛰어도 됩니다.)

드라이버 파일을 Index == 2번에 심기 위해 다음과 같이 boot.wim을 마운팅 해줍니다.

D:\winpe\pe81>dism /mount-wim /wimfile:boot.wim /index:2 /mountdir:D:\winpe\pe81\mount 

그다음, 설치할 드라이버를 넣어주어야 하는데 여기서는 예를 들기 위해 다음의 드라이버 파일을 다운로드하겠습니다.

Venue 8 Pro Win 8.1 Driver Cab
; http://www.dell.com/support/home/us/en/4/Drivers/DriversDetails?driverId=9Y5Y5

이 파일은 CAB 파일이므로 압축을 해제해 다음의 폴더에 복사해 줍니다.

D:\adk\dv8p_drivers

이제 해당 폴더에 있는 모든 드라이버를 다음의 명령어를 통해 추가할 수 있습니다.

D:\winpe\pe81>dism.exe /image:"D:\winpe\pe81\mount" /Add-Driver /driver:"d:\adk\dv8p_drivers" /recurse /forceunsigned

추가가 완료되었으면 이를 반영해 Wim 파일을 commit합니다.

D:\winpe\pe81>dism /unmount-wim /mountdir:D:\winpe\pe81\mount /commit 




이어서, 설치가 완료된 다음의 윈도우 환경에서 인식시켜야 할 Device Driver가 있다면 이번에는 install.wim을 대상으로 해야 합니다. 역시 다음의 명령어로 어떤 설치 옵션이 있는지 알아낼 수 있습니다.

D:\winpe\pe81>dism /get-wiminfo /wimfile:d:\winpe\pe81\install.wim

Deployment Image Servicing and Management tool
Version: 6.3.9600.17031

Details for image : d:\winpe\pe81\install.wim

Index : 1
Name : Windows 8.1 Pro
Description : Windows 8.1 Pro
Size : 9,019,796,360 bytes

Index : 2
Name : Windows 8.1
Description : Windows 8.1
Size : 8,971,872,301 bytes

The operation completed successfully.

위의 ISO 파일은 "Multiple Editions" ISO 파일이기 때문에 2개의 윈도우 Edition을 포함하고 있습니다. 여기서 한 가지 문제점이 있는데요. 설치 과정에 "제품 키"를 물어보는 경우가 있고 아닌 경우가 있는데, 물어보는 경우라면 제품 키에 따라 윈도우 Edition이 결정되지만, 만약 물어보는 경우가 아니라면 설치 프로그램은 기본적으로 "Windows 8.1"을 설치하고 나중에 윈도우가 구성이 완료된 후 제품키를 별도로 입력해 Windows 8.1 Pro로 업데이트하게 됩니다.

따라서, 전자의 경우라면 원하는 Index에만 Device Driver를 적용하면 되지만 후자의 경우라면 2번 Index에 Device Driver를 적용해 주어야 합니다. 음... 그냥 뭔가 복잡해지는 것 같습니다. 알게 뭡니까?!!! 사실 device driver 적용하는 시간이 별로 안 걸리기 때문에 그냥 속 편하게 다음과 같이 2개 모두 device driver를 설치하겠습니다. ^^

dism /mount-wim /wimfile:install.wim /index:1 /mountdir:D:\winpe\pe81\mount 
dism.exe /image:"D:\winpe\pe81\mount" /Add-Driver /driver:"d:\adk\dv8p_drivers" /recurse /forceunsigned
dism /unmount-wim /mountdir:D:\winpe\pe81\mount /commit 

dism /mount-wim /wimfile:install.wim /index:2 /mountdir:D:\winpe\pe81\mount 
dism.exe /image:"D:\winpe\pe81\mount" /Add-Driver /driver:"d:\adk\dv8p_drivers" /recurse /forceunsigned
dism /unmount-wim /mountdir:D:\winpe\pe81\mount /commit 




이렇게 준비된 boot.wim, install.wim 파일을 원래 복사해 왔던 USB 드라이브의 /sources 폴더 하위에 덮어써주는 것으로 모든 과정이 끝납니다.

이제 해당 USB 드라이브로 대상 컴퓨터에 연결하고 부팅을 하면 설치 프로그램이 뜨는 순간부터 컴퓨터의 장치들이 인식된 체로 윈도우 설치 과정이 진행됩니다.




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

[연관 글]






[최초 등록일: ]
[최종 수정일: 5/2/2017]

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

비밀번호

댓글 작성자
 




... 61  62  63  64  65  66  67  68  69  [70]  71  72  73  74  75  ...
NoWriterDateCnt.TitleFile(s)
11883정성태5/3/201917121.NET Framework: 827. C# - 인터넷 시간 서버로부터 받은 시간을 윈도우에 적용하는 방법파일 다운로드1
11882정성태5/2/201914068.NET Framework: 826. (번역글) .NET Internals Cookbook Part 11 - Various C# riddles파일 다운로드1
11881정성태4/28/201914356오류 유형: 532. .NET Core 프로젝트로 마이그레이션 시 "CS0579 Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute" 오류 발생
11880정성태4/25/201911097오류 유형: 531. 이벤트 로그 오류 - Task Scheduling Error: m->NextScheduledSPRetry 1547, m->NextScheduledEvent 1547
11879정성태4/24/201916358.NET Framework: 825. (번역글) .NET Internals Cookbook Part 10 - Threads, Tasks, asynchronous code and others파일 다운로드2
11878정성태4/22/201914332.NET Framework: 824. (번역글) .NET Internals Cookbook Part 9 - Finalizers, queues, card tables and other GC stuff파일 다운로드1
11877정성태4/22/201914219.NET Framework: 823. (번역글) .NET Internals Cookbook Part 8 - C# gotchas파일 다운로드1
11876정성태4/21/201914048.NET Framework: 822. (번역글) .NET Internals Cookbook Part 7 - Word tearing, locking and others파일 다운로드1
11875정성태4/21/201914414오류 유형: 530. Visual Studo에서 .NET Core 프로젝트를 열 때 "One or more errors occurred." 오류 발생
11874정성태4/20/201914424.NET Framework: 821. (번역글) .NET Internals Cookbook Part 6 - Object internals파일 다운로드1
11873정성태4/19/201913390.NET Framework: 820. (번역글) .NET Internals Cookbook Part 5 - Methods, parameters, modifiers파일 다운로드1
11872정성태4/17/201913863.NET Framework: 819. (번역글) .NET Internals Cookbook Part 4 - Type members파일 다운로드1
11871정성태4/16/201913684.NET Framework: 818. (번역글) .NET Internals Cookbook Part 3 - Initialization tricks [3]파일 다운로드1
11870정성태4/16/201911432.NET Framework: 817. Process.Start로 실행한 콘솔 프로그램의 출력 결과를 얻는 방법파일 다운로드1
11869정성태4/15/201915204.NET Framework: 816. (번역글) .NET Internals Cookbook Part 2 - GC-related things [2]파일 다운로드2
11868정성태4/15/201912937.NET Framework: 815. CER(Constrained Execution Region)이란?파일 다운로드1
11867정성태4/15/201911933.NET Framework: 814. Critical Finalizer와 SafeHandle의 사용 의미파일 다운로드1
11866정성태4/9/201915524Windows: 159. 네트워크 공유 폴더(net use)에 대한 인증 정보는 언제까지 유효할까요?
11865정성태4/9/201911240오류 유형: 529. 제어판 - C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools is not accessible.
11864정성태4/9/201910448오류 유형: 528. '...' could be '0': this does not adhere to the specification for the function '...'
11863정성태4/9/201910260디버깅 기술: 127. windbg - .NET x64 EXE의 EntryPoint
11862정성태4/7/201912315개발 환경 구성: 437. .NET EXE의 ASLR 기능을 끄는 방법
11861정성태4/6/201912095디버깅 기술: 126. windbg - .NET x86 CLR2/CLR4 EXE의 EntryPoint
11860정성태4/5/201915350오류 유형: 527. Visual C++ 컴파일 오류 - error C2220: warning treated as error - no 'object' file generated
11859정성태4/4/201912716디버깅 기술: 125. WinDbg로 EXE의 EntryPoint에서 BP 거는 방법
11858정성태3/27/201913163VC++: 129. EXE를 LoadLibrary로 로딩해 PE 헤더에 있는 EntryPoint를 직접 호출하는 방법파일 다운로드1
... 61  62  63  64  65  66  67  68  69  [70]  71  72  73  74  75  ...