Microsoft MVP성태의 닷넷 이야기
개발 환경 구성: 315. VHD 파일의 최소 크기 [링크 복사], [링크+제목 복사],
조회: 19607
글쓴 사람
정성태 (techsharer at outlook.com)
홈페이지
첨부 파일

VHD 파일의 최소 크기

첨부 파일은 아래의 링크에서 가져온 Microsoft VDS에 대한 문서입니다. ^^

Virtual Disk Service (VDS) Protocol - MSDN - Microsoft
; https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-vds/90977af2-515e-4fbd-809c-fdb280ab48db




CreateVirtualDisk API를 이용해,

CreateVirtualDisk function
; https://learn.microsoft.com/en-us/windows/win32/api/virtdisk/nf-virtdisk-createvirtualdisk

VHD 파일을 생성할 때 7번째 인자로 전달되는 CREATE_VIRTUAL_DISK_PARAMETERS의 MaximumSize에 3MB 미만을 지정하는 경우 반환 값이 87이 나올 수 있습니다. 이에 대해서는 CreateVirtualDisk 문서에서도 다음과 같이 해당 오류의 원인 중 하나로 명시하고 있습니다.

The MaximumSize member of the Parameters parameter is less than 3 MB.

기본적으로 MBR 파티션인 경우 3MB를 최소 크기로 지정해야 합니다. 그런데, GPT로 디스크를 초기화해야 한다면 사정이 달라집니다. Disk Management에서 MBR로 된 VHD를 GPT로 변경하려고 할 때 다음과 같은 오류가 발생하거나,

The specified disk is not convertible because the size is less than the minimum size required for GPT disks.

IVdsPack::AddDisk를 이용해 VDS_PARTITION_STYLE::VDS_PST_GPT로 지정하는 경우 VDS_E_DISK_NOT_CONVERTIBLE_SIZE 예외가 발생할 수 있습니다.

// 0x80042925 - VDS_E_DISK_NOT_CONVERTIBLE_SIZE
// The specified disk is not convertible because the size is less than the minimum size required for GPT disks.

왜냐하면, GPT는 최소 크기를 128MB로 요구하기 때문입니다. 이는 "Virtual Disk Service (VDS) Protocol - MSDN - Microsoft" 문서에 나와 있습니다.

Windows 7, Windows Server 2008 R2, Windows 8, Windows Server 2012, Windows 8.1, Windows Server 2012 R2, Windows 10, and Windows Server 2016 require that the disk have a minimum size of 128 MB in order for the disk to be converted from the MBR disk partition formatting style to the GPT disk partition formatting style.




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







[최초 등록일: ]
[최종 수정일: 2/22/2024]

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

비밀번호

댓글 작성자
 




... 166  167  168  169  [170]  171  172  173  174  175  176  177  178  179  180  ...
NoWriterDateCnt.TitleFile(s)
765정성태8/22/200928666.NET Framework: 156. XamDataGrid의 UnboundField 사용파일 다운로드1
764정성태8/21/200923026Windows: 47. Windows Virtual PC에 설치된 Windows 7 VPC에서 Aero 효과 사용 [3]
763정성태8/20/200926590Windows: 46. Windows 7 - XP 모드 응용 프로그램 바로가기 만드는 방법 [2]
762정성태8/18/200932231개발 환경 구성: 48. 개발자 PC 환경 - 유니코드(Unicode)를 위한 설정 [3]
760정성태8/17/200938627개발 환경 구성: 47. XmlCodeGenerator 1.0.0.4 업데이트 [2]
759정성태8/16/200930476.NET Framework: 155. 닷넷 프로파일러의 또 다른 응용: Visual Studio 2010 Historical Debugging
758정성태8/15/200923844VS.NET IDE: 65. WPF 프로젝트용 Visual Studio 패치들 [2]
757정성태8/12/200923275오류 유형: 84. TFS 작업 항목 보기 오류 - WorkItemTypeDeniedOrNotExistException
756정성태8/9/200922846오류 유형: 83. A revocation check could not be performed for the certificate.
755정성태8/6/200920541.NET Framework: 154. 이벤트 2중 구독
754정성태7/16/200932917VS.NET IDE: 64. Visual Studio 2010 - 64bit 혼합 모드 디버깅 지원
753정성태7/15/200931422.NET Framework: 153. WPF와 WinForm의 Shown 이벤트 시점
752정성태7/14/200927060개발 환경 구성: 46. .NET Service Bus 응용 사례: SocketShifter [2]파일 다운로드1
751정성태7/9/200928344.NET Framework: 152. 순환 참조와 XmlSerializer파일 다운로드1
750정성태7/7/200928074.NET Framework: 151. Team Explorer가 설치되지 않은 PC에서 System.InvalidProgramException 예외 발생파일 다운로드1
748정성태7/2/200925920.NET Framework: 150. WPF - Property Element 사용 의미파일 다운로드2
747정성태7/1/200945654.NET Framework: 149. WPF - UI 업데이트를 바로 반영하고 싶다면? [3]파일 다운로드1
746정성태6/25/200932778.NET Framework: 148. WPF - 데이터 바인딩 시의 예외 처리 방법 [1]파일 다운로드1
745정성태6/22/200924827.NET Framework: 147. WPF - Binding에 Sibling 요소 지정 [2]파일 다운로드1
744정성태6/21/200923623.NET Framework: 146. WPF - 중첩된 ScrollViewer의 크기 제어 [2]파일 다운로드1
743정성태6/17/200927692.NET Framework: 145. Unity Container 개체 풀이
742정성태6/17/200927119.NET Framework: 144. WPF - FrameworkElement.Parent 속성이 null이라면? [3]
740정성태6/12/200924740.NET Framework: 143. WPF - Transform의 역변환파일 다운로드1
739정성태6/8/200937465.NET Framework: 142. WPF - Grid 컨트롤의 ShowGridLine 개선 [5]파일 다운로드1
737정성태6/6/200942937.NET Framework: 141. Win32 Interop - 크기가 정해지지 않은 배열을 C++에서 C#으로 전달하는 경우파일 다운로드2
734정성태6/4/200926377.NET Framework: 140. WPF - CellPadding 속성을 구현하는 Grid Layout [2]파일 다운로드1
... 166  167  168  169  [170]  171  172  173  174  175  176  177  178  179  180  ...