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

비밀번호

댓글 작성자
 




... 46  47  [48]  49  50  51  52  53  54  55  56  57  58  59  60  ...
NoWriterDateCnt.TitleFile(s)
12420정성태11/19/20207620오류 유형: 684. Visual C++ - MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
12419정성태11/19/20208787VC++: 139. Visual C++ - .NET Core의 nethost.lib와 정적 링크파일 다운로드1
12418정성태11/19/202010872오류 유형: 683. Visual C++ - error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MDd_DynamicDebug'파일 다운로드1
12417정성태11/19/20208275오류 유형: 682. Visual C++ - warning LNK4099: PDB '...pdb' was not found with '...lib(pch.obj)' or at '...pdb'; linking object as if no debug info
12416정성태11/19/20209560오류 유형: 681. Visual C++ - error LNK2001: unresolved external symbol _CrtDbgReport
12415정성태11/18/20209577.NET Framework: 971. UnmanagedCallersOnly 특성과 DNNE 사용파일 다운로드1
12414정성태11/18/202010651VC++: 138. x64 빌드에서 extern "C"가 아닌 경우 ___cdecl name mangling 적용 [4]파일 다운로드1
12413정성태11/17/202010324.NET Framework: 970. .NET 5 / .NET Core - UnmanagedCallersOnly 특성을 사용한 함수 내보내기파일 다운로드1
12412정성태11/16/202012571.NET Framework: 969. .NET Framework 및 .NET 5 - UnmanagedCallersOnly 특성 사용파일 다운로드1
12411정성태11/12/20209570오류 유형: 680. C# 9.0 - Error CS8889 The target runtime doesn't support extensible or runtime-environment default calling conventions.
12410정성태11/12/20209563디버깅 기술: 174. windbg - System.TypeLoadException 예외 분석 사례
12409정성태11/12/202010944.NET Framework: 968. C# 9.0의 Function pointer를 이용한 함수 주소 구하는 방법파일 다운로드1
12408정성태11/9/202022122도서: 시작하세요! C# 9.0 프로그래밍 [8]
12407정성태11/9/202011198.NET Framework: 967. "clr!JIT_DbgIsJustMyCode" 호출이 뭘까요?
12406정성태11/8/202012739.NET Framework: 966. C# 9.0 - (15) 최상위 문(Top-level statements) [5]파일 다운로드1
12405정성태11/8/202010260.NET Framework: 965. C# 9.0 - (14) 부분 메서드에 대한 새로운 기능(New features for partial methods)파일 다운로드1
12404정성태11/7/202010725.NET Framework: 964. C# 9.0 - (13) 모듈 이니셜라이저(Module initializers)파일 다운로드1
12403정성태11/7/202010795.NET Framework: 963. C# 9.0 - (12) foreach 루프에 대한 GetEnumerator 확장 메서드 지원(Extension GetEnumerator)파일 다운로드1
12402정성태11/7/202011391.NET Framework: 962. C# 9.0 - (11) 공변 반환 형식(Covariant return types) [1]파일 다운로드1
12401정성태11/5/202010298VS.NET IDE: 153. 닷넷 응용 프로그램에서의 "My Code" 범위와 "Enable Just My Code"의 역할 [1]
12400정성태11/5/20207392오류 유형: 679. Visual Studio - "Source Not Found" 창에 "Decompile source code" 링크가 없는 경우
12399정성태11/5/202010975.NET Framework: 961. C# 9.0 - (10) 대상으로 형식화된 조건식(Target-typed conditional expressions)파일 다운로드1
12398정성태11/4/20209462오류 유형: 678. Windows Server 2008 R2 환경에서 Powershell을 psexec로 원격 실행할 때 hang이 발생하는 문제
12397정성태11/4/20209570.NET Framework: 960. C# - 조건 연산자(?:)를 사용하는 경우 달라지는 메서드 선택 사례파일 다운로드1
12396정성태11/3/20208016VS.NET IDE: 152. Visual Studio - "Tools" / "External Tools..."에 등록된 외부 명령어에 대한 단축키 설정 방법
12395정성태11/3/20209265오류 유형: 677. SSMS로 DB 접근 시 The server principal "..." is not able to access the database "..." under the current security context.
... 46  47  [48]  49  50  51  52  53  54  55  56  57  58  59  60  ...