[Libguestfs] [RFC] lib: allow to specify physical/logical block size for disks
Nikolay Ivanets
stenavin at gmail.com
Mon Feb 10 13:34:05 UTC 2020
пн, 10 лют. 2020 о 14:34 Daniel P. Berrangé <berrange at redhat.com> пише:
>
> On Sat, Feb 08, 2020 at 01:25:28AM +0200, Mykola Ivanets wrote:
> > From: Nikolay Ivanets <stenavin at gmail.com>
> >
> > I faced with situation where libguestfs cannot recognize partitions on a
> > disk image which was partitioned on a system with "4K native" sector
> > size support.
>
> What type of partition table is this problem seen with ? MBR or GPT or
> both ?
I have virtual disk with Win 2019 installed on GPT where LBA1 (GPT
Header) at offset 4096.
I've attached the file where you can read how Windows sees its volumes.
> Regards,
> Daniel
> --
> |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
> |: https://libvirt.org -o- https://fstop138.berrange.com :|
> |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
>
-------------- next part --------------
********************************************************************
\\?\Volume{fc514c93-0ff8-47c3-8758-886a689928f2}\
|_PartitionStyle PARTITION_STYLE_GPT (0x1)
|_StartingOffset 1048576 (0x100000)
|_PartitionLength 523239424 (0x1F300000)
|_PartitionNumber 1 (0x1)
|_GPT_ATTRIBUTE GPT_ATTRIBUTE_PLATFORM_REQUIRED, GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER (0x8000000000000001)
|_GPT_PARTITION_TYPE PARTITION_MSFT_RECOVERY (0x7)
|_PartitionType de94bba4-06d1-4d40-a16a-bfd50179d6ac
|_PartitionId fc514c93-0ff8-47c3-8758-886a689928f2
|_Attributes 9223372036854775809 (0x8000000000000001)
|_Name Basic data partition
SPACE INFO:
SectorsPerCluster : 1 (0x1);
BytesPerSector : 4096 (0x1000);
ClusterSize : 4096 (0x1000);
TotalNumberOfClusters : 127743 (0x1F2FF);
NumberOfFreeClusters : 23665 (0x5C71);
_VOLUME_DISK_EXTENTS {#1}
|_NumberOfDiskExtents 1 (0x1)
|_Extents {#2} 1 item(s)
|_DISK_EXTENT {#3}
|_DiskNumber 0 (0x0)
|_StartingOffset 1048576 (0x100000)
|_ExtentLength 523239424 (0x1F300000)
********************************************************************
\\?\Volume{3da5e9ec-72ab-4d9d-9cd0-6c2def57ab15}\
|_PartitionStyle PARTITION_STYLE_GPT (0x1)
|_StartingOffset 524288000 (0x1F400000)
|_PartitionLength 313524224 (0x12B00000)
|_PartitionNumber 2 (0x2)
|_GPT_ATTRIBUTE GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER (0x8000000000000000)
|_GPT_PARTITION_TYPE PARTITION_SYSTEM (0x3)
|_PartitionType c12a7328-f81f-11d2-ba4b-00a0c93ec93b
|_PartitionId 3da5e9ec-72ab-4d9d-9cd0-6c2def57ab15
|_Attributes 9223372036854775808 (0x8000000000000000)
|_Name EFI system partition
SPACE INFO:
SectorsPerCluster : 1 (0x1);
BytesPerSector : 4096 (0x1000);
ClusterSize : 4096 (0x1000);
TotalNumberOfClusters : 75520 (0x12700);
NumberOfFreeClusters : 68834 (0x10CE2);
_VOLUME_DISK_EXTENTS {#1}
|_NumberOfDiskExtents 1 (0x1)
|_Extents {#2} 1 item(s)
|_DISK_EXTENT {#3}
|_DiskNumber 0 (0x0)
|_StartingOffset 524288000 (0x1F400000)
|_ExtentLength 313524224 (0x12B00000)
********************************************************************
\\?\Volume{db307f1c-f43f-4507-8231-12dc7a481d6e}\
|_PartitionStyle PARTITION_STYLE_GPT (0x1)
|_StartingOffset 854589440 (0x32F00000)
|_PartitionLength 7999122833408 (0x74670E00000)
|_PartitionNumber 4 (0x4)
|_GPT_ATTRIBUTE 0 (0x0)
|_GPT_PARTITION_TYPE PARTITION_BASIC_DATA (0x1)
|_PartitionType ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
|_PartitionId db307f1c-f43f-4507-8231-12dc7a481d6e
|_Attributes 0 (0x0)
|_Name Basic data partition
_VolumeDescriptor {#1}
|_VolType Fixed (0x3)
|_IsCSV False (0x0)
|_VolumeUniqueName \\?\Volume{db307f1c-f43f-4507-8231-12dc7a481d6e}\
|_HasMountPoints True (0x1)
|_MountPoints {#2} 1 item(s)
|_String C:\
SPACE INFO:
SectorsPerCluster : 1 (0x1);
BytesPerSector : 4096 (0x1000);
ClusterSize : 4096 (0x1000);
TotalNumberOfClusters : 1952910847 (0x74670DFF);
NumberOfFreeClusters : 1551055871 (0x5C733BFF);
_VOLUME_DISK_EXTENTS {#1}
|_NumberOfDiskExtents 1 (0x1)
|_Extents {#2} 1 item(s)
|_DISK_EXTENT {#3}
|_DiskNumber 0 (0x0)
|_StartingOffset 854589440 (0x32F00000)
|_ExtentLength 7999122833408 (0x74670E00000)
********************************************************************
\\?\Volume{a6d10051-197c-4e18-8d60-747c2a44aa5c}\
|_PartitionStyle PARTITION_STYLE_GPT (0x1)
|_StartingOffset 837812224 (0x31F00000)
|_PartitionLength 16777216 (0x1000000)
|_PartitionNumber 3 (0x3)
|_GPT_ATTRIBUTE GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER (0x8000000000000000)
|_GPT_PARTITION_TYPE PARTITION_MSFT_RESERVED (0x4)
|_PartitionType e3c9e316-0b5c-4db8-817d-f92df00215ae
|_PartitionId a6d10051-197c-4e18-8d60-747c2a44aa5c
|_Attributes 9223372036854775808 (0x8000000000000000)
|_Name Microsoft reserved partition
********************************************************************
More information about the Libguestfs
mailing list