IT/윈도우 관리

윈도우 10 UEFI, MBR 부트 로더 복구

무찌마 2019. 11. 27. 22:01 댓글

Windows 10 Error and Recover Boot Loader

윈도우 10 부팅을 위한 MBR, UEFI 부트로더 복구

 

모든 자료를 잃을 수 있는 위험한 작업입니다.
정보 공유를 위하여 등록한 것이므로,
입력한 코드를 정확하게 다시 한번 확인하기 바랍니다.

 

1. GPT 부팅을 위한 ESP(EFI System Partition) 복구

 

윈도우 10 버전 1903, 1909 기준

MSR 및 EFI 파티션은 UEFI 기반의 GPT 디스크에서만 지원합니다.

MSR: Microsoft Reserved (Partition)

ESP: EFI(Extensible Firmware Interface) System Partition

더보기

create partition msr | Microsoft Learn

 

On gpt disks that are used to boot the Windows operating system, the Extensible Firmware Interface (EFI) system partition is the first partition on the disk, followed by the Microsoft Reserved partition. gpt disks that are used only for data storage do not have an EFI system partition, in which case the Microsoft Reserved partition is the first partition.

Windows doesn't mount Microsoft Reserved partitions. You cannot store data on them and you cannot delete them.

 

EFI 부트 파티션이 훼손되거나 삭제되어 부팅이 불가능한 경우 윈도우 설치 미디어를 사용하여 PC 부팅

첫 화면에서 "Shift + F10"을 눌러 명령 프롬프트 띄우고 아래 명령어를 한 번에 한 줄 입력하고 실행

※ (  ) 부분은 설명입니다. 입력하는 것 아닙니다.


EFI 시스템 파티션이 없을 경우

 

EFI 파티션은 디스크의 첫 부분에 위치

 

diskpart
list disk
sel disk #A (#A는 EFI partition을 할당할 disk number)
list part
sel part #B (#B는 EFI partition을 할당할 partition number)
shrink desired=100
create partition efi
format quick fs=fat32 label="System"
assign letter="S" (할당 가능한 드라이브 letter)
(테스트용 코드 "active")
list part
list vol (OS partition letter 확인)
exit
bcdboot E:\windows /l ko-kr /s S: /f ALL (“E” OS partition, "S” EFI partition)
exit

 

명령어 보충 설명

 

shrink desired=100

create partition efi

 

선택(sel) 파티션의 앞 부분에서 100MB 떼어내어 EFI 파티션으로 할당하는 작업입니다.

원래 100MB에 들어 있던 데이터는 뒤로 이동시킨 후 파티션을 분할하는 것이므로 기존 데이터는 안전합니다.


EFI 시스템 파티션이 있을 경우

 

bcdboot /bcdclean Full
diskpart
list disk
sel disk #A (#A는 disk number with EFI partition)
list vol
sel vol #B (#B는 FAT32 EFI partition number)
format quick fs=fat32 label="System"
assign letter="S" (할당 가능한 드라이브 letter)
(테스트용 코드 "active")
list part
list vol (OS partition letter 확인)
exit
bcdboot E:\windows /l ko-kr /s S: /f ALL (“E” OS partition, "S” EFI partition)
exit

 

복구 작업이 끝나면 윈도우 설치 미디어를 제거하고 부팅합니다.

 

2. MBR(BIOS/CSM) 시스템의 부트 로더 복구

 

시스템 파티션의 폴더 구조(MBR)

 

부팅이 불가능한 경우 윈도우 설치 미디어를 사용하여 PC 부팅

첫 화면에서 "Shift + F10"을 눌러 명령 프롬프트 실행

아래 명령어를 한 번에 한 줄씩 입력하고 실행


MBR-1

 

OS 파티션에 Active 속성 지정
System 파티션 사용하지 않음

 

윈도우 10은 부트 로더의 설정 파일에 등록한 OS 파티션으로 부팅 과정을 넘깁니다.

- OS 파티션에 Active 속성이 없거나,

- 설정 파일에 OS 파티션이 잘못 지정된 경우

부팅이 안 되는 오류가 발생합니다.

멀티 부팅을 사용하지 않으면 이 과정을 무시하고

Active 속성을 지정한 OS 파티션으로 직접 부팅해도 윈도우 사용에 문제없습니다.

diskpart
list disk
sel disk #A (#A는 OS disk number)
list part
sel part #B (#B는 OS partition number)
active
list vol (확인)
exit

 

복구 작업이 끝나면 윈도우 설치 미디어를 제거하고 부팅합니다.


MBR-2

 

OS 파티션 Active 속성 지정
System 파티션 사용하지 않음
OS 파티션에 부트 로더 파일 생성

 

bcdboot /bcdclean Full
diskpart
list disk
sel disk #A (#A는 OS disk number)
list part
sel part #B (#B는 OS partition number)
active
exit
bootrec /fixmbr
bootrec /fixboot (오류 무시하고 진행)
bootrec /rebuildbcd

 

복구 작업이 끝나면 윈도우 설치 미디어를 제거하고 부팅합니다.


MBR-3

 

기존 System 파티션 복원
System 파티션 Active 속성 지정
부트 로더 파일 다시 생성

 

diskpart
list disk
sel disk #A (#A는 System 파티션이 할당되어 있는 디스크 number)
list part
sel part #B (#B는 System 파티션 number)
format quick fs=fat32 label="System"
assign letter="S"
active
list part
list vol (OS partition letter 확인)
exit
bcdboot E:\windows /l ko-kr /s S: /f ALL (“E” OS partition, "S” System partition)
exit

 

복구 작업이 끝나면 윈도우 설치 미디어를 제거하고 부팅합니다.


MBR-4

 

시스템 파티션 생성
System 파티션 Active 속성 지정

 

bcdboot /bcdclean FULL (오류 발생 무시)
diskpart
list disk
sel disk #A (#A는 OS 디스크 number)
list part
sel part #B (#B는 System 파티션을 할당할 디스크의 첫 파티션 number)
shrink desired=100
create partition primary
format quick fs=fat32 label="System"
assign letter="S"
active
list part
list vol (OS partition letter 확인)
exit
bcdboot E:\windows /l ko-kr /s S: /f ALL (“E” OS partition, "S” System partition)
exit

 

복구 작업이 끝나면 윈도우 설치 미디어를 제거하고 부팅합니다


 

 

참고 Microsoft, "UEFI/GPT-based hard drive partitions," https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions

 

 

 

 

참고 Microsoft, " BIOS/MBR-based hard drive partitions," https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-biosmbr-based-hard-drive-partitions

 

 

Capture and Apply Windows, System, and Recovery Partitions

Capture and apply Windows, system, and recovery partitions In this article --> When you're deploying Windows using the WIM format, and using customized partitions, a customized system partition or an additional utility partition, learn how to capture the r

docs.microsoft.com

 

출처 Microsoft, "Capture and apply Windows, system, and recovery partitions," https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/capture-and-apply-windows-system-and-recovery-partitions

 

 

Can I Delete Recovery Partition in Windows 7/8/10 for Further Use

What is recovery partition? Can I delete recovery partition for further use? Find everything you need here!

www.partitionwizard.com

 

 

How to Delete a Windows Recovery Partition

If you have backed up Windows to another drive you can safely remove the Windows recovery partition.

www.lifewire.com

 

댓글