GPT 디스크에 windows 7 설치

GPT 디스크에 windows 7 을 설치하기 위해서는 efi 부트로더로 부팅하여 설치하여야 한다.

그러나 설치 디스크를 EFI 지원되게 만들었더라도, 설치 디스크를 bios(MBR) 으로 부팅한 경우에는 efi 부트로더를 설치할 수 없고(bcdboot) 윈도우도 설치할 수 없다.

당연한 소리같지만, 보통 bios 설정에서 CSM 지원을 활성하는 경우 uefi 와 bios 중 어떤 것을 먼저 시도할 것인지 설정하게 되는데 보통 이 경우 bios first (또는 별다른 옵션 없이 bios 으로 고정) 가 선택되고 이렇게 되면 위의 시나리오가 발생한다.

이러한 경우, UEFI only 나 uefi first 을 선택하여 부팅 후 설치를 진행한다. windows 7 의 시작에는 CSM 이 필요하긴 하지만 설치 까지는 UEFI only 이어도 아마 가능할 것이다.

또한 efi 지원 설치 디스크를 작성할 때에는 rufs(https://rufus.ie/) 을 사용한다. 근데 그냥 FAT32 로 포맷하고 설치 디스크만 복사해도 될 것 같다.

 

install driver into another windows installation

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-and-remove-drivers-to-an-offline-windows-image

DISM 을 이용하여 offline image 에 driver install 을 따라하되, mount-image 를 할 필요 없고 /image:<path of instance> 을 하면 된다.

예: (E:\ 에 설치되어 있는 경우)

Dism /Image:E:\ /Add-Driver /Driver:C:\drivers\mydriver.inf

DISM 을 얻으려면 Windows ADK 를 설치하라고 되어 있지만 이미 Windows 7 에는 탑재되어 있다. 아마 vista 부터 있었을 듯.

 

using gImageX in windows PE – install windows without booting disk in 1 partition environment

short version:

boot to windows PE(Windows Preinstallation Environment) and run gimagex.

if you have no boot disk but running windows, that’s OK: run “ReAgentc.exe /boottore” (need administrator privilege) then reboot.

you will boot to windows RE(Windows Recovery Environment; it is a special kind of win PE). open console, then run gimagex. it will be executed with no problems.

*** don’t forget to enter bcdboot.exe C:\windows to create bootloader entry. ***


long version:

I prefer multiple partitions for system disk. It have some advantages over 1 partition structure: you don’t need a backup, you “may” expect longer disk life(in case of SSD, because it allows you to write disk side to side.)

But I had to use 1 partition in my laptop, because of its limited space. And recently… I need re-install.

Well, re-install using wim(windwos imaging file) is quite simple: if you have multiple partitions. just boot in windows, run gimagex, apply to new partition. and make boot item to boot manager. done!

And here is the challeange: you have no enough space for another partition.

A standard way to install windows using existing wim, is creating windows installtion disk using windows AIK(or ADK, brand new name for win 8+). but I don’t want to do that for single installation.

After few hours of searching, I found intresting information: ImageX can be used in windows PE installation. Accoring to this(https://technet.microsoft.com/en-us/library/dd744320%28v=ws.10%29.aspx), In order to capture windows you must boot to windows PE, (or, you can use another windows installation. windows PE is just an “lightweight” installation) then run imagex. So it means you can use imageX in windows PE! okay, then how about gImageX?

The answer is, YES. In windows PE you can run not only command line program but also (some) win32 applications. and gimagex is one of them. so use it like in regular windows.


2017-03-15 17:12 update:

revise some sentences for easy reading.

same day, 20:15 update:

add bcdboot.exe notice