GPT 파티션 테이블 속성


파티션 테이블을 GPT로 구성하는 경우 파티션 속성 리스트 입니다. 


diskpart로 파티션 구성할적에 보통 windows 10의 경우 아래와 같이 합니다. (MS공식 문서예시입니다.)


rem == CreatePartitions-UEFI.txt ==

rem == These commands are used with DiskPart to

rem    create four partitions

rem    for a UEFI/GPT-based PC.

rem    Adjust the partition sizes to fill the drive

rem    as necessary. ==

select disk 0

clean

convert gpt

rem == 1. System partition =========================

create partition efi size=100

rem    ** NOTE: For Advanced Format 4Kn drives,

rem               change this value to size = 260 ** 

format quick fs=fat32 label="System"

assign letter="S"

rem == 2. Microsoft Reserved (MSR) partition =======

create partition msr size=16

rem == 3. Windows partition ========================

rem ==    a. Create the Windows partition ==========

create partition primary 

rem ==    b. Create space for the recovery tools ===

shrink minimum=500

rem       ** Update this size to match the size of

rem          the recovery tools (winre.wim)

rem          plus some free space.

rem          For drives over 128GB, we recommend

rem          at least 990MB.                  **

rem ==    c. Prepare the Windows partition ========= 

format quick fs=ntfs label="Windows"

assign letter="W"

rem === 4. Recovery tools partition ================

create partition primary

format quick fs=ntfs label="Recovery tools"

assign letter="R"

set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"

gpt attributes=0x8000000000000001

list volume

exit


efi파티션의 경우 속성을 주지 않아도 캡쳐 그림의 파티션1처럼 0x8로 시작되면 속성으로 변경됩니다. 


해당 속성별 설명은 아래에 있습니다. 


gpt attributes=0x8000000000000000


0x0000000000000001

 파티션이 컴퓨터에서 올바르게 작동하도록 지정합니다.

0x8000000000000000

 디스크를 다른 컴퓨터로 옮길 때 또는 컴퓨터에서 디스크를 처음 볼 때 파티션에 기본적으로 드라이브 문자가 수신되지 않도록 지정합니다.

0x4000000000000000

 파티션의 볼륨을 숨 깁니다. 즉, 파티션은 마운트 관리자에 의해 감지되지 않습니다.

0x2000000000000000

 파티션이 다른 파티션의 섀도 복사본임을 지정합니다.

0x1000000000000000

 파티션이 읽기 전용임을 지정합니다. 이 속성은 볼륨이 기록되지 않도록합니다.


가끔 복구 파티션에 드라이브 문자를 할당하고 해당 드라이브의 내용을 본다음 재부팅을 해도 계속 볼륨이 마운팅 되는 경우가 있는데, 그때는 diskpart로 gpt 속성을  0x4로 변경하면 다음 재부팅 부터는 파티션이 보이지 않는다. 


참고 페이지. https://docs.microsoft.com/ko-kr/windows/desktop/api/winioctl/ns-winioctl-_partition_information_gpt



이 글을 공유하기

댓글

Designed by JB FACTORY